当前位置:网站首页>Ceres solver version 1.14 and eigen3.2.9
Ceres solver version 1.14 and eigen3.2.9
2022-07-25 05:53:00 【X uuuer.】
notes : Best use Ceres1.14 edition ,Eigen The corresponding version is 3.2.9
commonly Vins-Fusion Compilation error about Ceres When you make a mistake , Direct reinstallation Ceres and Eigen, Avoid constant error reporting , You can refer to the following , Directly solve the error report .
One 、 compile Vins-fusion Report errors
Report errors :
By not providing "FindCeres.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Ceres", but
CMake did not find one.
Could not find a package configuration file provided by "Ceres" with any of
the following names:
CeresConfig.cmake
ceres-config.cmake
resolvent :
1、 Delete the previous ceres-solver edition : What I installed before is 2.0 edition
Ceres The header file of the library is installed in "/usr/local/include/ceres/" Under the table of contents , The library files are installed in "/usr/local/lib/" Catalog , Delete CERES file :
sudo rm -r /usr/local/lib/cmake/Ceres
sudo rm -rf /usr/local/include/ceres /usr/local/lib/libceres.a
sudo rm -r /usr/local/share/Ceres
2、 download ceres-solver-1.14.0
wget ceres-solver.org/ceres-solver-1.14.0.tar.gz
3、 decompression
tar xvf ceres-solver-1.14.0.tar.gz
4、 compile
cd ceres-solver-1.14.0
mkdir build
cd build
cmake ..
sudo make
5、 install
sudo make installTwo 、ceres-solver-1.14.0 Installation error
/home/lab/ceres-solver-1.14.0/internal/ceres/gtest/gtest.h:10445:35: error: variable or field ‘it’ declared void
for (typename C::const_iterator it = container.begin();
reason :eigen Version and ceres Version conflict
Solution steps :
1、 The first eigen uninstall , hold /usr/include and /usr/local/include Below Eigen and eigen3 Delete all the folders :
sudo rm -rf /usr/include/Eigen /usr/include/eigen3 /usr/local/include/Eigen /usr/local/include/eigen3 2、eigen download : from Eigen Download the corresponding version of eigen Compressed package , Just unzip it directly to the corresponding location
decompression :sudo tar -xzvf eigen-3.2.9.tar.gz -C /usr/local/include
3、 decompression :sudo tar -xzvf eigen-3.2.9.tar.gz -C /usr/local/include
4、 Copy :
sudo cp -r /usr/local/include/eigen3/Eigen /usr/local/include
sudo cp -r /usr/local/include/eigen3/Eigen /usr/include
sudo cp -r /usr/local/include/eigen3 /usr/include
Then repeat ceres-solver-1.14.0 Installation steps are enough .
3、 ... and 、Vins-fusion Compilation problems :
-- Found installed version of Eigen: /usr/local/share/eigen3/cmake
CMake Error at /usr/local/lib/cmake/Ceres/CeresConfig.cmake:88 (message):
Failed to find Ceres - Missing required Ceres dependency: Eigen version
3.3.90, please set EIGEN_INCLUDE_DIR.
Call Stack (most recent call first):
/usr/local/lib/cmake/Ceres/CeresConfig.cmake:233 (ceres_report_not_found)
VINS-Fusion/camera_models/CMakeLists.txt:19 (find_package)
CMake Error at VINS-Fusion/camera_models/CMakeLists.txt:19 (find_package):
Found package configuration file:
/usr/local/lib/cmake/Ceres/CeresConfig.cmake
but it set Ceres_FOUND to FALSE so package "Ceres" is considered to be NOT
FOUND.
resolvent :
open /usr/local/lib/cmake/Ceres/CeresConfig.cmake, Make the following modifications :
First grant write permission :sudo chmod 777 CeresConfig.cmake
set(Ceres_FOUND TRUE) # take FALSE Change it to TRUE
set(EIGEN_INCLUDE_DIR "/usr/local/include/eigen3") # Add this line
set(CERES_EIGEN_VERSION 3.2.9) # Add this line , The version number corresponds to the one you installed
边栏推荐
- Prometheus operator configures promethesrule alarm rules
- (2022牛客多校二)K-Link with Bracket Sequence I(动态规划)
- 10、渲染基础
- 新时代生产力工具——FlowUs 息流全方位评测
- CCID released the "Lake warehouse integrated technology research report", and Jushan database was selected as a typical representative of domestic enterprises
- HTB-Arctic
- Programming hodgepodge (II)
- HTB-Optimum
- sqlilabs less-29
- Unity 模型简化/合并 一键式插件
猜你喜欢

Concepts of phase velocity and phase in transmission line theory

新时代生产力工具——FlowUs 息流全方位评测

Sword finger offer 36. binary search tree and bidirectional linked list

Prometheus operator configures promethesrule alarm rules

(2022 Niuke multi School II) k-link with bracket sequence I (dynamic planning)

Linear algebra (3)

Leetcode 237. delete nodes in the linked list

The difference between function and task in SystemVerilog

Productivity tool in the new era -- flowus information flow comprehensive evaluation

10、渲染基础
随机推荐
Leetcode 0122. the best time to buy and sell stocks II
(Niuke multi School II) j-link with arithmetic progress (least square method / three points)
Qunhui NPV Suite (NPV server) Download
Automatic usage in SystemVerilog
(2022牛客多校二)K-Link with Bracket Sequence I(动态规划)
Difference between NPX and NPM
HTB-Beep
G1 garbage collector
npx和npm区别
C100: smallest hevc visual IOT MCU
聊聊 Redis 是如何进行请求处理
剑指 Offer 54. 二叉搜索树的第k大节点
Analyzing the principle of DNS resolution in kubernetes cluster
Microservice - remote invocation (feign component)
出于数据安全考虑,荷兰教育部要求学校暂停使用 Chrome 浏览器
编程大杂烩(一)
Xiaomi 12s UTRA Leica watermark generation online tool
R language obtains the data row where the nth maximum value of the specified data column is located in the data.table data
[daily practice] day (14)
Softing pngate series gateway: integrate PROFIBUS bus into PROFINET network