gaoxiang12 / slambook

MIT License
6.88k stars 3.26k forks source link

ch5 joinMap两个编译错误和解决办法 #216

Open zergzzlun opened 5 years ago

zergzzlun commented 5 years ago
MavAlex commented 5 years ago

[ 50%] Building CXX object CMakeFiles/joinMap.dir/joinMap.cpp.o

:0:15: warning: ISO C++11 requires whitespace after the macro name [100%] Linking CXX executable joinMap /usr/bin/ld: cannot find -lvtkproj4 collect2: error: ld returned 1 exit status CMakeFiles/joinMap.dir/build.make:349: recipe for target 'joinMap' failed make[2]: *** [joinMap] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/joinMap.dir/all' failed make[1]: *** [CMakeFiles/joinMap.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2 *** Failure: Exit code 2 *** 老哥make的时候出现这个问题怎么回事?
zergzzlun commented 5 years ago

Hi Alex,

我并不完全了解你遇到的这个问题, 根据这个和你遇到了类似报错的issue: https://github.com/PointCloudLibrary/pcl/issues/1594 一个可能的解决办法是: ln -s /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.2.so /usr/lib/libvtkproj4.so

希望可以帮助你。