slam第11讲使用gtsam时遇到的问题
CMake Error at /usr/local/lib/cmake/GTSAM/GTSAMConfig.cmake:17 (find_dependency):
Unknown CMake command "find_dependency".
Call Stack (most recent call first):
CMakeLists.txt:25 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/xx/Desktop/slambook/ch11/build/CMakeFiles/CMakeOutput.log".
Makefile:220: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
解决方法:
gedit /usr/local/lib/cmake/GTSAM/GTSAMConfig.cmake
将第17行的find_dependency 改为find_package
参考:
https://blog.youkuaiyun.com/weixin_45617478/article/details/104113617