Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Eigen3 #3

Closed
patrickelectric opened this issue Mar 18, 2014 · 2 comments
Closed

Problem with Eigen3 #3

patrickelectric opened this issue Mar 18, 2014 · 2 comments

Comments

@patrickelectric
Copy link

http://eigen.tuxfamily.org/index.php?title=Main_Page
I had rename the files of eigen3 to eigen in /usr/local/lib/cmake to compile the opengv.

/usr/local/lib/cmake/eigen3/Eigen3Config.cmake to /usr/local/lib/cmake/eigen3/EigenConfig.cmake
/usr/local/lib/cmake/eigen3/UseEigen3.cmake to
/usr/local/lib/cmake/eigen3/UseEigen.cmake

but have some problems to make the opengv.
/usr/local/include/eigen3/unsupported/Eigen/NonLinearOptimization:15:22: fatal error: Eigen/Core: No such file or directory
#include <Eigen/Core>

Dont have support to Eigen3 ?

@laurentkneip
Copy link
Owner

I just added a new FindEigen.cmake file in opengv/cmake. It searches for Eigen-headers, and then includes the paths. Note however that my eigen headers are located in usr/include ...

@grandoba
Copy link

grandoba commented Oct 6, 2021

I solved the problem by changing the following:

  • find_package(Eigen Required) to find_package(Eigen3 Required) in line 161
  • include_directories(${EIGEN_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIR}/unsupported) to include_directories(${EIGEN3_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIR}/unsupported) in line 162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants