我正在尝试在this guide之后在Ubuntu 16.04上编译PCL 1.8.0。
但是,出现以下错误:
[ 51%] Linking CXX executable ../../bin/pcl_pcd_image_viewer
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libSM.so: undefined reference to `uuid_generate@UUID_1.0'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libSM.so: undefined reference to `uuid_unparse_lower@UUID_1.0'
collect2: error: ld returned 1 exit status
visualization/tools/CMakeFiles/pcl_pcd_image_viewer.dir/build.make:239: recipe for target 'bin/pcl_pcd_image_viewer' failed
make[2]: *** [bin/pcl_pcd_image_viewer] Error 1
CMakeFiles/Makefile2:1407: recipe for target 'visualization/tools/CMakeFiles/pcl_pcd_image_viewer.dir/all' failed
make[1]: *** [visualization/tools/CMakeFiles/pcl_pcd_image_viewer.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
在终端中执行ldconfig -p | grep libSM.so.6
时,得到以下输出:
libSM.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libSM.so.6
因此,该库可用,但我不理解uuid_generate@UUID_1.0
错误。