Comments (5)
https://blog.csdn.net/qq_36170626/article/details/95963467
按照这篇博客修改一下代码
from slambook2.
你这链接并不能打开啊
from slambook2.
https://blog.csdn.net/qq_36170626/article/details/95963467
按照这篇博客修改一下代码
谢谢你的link
我自己还有一种方式。由于find_packages只能发现我的Eigen3.2(该版本Eigen是通过apt-get直接下载的),我直接在cmakelists里手动加入Eigen3.3的路径“/usr/local/include/eigen3”。这是因为Eigen3.3只能通过下载源码编译安装。Sophus的.h版本和.hpp版本在安装以后可以共存于"/usr/local/include/sophus"。
这样可以完美运行高博的ch4,ch5。但问题在于每次使用Sophus时都需要手动引用Eigen3.3的位置。不知道有没有办法能够让find_packages直接找到3.3的路径而非3.2的。不知道修改环境变量有没有用...
from slambook2.
你好,我也是遇到了类似的问题。我原来的系统也是命令安装的eigen3.2.0,编译模板sophus时报错版本过低,我又重新安装eigen3.3.1,编译报错:
-- Failed to find Ceres - Found Eigen dependency, but the version of Eigen found (3.3.1) does not exactly match the version of Eigen Ceres was compiled with (3.2.0). This can cause subtle bugs by triggering violations of the One Definition Rule. See the Wikipedia article http://en.wikipedia.org/wiki/One_Definition_Rule for more details
CMake Error at /usr/local/lib/cmake/Ceres/CeresConfig.cmake:89 (else):
A duplicate ELSE command was found inside an IF block.
Call Stack (most recent call first):
/usr/local/lib/cmake/Ceres/CeresConfig.cmake:217 (ceres_report_not_found)
test/core/CMakeLists.txt:3 (find_package)
请问你解决的过程是如何的,能否详细写明。多谢
from slambook2.
我个人是从源码编译的方式把eigen3.3.x装到了 /usr/local/include/eigen3, 但是本身CMakeList 中是指向了/usr/include/eigen3, 在这个位置找到了eigen3.2.9。
所以只需要修改CMakeList即可。
from slambook2.
Related Issues (20)
- CMakeFiles/test_triangulation.dir/test_triangulation.cpp.o: In function `Sophus::SO3Base<Sophus::SO3<double, 0> >::normalize() [clone .part.1600]': test_triangulation.cpp:(.text.unlikely+0x141): undefined reference to `fmt::print(fmt::BasicCStringRef<char>, fmt::ArgList)' test_triangulation.cpp:(.text.unlikely+0x15a): undefined reference to `fmt::print(fmt::BasicCStringRef<char>, fmt::ArgList)' HOT 1
- 请问Ubuntu版本有没有要求 HOT 2
- 我是小白,请问为什么我把这里的代码拷贝到虚拟机里以后,3rdparty的各个子目录都是空的啊? HOT 5
- [ch12] 在单目稠密估计的示例代码中,关于坐标转化的疑问 HOT 1
- Two questions on ceres BA in CH9
- ch4 make Sophus库的时候报错 HOT 3
- ch3 visualizeGeometry.cpp Display Issue HOT 1
- ch8 optical_flow.cpp bias, jacobian calculate issue HOT 1
- ch7 安装g2o 编译时报错 HOT 1
- Wrong Rodrigues’ formula
- ch5中opencv版本和书中代码项目要求版本不一致,代码无法运行
- ch3 / examples / plotTrajectory.cpp : vector subscript out of range
- ch7 pose_estimation_2d2d
- Why divide the camera intrinsics by 2? [ 为什么将相机内参除以 2] HOT 4
- CH12 点云建图 voxel filter报错
- 在使用VScode编译plotTrajectory.cpp时,出现报错 HOT 4
- ch3中执行./plotTrajectory报错 报错信息为: cannot find trajectory file at ./examples/trajectory.txt
- ch3 3.6.2实际的坐标变换例子 是否有错误
- Ch3 plotTrajectory Cmake can't find epoxy::epoxy build error HOT 4
- 执行ch5/imageBasics/imageBasics.cpp 报了Gtk-Message:15:51:29.826: Failed to load moudle "canberra-gtk-module"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slambook2.