Eigen3 include problem with KDL
Submitted by nictosi on Thu, 2013-02-21 11:14 |
Hi!
I went through the KDL installation http://www.orocos.org/kdl/installation-manual .
So I installed Eigen3 then KDL.
When I include the following hpp files
#include <kdl/chain.hpp> #include <kdl/chainfksolver.hpp> #include <kdl/chainfksolverpos_recursive.hpp> #include <kdl/frames_io.hpp>
I get the following compiling error:
/usr/local/include/kdl/jacobian.hpp:26:22: fatal error: Eigen/Core: No such file or directory
but Eigen/Core is indeed installed in my
/usr/local/include/eigen3/Eigen/Core
I solved the issue by including the reference to the installation directory in the CMakelists of my component, but I reckon there must be a cleaner solution.
include_directories (/usr/local/include/eigen3)
During KDL installation, doing ccmake I can see the following:
BUILD_MODELS OFF CMAKE_BUILD_TYPE Release CMAKE_INSTALL_PREFIX /usr/local CPACK_PACKAGES OFF CPPUNIT CPPUNIT-NOTFOUND CPPUNIT_HEADERS CPPUNIT_HEADERS-NOTFOUND EIGEN3_INCLUDE_DIR /usr/local/include/eigen3 ENABLE_EXAMPLES OFF ENABLE_TESTS OFF Eigen_DIR Eigen_DIR-NOTFOUND KDL_VERSION 1.1.99The EIGEN3_INCLUDE_DIR path is correct, but Eigen_DIR is set to Eigen_DIR-NOTFOUND.
Any clue? Perhaps something got broken with the latest update of Eigen3?
Cheers
Niccolo'
Eigen3 include problem with KDL
I can correctly use Eigen3.
Put the FindEigen3.cmake into "(yourComponentPath)/modules/"
add to your CMakeLists.txt:
It should be enough... Fabrizio---FindEigen3.cmake---