ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

howto: Eigen Installation

asked 2017-01-27 15:49:51 -0500

MarkyMark2012 gravatar image

All,

This is just a brief how to on how to resolve Eigen compile time errors - which wasn't installed on my Raspberry Pi.

I kept getting the error:

CMake Error at CMakeLists.txt:12 (find_package): 
By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has 
asked CMake to find a package configuration file provided by "Eigen3", but 
CMake did not find one. 

Could not find a package configuration file provided by "Eigen3" with any 
of the following names: 

Eigen3Config.cmake 
eigen3-config.cmake 

Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set 
"Eigen3_DIR" to a directory containing one of the above files.  If "Eigen3" 
provides a separate development package or SDK, be sure it has been 
installed.

And try as I might I couldn't find a conclusive answer. Anyway these steps should solve the issue

1) Download Eigen

hg clone https://bitbucket.org/eigen/eigen/

2) CD into the download dir

 cd eigen

3) Create a build dir

 mkdir build

4) Configure the build

cmake ..

5) Build the package

make

6) Install the package

sudo make install

And all being well that should be it!

Hope this helps

Mark

edit retag flag offensive close merge delete

Comments

rosdep should have installed eigen for you (if you ran it). Did you try sudo apt-get install libeigen3-dev? Is there something wrong with the system-supplied version of Eigen on your Pi?

ahendrix gravatar image ahendrix  ( 2017-01-27 17:26:58 -0500 )edit

Yep I tried installing that and had no joy. To be honest I am not quire sure what is wrong with the system supplied version - sufficed to say that a number of routes tried didn't work until i installed it from scratch

MarkyMark2012 gravatar image MarkyMark2012  ( 2017-01-28 08:45:37 -0500 )edit

I have the same problem. could anyone solve it?

Abdulbaki gravatar image Abdulbaki  ( 2018-01-17 06:12:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-01-22 05:07:33 -0500

MarkyMark2012 gravatar image

updated 2018-01-22 05:08:54 -0500

Two options:

1) Install using - sudo apt-get install libeigen3-dev

Or self build, in which case use these steps:

1) Download Eigen

hg clone https://bitbucket.org/eigen/eigen/

2) CD into the download dir

cd eigen

3) Create a build dir

mkdir build

4) Configure the build

cmake ..

5) Build the package

make

6) Install the package

sudo make install

edit flag offensive delete link more

Comments

Does it matter, if you download Eigen, in what directory you save it?

Kliffu gravatar image Kliffu  ( 2018-09-25 09:23:47 -0500 )edit

No shouldn't do. Step 6 will install it onto the system

MarkyMark2012 gravatar image MarkyMark2012  ( 2018-09-27 16:56:49 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-01-27 15:49:51 -0500

Seen: 13,988 times

Last updated: Jan 22 '18