Issue:
I have libeigen3 from the official repo installed:
$ sudo apt-get install libeigen3-dev
[sudo] password for nicolas:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libeigen3-dev is already the newest version (3.3~beta1-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
it says it's a 3.3 version, as this command does:
$ dpkg -s libeigen3-dev | grep 'Version'
Version: 3.3~beta1-2
However, version in file /usr/lib/cmake/eigen3/Eigen3Config.cmake
is set to:
set ( EIGEN3_VERSION_STRING "3.2.92" )
Question:
I wonder why? And how could I fix that because I need at least Eigen3.3 for to build an other software.
sudo dpkg -i libeigen3-dev_3.3.4-4_all.deb
(or whatever version you have downloaded). It should work flawless since there are not difficult dependencies.Solution:
You can download eigen directly from its main website:
http://eigen.tuxfamily.org/index.php?title=Main_Page
Finally, follow the instruction in the
INSTALL
file:Do not forget to link to these new libraries in cmake for any program using it if they are installed in parallel from the official ones! ;)