KDL error during deploying a component using KDL

Hi all,
I installed Orocos and Kdl using git and cmake (no ros) with Debian testing.

I made a component and put on CmakeLists:

---
target_link_libraries(componentName orocos-kdl)
---

In the code there is:

#include <kdl/frame.hp

and some Frame declarations like

KDL::Frame testFrame;

I can compile without problem but when I deploy the component the result is:

deployer-gnulinux -s test_component.ops
Real-time memory: 521040 bytes free of 524288 allocated.
0.059 [ ERROR ][DeploymentComponent::import] Could not load library
'/home/fabrizio/tools/orocos-toolchain/install/lib/orocos/gnulinux/testComponent/libtestComponent-gnulinux.so':
0.059 [ ERROR ][DeploymentComponent::import] liborocos-kdl.so.1.1: cannot
open shared object file: No such file or directory
0.059 [ ERROR ][ScriptingService] Exception raised while executing an
operation : Some found plugins could not be loaded !
0.059 [ ERROR ][ScriptingService] in Deployer: unhandled exception in sent
operation.
0.060 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
Orocos Component 'SlaveKinematic': unknown component type.
0.061 [ ERROR ][ScriptingService] Can't create Activity: component
testComponent not found.
Switched to : Deployer

This console reader allows you to browse and manipulate TaskContexts.
You can type in an operation, expression, create or change variables.
(type 'help' for instructions and 'ls' for context info)

TAB completion and HISTORY is available ('bash' like)

Use 'Ctrl-D' or type 'quit' to exit this program.

Deployer [X]>

Did I make something wrong?

Thanks,
Fabrizio

KDL error during deploying a component using KDL

On Tue, Mar 5, 2013 at 12:57 AM, Fabrizio Boriero
<fabrizio [dot] boriero [..] ...> wrote:
> Hi all,
> I installed Orocos and Kdl using git and cmake (no ros) with Debian testing.
>
> I made a component and put on CmakeLists:
>
> ---
> target_link_libraries(componentName orocos-kdl)
> ---
>
> In the code there is:
>
> #include <kdl/frame.hp

>
> and some Frame declarations like
>
> KDL::Frame testFrame;

The above looks fine...

>
>
> I can compile without problem but when I deploy the component the result is:
>
> deployer-gnulinux -s test_component.ops
> Real-time memory: 521040 bytes free of 524288 allocated.
> 0.059 [ ERROR ][DeploymentComponent::import] Could not load library
> '/home/fabrizio/tools/orocos-toolchain/install/lib/orocos/gnulinux/testComponent/libtestComponent-gnulinux.so':
> 0.059 [ ERROR ][DeploymentComponent::import] liborocos-kdl.so.1.1: cannot
> open shared object file: No such file or directory

We need some -ldebug output to have more information... you'll have to
trial-and-error to find this one:
- copy liborocos-kdl.so.1.1 into /usr/lib + run ldconfig ?

Peter

Ruben Smits's picture

KDL error during deploying a component using KDL

Hi Fabrizio,

Op dinsdag 5 maart 2013 schreef Fabrizio Boriero (fabrizio [dot] boriero [..] ...)
het volgende:

> Hi all,
> I installed Orocos and Kdl using git and cmake (no ros) with Debian
> testing.
>
> I made a component and put on CmakeLists:
>
> ---
> target_link_libraries(componentName orocos-kdl)
> ---
>
> In the code there is:
>
> #include <kdl/frame.hp

>
> and some Frame declarations like
>
> KDL::Frame testFrame;
>
>
> I can compile without problem but when I deploy the component the result
> is:
>
> deployer-gnulinux -s test_component.ops
> Real-time memory: 521040 bytes free of 524288 allocated.
> 0.059 [ ERROR ][DeploymentComponent::import] Could not load library
> '/home/fabrizio/tools/orocos-toolchain/install/lib/orocos/gnulinux/testComponent/libtestComponent-gnulinux.so':
> 0.059 [ ERROR ][DeploymentComponent::import] liborocos-kdl.so.1.1: cannot
> open shared object file: No such file or directory
> 0.059 [ ERROR ][ScriptingService] Exception raised while executing an
> operation : Some found plugins could not be loaded !
> 0.059 [ ERROR ][ScriptingService] in Deployer: unhandled exception in
> sent operation.
> 0.060 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
> Orocos Component 'SlaveKinematic': unknown component type.
> 0.061 [ ERROR ][ScriptingService] Can't create Activity: component
> testComponent not found.
> Switched to : Deployer
>
> This console reader allows you to browse and manipulate TaskContexts.
> You can type in an operation, expression, create or change variables.
> (type 'help' for instructions and 'ls' for context info)
>
> TAB completion and HISTORY is available ('bash' like)
>
> Use 'Ctrl-D' or type 'quit' to exit this program.
>
> Deployer [X]>
>
> Did I make something wrong?
>
>
Can you check with ldd if your component is correctly linked with your
component? Maybe cmake strips the path of the kdl library during the
install step?

