Errors???? << odom_visualization:make /home/labh/xtdrone_ws/logs/odom_visualization/build.make.002.log
/usr/bin/ld: 找不到 -lpose_utils
collect2: error: ld returned 1 exit status
make[2]: *** [/home/labh/xtdrone_ws/devel/.private/odom_visualization/lib/odom_visualization/odom_visualization] Error 1
make[1]: *** [CMakeFiles/odom_visualization.dir/all] Error 2
make: *** [all] Error 2
解决方法:
用locate命令定位XXX库文件
locate libpose_utils.so
得到结果为:
/home/labh/.local/share/Trash/files/Fast-Perching/devel/lib/libpose_utils.so
/home/labh/.local/share/Trash/files/devel.2/.private/pose_utils/lib/libpose_utils.so
/home/labh/.local/share/Trash/files/devel.2/lib/libpose_utils.so
再用软链接将上述中的任意一个与其链接起来
sudo ln -s /home/labh/.local/share/Trash/files/devel.2/lib/libpose_utils.so /usr/lib/libpose_utils.so