반응형
# Problem
Could not find a package configuration file provided by "GTSAM" with any of the following names:
GTSAMConfig.cmake
gtsam-config.cmake
Add the installation prefix of "GTSAM" to CMAKE_PREFIX_PATH or set "GTSAM_DIR" to a directory containing one of the above files. If "GTSAM" provides a separate development package or SDK, be sure it has been installed.
# Solution
Always like this problem, solved by 'package install' or 'setting CMAKE_PREFIX_PATH'
git clone https://github.com/borglab/gtsam
mkdir build && cd build
cmake -DGTSAM_USE_SYSTEM_EIGEN=ON -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF ..
sudo make install -j8
# Reference
- [Github issue] Dependency on ROS: https://github.com/irapkaist/SC-LeGO-LOAM/issues/13
- [Github issue] gtsam with Eigen when catkin_make errors: https://github.com/borglab/gtsam/issues/104
- [Github issue] ERROR on execution: https://github.com/gisbi-kim/FAST_LIO_SLAM/issues/8
반응형