로봇

[cartographer cmake 오류] CMake Error at /usr/local/lib/cmake/Ceres/CeresConfig.cm

jjjjjjyun 2025. 3. 15. 11:18

cartographer cmake 빌드 중 발생한 오류이다.
https://github.com/cartographer-project/cartographer

 

GitHub - cartographer-project/cartographer: Cartographer is a system that provides real-time simultaneous localization and mappi

Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations. - GitHub - cartographer-project/carto...

github.com

 
해결) 최신 버전인 2.1이 아닌 1.4 이용을 추천한다. 최신 마스터 브랜치의 ceres-solver와 다른 라이브러리(eigen3)와 호환이 안 좋다는 글을 발견했다. 재설치를 진행하기 전 기존 버전을 삭제한다.
 

# 기존 버전 삭제
sudo rm -r /usr/local/lib/cmake/Ceres
sudo rm -r /usr/local/ceres /usr/local/lib/libcreres.ad
sudo rm -r /usr/local/share/Ceres
# 설치
wget ceres-solver.org/ceres-solver-1.14.0.tar.gz
https://ceres-solver.googlesource.com/ceres-solver
cd ceres-solver-1.14.0
mkdir build
cd build
cmake ..
make -j4
make test
sudo make install

'로봇' 카테고리의 다른 글

Face Recognition  (0) 2025.03.15
[PEAK System] PCAN USB 이용  (0) 2025.03.15
라이다 LiDAR, 레이더 LADAR  (0) 2025.03.15
SLAM (Simultaneous Localization and Mapping) 개요  (0) 2025.03.15
[SICK] 라이다 연결 (TIM781S)  (0) 2025.03.13