Hi,
I compiled a program with is linked to the reporting library
(liborocos-reporting-gnulinux.so in lib/orocos folder). When I try to run
this I have :
*root@alpha:/opt/orocos2# sandbox-hml.ard
> sandbox-hml.ard: error while loading shared libraries:
> liborocos-reporting-gnulinux-2.0*.so*: cannot open shared object file: No
> such file or directory
> *
>
I fixed it in including ****/install/lib/orocos to LD_LIBRARY_PATH in
env.sh.
Is this an abnormal compilation on my way ?
LD_LIBRARY_PATH in env.sh is not including ****/install/lib/oroc
On Tue, Oct 5, 2010 at 12:02 AM, Willy Lambert <lambert [dot] willy [..] ...> wrote:
> Hi,
>
> I compiled a program with is linked to the reporting library
> (liborocos-reporting-gnulinux.so in lib/orocos folder). When I try to run
> this I have :
>
>> root@alpha:/opt/orocos2# sandbox-hml.ard
>> sandbox-hml.ard: error while loading shared libraries:
>> liborocos-reporting-gnulinux-2.0.so: cannot open shared object file: No such
>> file or directory
>
> I fixed it in including ****/install/lib/orocos to LD_LIBRARY_PATH in
> env.sh.
>
> Is this an abnormal compilation on my way ?
Yes. We don't link with components that are installed in lib/orocos,
we load all of them at
run-time anyway. Libs which are not run-time loadable are in the lib/ directory.
When for some reason we *do* link with a component in lib/orocos, we
use the rpath setting
of the linker to include install/lib/orocos as runtime lookup path
when linking our
application.
Peter
--
Orocos-Users mailing list
Orocos-Users [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
LD_LIBRARY_PATH in env.sh is not including ****/install/lib/oroc
ok thanks, i will use rpath
2010/10/5 Peter Soetens <peter [..] ...>
> On Tue, Oct 5, 2010 at 12:02 AM, Willy Lambert <lambert [dot] willy [..] ...>
> wrote:
> > Hi,
> >
> > I compiled a program with is linked to the reporting library
> > (liborocos-reporting-gnulinux.so in lib/orocos folder). When I try to run
> > this I have :
> >
> >> root@alpha:/opt/orocos2# sandbox-hml.ard
> >> sandbox-hml.ard: error while loading shared libraries:
> >> liborocos-reporting-gnulinux-2.0.so: cannot open shared object file: No
> such
> >> file or directory
> >
> > I fixed it in including ****/install/lib/orocos to LD_LIBRARY_PATH in
> > env.sh.
> >
> > Is this an abnormal compilation on my way ?
>
> Yes. We don't link with components that are installed in lib/orocos,
> we load all of them at
> run-time anyway. Libs which are not run-time loadable are in the lib/
> directory.
>
> When for some reason we *do* link with a component in lib/orocos, we
> use the rpath setting
> of the linker to include install/lib/orocos as runtime lookup path
> when linking our
> application.
>
> Peter
>