This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can't find Eigen3

Tags: None
(comma "," separated)
daviddoria
Registered Member
Posts
46
Karma
0
OS

Can't find Eigen3

Sat May 07, 2011 3:06 pm
I have copied FindEigen3.cmake into my source directory.

I then added:
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})

to my CMakeLists.txt to tell CMake to use this .cmake file.

Then in my CMakeLists.txt I do:
FIND_PACKAGE(Eigen3)

I have the environent variable EIGEN3_INCLUDE_DIR set to /home/doriad/src/eigen

When I run CMake, I get:

-- Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR EIGEN3_VERSION_OK) (Required is at least version "2.91.0")

This is a fresh clone from Mercurial, so the version should be at least 3.

Any suggestions?

If I set the module path INCORRECTLY, I get some clues:

Adjust CMAKE_MODULE_PATH to find FindEigen3.cmake or set Eigen3_DIR to the
directory containing a CMake configuration file for Eigen3. The file will
have one of the following names:

Eigen3Config.cmake
eigen3-config.cmake

However, I didn't find either of those files in either the source dir or build dir of Eigen3. I tried to set Eigen3_DIR=/home/doriad/src/eigen, but that didn't work either.

Thoughts?

Thanks,

David
daviddoria
Registered Member
Posts
46
Karma
0
OS

Re: Can't find Eigen3

Sat May 07, 2011 10:45 pm
It seems like manually setting EIGEN3_INCLUDE_DIR in the CMake does the trick. Is this not pulled from the environment variable EIGEN3_INCLUDE_DIR? Also, what is the difference between EIGEN3_INCLUDE_DIR and Eigen3_DIR?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora