chrono build error on Ubuntu - irrKlang.h not found

57 views
Skip to first unread message

Robert

unread,
Jun 12, 2018, 6:59:53 PM6/12/18
to ProjectChrono
I'm attempting to build Chrono from source on my Ubuntu 16.04 VM (32bit) with the following options:
Build demos
build tests
enable irrklang
enable irrlicht
enable opengl
enable vehicle
enable openmp

I'm compiling with gcc (5.4.0) in debug mode, and I get the following error when executing "make" from the chrono_build directory:

...
Scanning dependencies of target demo_VEH_HMMWV9
[ 92%] Building CXX object src/demos/vehicle/demo_HMMWV9/CMakeFiles/demo_VEH_HMMWV9.dir/demo_VEH_HMMWV9.cpp.o
In file included from /home/robert/chrono_ws/chrono_source/chrono/src/chrono_vehicle/driver/ChIrrGuiDriver.h:34:0,
                 from /home/robert/chrono_ws/chrono_source/chrono/src/demos/vehicle/demo_HMMWV9/demo_VEH_HMMWV9.cpp:30:
/home/robert/chrono_ws/chrono_source/chrono/src/chrono_vehicle/utils/ChVehicleIrrApp.h:38:22: fatal error: irrKlang.h: No such file or directory
compilation terminated.

src/demos/vehicle/demo_HMMWV9/CMakeFiles/demo_VEH_HMMWV9.dir/build.make:62: recipe for target 'src/demos/vehicle/demo_HMMWV9/CMakeFiles/demo_VEH_HMMWV9.dir/demo_VEH_HMMWV9.cpp.o' failed
make[2]: *** [src/demos/vehicle/demo_HMMWV9/CMakeFiles/demo_VEH_HMMWV9.dir/demo_VEH_HMMWV9.cpp.o] Error 1
CMakeFiles/Makefile2:3758: recipe for target 'src/demos/vehicle/demo_HMMWV9/CMakeFiles/demo_VEH_HMMWV9.dir/all' failed
make[1]: *** [src/demos/vehicle/demo_HMMWV9/CMakeFiles/demo_VEH_HMMWV9.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

I have downloaded IrrKlang (1.5.0) from the official download site and installed the shared libraries in /usr/local/lib and the headers in /usr/local/include/irrklang/
I checked that the shared libraries are found in my /etc/ld.so.cache file.

Attached is a full screenshot of my cmake gui window, but I believe the issue has got to be with the following Cmake variables
CH_IRRKLANGLIB = /usr/local/lib/libIrrKlang.so
CH_IRRKLANG_SDKDIR = /usr/local/include/irrklang

I feel like I've hit a wall with this, so any help would be appreciated.

Thanks,

Robert
cmake_chrono_6_12_18.png

Robert

unread,
Jun 14, 2018, 2:55:55 PM6/14/18
to ProjectChrono
Today I was able to get Chrono to finish building!

Somehow I was in a detached head state in my local repo, but I checked out master (Chrono 3.0.0), and deleted my cmake cache. When reconfiguring in the Cmake-gui, it no longer required me to have the IrrKlang option checked to be able to build the vehicle module, so I left it unchecked and don't really plan to test building with it. Everything built successfully but i was getting errors with a lot of the demos. Most notably, all the Irrlicht and vehicle demos were crashing with a *** Stack smashing detected *** error. At this point I had the Irrlicht 1.8.2 library installed.

I downloaded and installed Irrlicht 1.8.4 and that has fixed all the demos that I've tried so far. Hopefully this is useful for anyone on Ubuntu running into similar errors.

19yc93

unread,
Jun 15, 2018, 10:35:18 AM6/15/18
to ProjectChrono
Reply all
Reply to author
Forward
0 new messages