Giter Site home page Giter Site logo

Comments (5)

subshine avatar subshine commented on July 2, 2024

https://blog.csdn.net/qq_36170626/article/details/95963467
按照这篇博客修改一下代码

from slambook2.

zhouyazhoulearn avatar zhouyazhoulearn commented on July 2, 2024

你这链接并不能打开啊

from slambook2.

Frozenheart1998 avatar Frozenheart1998 commented on July 2, 2024

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.

QLJX avatar QLJX commented on July 2, 2024

你好,我也是遇到了类似的问题。我原来的系统也是命令安装的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.

Jonathan-Twz avatar Jonathan-Twz commented on July 2, 2024

我个人是从源码编译的方式把eigen3.3.x装到了 /usr/local/include/eigen3, 但是本身CMakeList 中是指向了/usr/include/eigen3, 在这个位置找到了eigen3.2.9。
所以只需要修改CMakeList即可。

from slambook2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.