Ruben.

> Thanks,
> Fabrizio
>

KDL error during deploying a component using KDL

ldd libslaveKinematic-gnulinux.so
linux-gate.so.1 => (0xb77bd000)
liborocos-rtt-gnulinux.so.2.6 =>
/home/fabrizio/tools/orocos-toolchain/install/lib/liborocos-rtt-gnulinux.so.2.6
(0xb73fb000)
liborocos-kdl.so.1.1 => /usr/local/lib/liborocos-kdl.so.1.1 (0xb7368000)
libboost_filesystem.so.1.49.0 => /usr/lib/libboost_filesystem.so.1.49.0
(0xb7349000)
libboost_system.so.1.49.0 => /usr/lib/libboost_system.so.1.49.0
(0xb7345000)
libboost_serialization.so.1.49.0 =>
/usr/lib/libboost_serialization.so.1.49.0 (0xb72d4000)
libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
(0xb72ba000)
librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xb72b1000)
libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb72ad000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb71c1000)
libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xb719b000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb717d000)
libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb701a000)
/lib/ld-linux.so.2 (0xb77be000)

Fabrizio

On Thu, Mar 7, 2013 at 2:17 PM, Ruben Smits <ruben [dot] smits [..] ...>wrote:

> Hi Fabrizio,
>
> Op dinsdag 5 maart 2013 schreef Fabrizio Boriero (
> fabrizio [dot] boriero [..] ...) het volgende:
>
> Hi all,
>> I installed Orocos and Kdl using git and cmake (no ros) with Debian
>> testing.
>>
>> I made a component and put on CmakeLists:
>>
>> ---
>> target_link_libraries(componentName orocos-kdl)
>> ---
>>
>> In the code there is:
>>
>> #include <kdl/frame.hp

>>
>> and some Frame declarations like
>>
>> KDL::Frame testFrame;
>>
>>
>> I can compile without problem but when I deploy the component the result
>> is:
>>
>> deployer-gnulinux -s test_component.ops
>> Real-time memory: 521040 bytes free of 524288 allocated.
>> 0.059 [ ERROR ][DeploymentComponent::import] Could not load library
>> '/home/fabrizio/tools/orocos-toolchain/install/lib/orocos/gnulinux/testComponent/libtestComponent-gnulinux.so':
>> 0.059 [ ERROR ][DeploymentComponent::import] liborocos-kdl.so.1.1:
>> cannot open shared object file: No such file or directory
>> 0.059 [ ERROR ][ScriptingService] Exception raised while executing an
>> operation : Some found plugins could not be loaded !
>> 0.059 [ ERROR ][ScriptingService] in Deployer: unhandled exception in
>> sent operation.
>> 0.060 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
>> Orocos Component 'SlaveKinematic': unknown component type.
>> 0.061 [ ERROR ][ScriptingService] Can't create Activity: component
>> testComponent not found.
>> Switched to : Deployer
>>
>> This console reader allows you to browse and manipulate TaskContexts.
>> You can type in an operation, expression, create or change variables.
>> (type 'help' for instructions and 'ls' for context info)
>>
>> TAB completion and HISTORY is available ('bash' like)
>>
>> Use 'Ctrl-D' or type 'quit' to exit this program.
>>
>> Deployer [X]>
>>
>> Did I make something wrong?
>>
>>
> Can you check with ldd if your component is correctly linked with your
> component? Maybe cmake strips the path of the kdl library during the
> install step?
>
> Ruben.
>
>
>
>> Thanks,
>> Fabrizio
>>
>
>
> --
> Ruben Smits, Phd
> Chief Technology Officer
> Intermodalics BVBA
> +32479511786
> www.intermodalics.eu
>