|
Hello Mathieu,
I am trying to compile rtabmap on my new NUC with Ubuntu 20.04. I have installed libboost-all-dev, but when I tried to compile rtabmap it shows this:
[ 4%] Built target rtabmap_utilite
[ 5%] Built target res_tool
[ 5%] Linking CXX shared library ../../../bin/librtabmap_core.so
/usr/bin/ld: cannot find -lBoost::thread
/usr/bin/ld: cannot find -lBoost::program_options
/usr/bin/ld: cannot find -lBoost::chrono
collect2: error: ld returned 1 exit status
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/build.make:1885: ../bin/librtabmap_core.so.0.20.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:894: corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
I tried to run sudo ldconfig to fix any linking issue, but still unable to compile correctly. Do you have any suggestions?
Edit: I am using boost version 1.71.0 since ldconfig -p | grep libboost, gives this:
libboost_wserialization.so.1.71.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libboost_wserialization.so.1.71.0
libboost_wserialization.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libboost_wserialization.so
libboost_wave.so.1.71.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libboost_wave.so.1.71.0
libboost_wave.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libboost_wave.so
.....
Sicnerely,
Sean Xu
|