my kdl could not work...

i chang CMAKE_BUILD_TYPE to None,when i install,others are default.
then compile geometry.cpp in kdl-1.0.1/examples

#g++ -Wall -I/usr/local/include/kdl -I/usr/include/eigen2 -L/usr/local/lib -lorocos-kdl geometry.cpp -o geometry

no error,but when i execute it,

#./geometry
#./a.out: error while loading shared libraries: liborocos-kdl.so.1.0: cannot open shared object file: No such file or directory
(i find liborocos-kdl.so.1.0 at /usr/local/lib,but the pc can not find...)

#sh geometry
#a.out: 1: Syntax error: word unexpected (expecting ")")

if i compile it using
#g++ -Wall -I/usr/local/include/kdl -I/usr/include/eigen2 -L/usr/local/lib -lorocos-kdl geometry.cpp -o geometry -static

/usr/bin/ld: cannot find -lorocos-kdl
collect2: ld return 1

why?
what is orocos-kdl?where could i find it?
expect your reply, thank u!

Ruben Smits's picture

my kdl could not work...

On Fri, Aug 21, 2009 at 12:08 PM,
managerkiller [..] ...<managerkiller [..] ...> wrote:
> i chang  CMAKE_BUILD_TYPE to None,when i install,others are default.
> then compile geometry.cpp in kdl-1.0.1/examples
>
> #g++ -Wall -I/usr/local/include/kdl -I/usr/include/eigen2 -L/usr/local/lib -lorocos-kdl geometry.cpp -o geometry
>
> no error,but when i execute it,
>
> #./geometry<enter>
> #./a.out: error while loading shared libraries: liborocos-kdl.so.1.0: cannot open shared object file: No such file or directory
> (i find liborocos-kdl.so.1.0 at /usr/local/lib,but the pc can not find...)
>
> #sh geometry<enter>
> #a.out: 1: Syntax error: word unexpected (expecting ")")

It's been a while since i tried the examples. Maybe they are outdated.
I'll check this asap.

>
> if i compile it using
> #g++ -Wall -I/usr/local/include/kdl -I/usr/include/eigen2 -L/usr/local/lib -lorocos-kdl geometry.cpp -o geometry  -static<enter>
>
> /usr/bin/ld: cannot find -lorocos-kdl
> collect2: ld return 1
>
> why?
> what is orocos-kdl?where could i find it?
> expect your reply, thank u!

orocos-kdl is the kdl-library, you should at least compile/install
this one before trying the examples. Please follow the instructions on
<http://www.orocos.org/kdl/Installation_Manual> to install orocos-kdl

Ruben

my kdl could not work...

thank you i solve the problem:
my system is ubuntu9.04,
kdl lib(liborocos-kdl.so*) must be placed in /usr/lib,
but i use the default place(/usr/local/lib)...
thank you for you reply

2009/8/22 Ruben Smits <ruben [dot] smits [..] ...>

> On Fri, Aug 21, 2009 at 12:08 PM,
> managerkiller [..] ...<managerkiller [..] ...> wrote:
> > i chang CMAKE_BUILD_TYPE to None,when i install,others are default.
> > then compile geometry.cpp in kdl-1.0.1/examples
> >
> > #g++ -Wall -I/usr/local/include/kdl -I/usr/include/eigen2
> -L/usr/local/lib -lorocos-kdl geometry.cpp -o geometry
> >
> > no error,but when i execute it,
> >
> > #./geometry<enter>
> > #./a.out: error while loading shared libraries: liborocos-kdl.so.1.0:
> cannot open shared object file: No such file or directory
> > (i find liborocos-kdl.so.1.0 at /usr/local/lib,but the pc can not
> find...)
> >
> > #sh geometry<enter>
> > #a.out: 1: Syntax error: word unexpected (expecting ")")
>
> It's been a while since i tried the examples. Maybe they are outdated.
> I'll check this asap.
>
> >
> > if i compile it using
> > #g++ -Wall -I/usr/local/include/kdl -I/usr/include/eigen2
> -L/usr/local/lib -lorocos-kdl geometry.cpp -o geometry -static<enter>
> >
> > /usr/bin/ld: cannot find -lorocos-kdl
> > collect2: ld return 1
> >
> > why?
> > what is orocos-kdl?where could i find it?
> > expect your reply, thank u!
>
> orocos-kdl is the kdl-library, you should at least compile/install
> this one before trying the examples. Please follow the instructions on
> <http://www.orocos.org/kdl/Installation_Manual> to install orocos-kdl
>
> Ruben
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>