orocos / orocos_kinematics_dynamics

Orocos Kinematics and Dynamics C++ library
679 stars 407 forks source link

Add files via upload #389

Closed 21Ansh closed 2 years ago

21Ansh commented 2 years ago

Fixed build errors No such file or directory #include <Eigen/Core>

meyerj commented 2 years ago

Eigen is meant to be used with the original include directives, without the eigen3/ prefix. Instead, when building KDL, the installation of Eigen is normally found by CMake and added to the include path here:

https://github.com/orocos/orocos_kinematics_dynamics/blob/11d8bd62128092ff64ab20e419b295ca72aada32/orocos_kdl/CMakeLists.txt#L52-L57

It is also exported in the generated CMake config for package orocos_kdl and in orocos_kdl.pc for pkg-config via Cflags: -I${includedir} @KDL_CFLAGS@.

If you use neither of both, then indeed you would have to make sure that /usr/include/eigen3 (or another installation of Eigen3) is in the compiler's include path for all derived packages and/or projects in another way.

Fixed build errors No such file or directory #include <Eigen/Core>

That does not sound like compiler error? What is the exact error message you are facing?

MatthijsBurgh commented 2 years ago

I agree with @meyerj and think this is an issue with your local machine instead of a bug in the library.