Eigen/Core not found!

Hi all, I'm trying to compile a kdl example but...

marco@ubuntu:~/Roboticslab/esempi$ g++ esempio.cpp In file included from /usr/local/include/kdl/jntarray.hpp:26,

                 from /usr/local/include/kdl/chainfksolver.hpp:28,
                 from esempio.cpp:9:
/usr/local/include/kdl/jacobian.hpp:26:22: error: Eigen/Core: Nessun file o directory In file included from /usr/local/include/kdl/jntarray.hpp:26,
                 from /usr/local/include/kdl/chainfksolver.hpp:28,
                 from esempio.cpp:9:
/usr/local/include/kdl/jacobian.hpp:33: error: ‘Eigen’ has not been declared /usr/local/include/kdl/jacobian.hpp:33: error: expected ‘;’ before ‘<’ token In file included from /usr/local/include/kdl/chainfksolver.hpp:28,
                 from esempio.cpp:9:
/usr/local/include/kdl/jntarray.hpp:72: error: ‘Eigen’ has not been declared /usr/local/include/kdl/jntarray.hpp:72: error: expected ‘;’ before ‘data’

I've already installed Eigen, and nothing went wrong. What can I do now???

Ruben Smits's picture

Eigen/Core not found!

On Tue, Dec 15, 2009 at 11:41 AM, oroblam [..] ... <oroblam [..] ...> wrote:
> Hi all, I'm trying to compile a kdl example but...
>
> marco@ubuntu:~/Roboticslab/esempi$ g++ esempio.cpp
> In file included from /usr/local/include/kdl/jntarray.hpp:26,
>                 from /usr/local/include/kdl/chainfksolver.hpp:28,
>                 from esempio.cpp:9:
> /usr/local/include/kdl/jacobian.hpp:26:22: error: Eigen/Core: Nessun file o directory
> In file included from /usr/local/include/kdl/jntarray.hpp:26,
>                 from /usr/local/include/kdl/chainfksolver.hpp:28,
>                 from esempio.cpp:9:
> /usr/local/include/kdl/jacobian.hpp:33: error: ‘Eigen’ has not been declared
> /usr/local/include/kdl/jacobian.hpp:33: error: expected ‘;’ before ‘<’ token
> In file included from /usr/local/include/kdl/chainfksolver.hpp:28,
>                 from esempio.cpp:9:
> /usr/local/include/kdl/jntarray.hpp:72: error: ‘Eigen’ has not been declared
> /usr/local/include/kdl/jntarray.hpp:72: error: expected ‘;’ before ‘data’
>
> I've already installed Eigen, and nothing went wrong. What can I do now???
>

You have to tell your example were Eigen is located: g++
-I/path/to/eigen/ esempio.cpp

The location of eigen depends on your system, but usually it is
/usr/include/eigen2

Ruben
>
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>

Eigen/Core not found!

Hi all, I'm trying to compile a kdl example but...

marco@ubuntu:~/Roboticslab/esempi$ g++ esempio.cpp
In file included from /usr/local/include/kdl/jntarray.hpp:26,
from /usr/local/include/kdl/chainfksolver.hpp:28,
from esempio.cpp:9:
/usr/local/include/kdl/jacobian.hpp:26:22: error: Eigen/Core: Nessun file o directory
In file included from /usr/local/include/kdl/jntarray.hpp:26,
from /usr/local/include/kdl/chainfksolver.hpp:28,
from esempio.cpp:9:
/usr/local/include/kdl/jacobian.hpp:33: error: ‘Eigen’ has not been declared
/usr/local/include/kdl/jacobian.hpp:33: error: expected ‘;’ before ‘<’ token
In file included from /usr/local/include/kdl/chainfksolver.hpp:28,
from esempio.cpp:9:
/usr/local/include/kdl/jntarray.hpp:72: error: ‘Eigen’ has not been declared
/usr/local/include/kdl/jntarray.hpp:72: error: expected ‘;’ before ‘data’

I've already installed Eigen, and nothing went wrong. What can I do now???

--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users