Study: Software(SW)/SW: Error Bug Fix

[Error Fix] Could not find a package configuration file provided by "GTSAM" with any of the following names(gtsam, Eigen)

DrawingProcess 2023. 10. 14. 10:35
반응형

# 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

 

반응형