当前位置:网站首页>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
边栏推荐
- [daily practice] day (14)
- HTB-Granpa
- R language data The table package performs aggregation transforms of data packets and calculates the grouping interquartile range (IQR) of dataframe data
- Idea commonly used 10 shortcut keys
- HTB-Arctic
- (2022年牛客多校一)I-Chiitoitsu(期望DP)
- 编程大杂烩(二)
- 剖析kubernetes集群内部DNS解析原理
- 对于von Mises distribution(冯·米塞斯分布)的一点心得
- sqlilabs less-29
猜你喜欢

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

Sword finger offer 45. arrange the array into the smallest number

剑指 Offer 45. 把数组排成最小的数

sqlilabs less-29

Unity 模型简化/合并 一键式插件

VO, dto, do, Po distinction and use

C100: smallest hevc visual IOT MCU

The computer accesses the Internet normally with the same network cable, and the mobile phone connects to WiFi successfully, but it cannot access the Internet

编程大杂烩(一)

HTB-Optimum
随机推荐
Singing "Seven Mile fragrance" askew -- pay tribute to Jay
Leetcode 237. 删除链表中的节点
2020ICPC 江西省赛热身赛 E.Robot Sends Red Packets(dfs)
Bug --- redis deserialization failed
【每日一练】day(14)
leetcode/ 前 n 个数字二进制中 1 的个数
Context must be a dict rater solution
Difference between NPX and NPM
PHP warehouse inventory management system source code WMS source code
Run length test of R language: use the runs.test function to perform run length test on binary sequence data (check whether the sequence is random)
sqlilabs less-29
Atof(), atoi(), atol() functions [detailed]
Codeforces Round #809 (Div. 2)
计算BDP值和wnd值
EOL offline sequence based on iso13209 (Otx)
HTB-Devel
(16)[系统调用]追踪系统调用(3环)
线性代数(三)
C100: smallest hevc visual IOT MCU
Amazoncaptcha 95%成功率绕过亚马逊IP验证码