Hi all, I've been using orocos-rtt version 1.8.4 alog with orocos-ocl.1.8.2.
Now I decided to upgrade to orocos-rtt version 1.10. Then I just make and
make install pointing to the same dir /usr/local. Is there any problem
with older installation?
I tried to compile an helloworld and I got the warning below:
g++ -g -o helloworld HelloWorld.cpp -I/usr/local/include
-DOROCOS_TARGET=gnulinux -Wall -L/usr/local/lib -Wl,-rpath /usr/local/lib
-lorocos-taskbrowser-gnulinux -lorocos-rtt-gnulinux
/usr/bin/ld: warning: liborocos-rtt-gnulinux.so.1.8, needed by
/usr/local/lib/liborocos-taskbrowser-gnulinux.so, may conflict with
liborocos-rtt-gnulinux.so.1.10
What should I do? I couldn't run the application (segmentation fault)
after that.
Thanks,
Breno
version issue
On Tue, Nov 3, 2009 at 01:57, <breno [..] ...> wrote:
> Hi all, I've been using orocos-rtt version 1.8.4 alog with orocos-ocl.1.8.2.
> Now I decided to upgrade to orocos-rtt version 1.10. Then I just make and
> make install pointing to the same dir /usr/local. Is there any problem
> with older installation?
>
> I tried to compile an helloworld and I got the warning below:
>
> g++ -g -o helloworld HelloWorld.cpp -I/usr/local/include
> -DOROCOS_TARGET=gnulinux -Wall -L/usr/local/lib -Wl,-rpath /usr/local/lib
> -lorocos-taskbrowser-gnulinux -lorocos-rtt-gnulinux
>
> /usr/bin/ld: warning: liborocos-rtt-gnulinux.so.1.8, needed by
> /usr/local/lib/liborocos-taskbrowser-gnulinux.so, may conflict with
> liborocos-rtt-gnulinux.so.1.10
>
>
> What should I do? I couldn't run the application (segmentation fault)
> after that.
It is possible, but you need to understand very well what is
happening. First and foremost, you _may_ have older .so.x.y library
versions installed, but only one version's header files and only one
versions .so symbolic links. Normally, these get overwritten by your
make install of 1.10, so in essence, it will work.
However, if you run then a program from within the OCL directory, you
must first install OCL too, otherwise, you're mixing new RTT with old
OCL, which will cause crashes between 1.8 and 1.10 versions.
To be completely clean and sure, it's always best to uninstall the old
version of both OCL and RTT before building and installing. An
alternative is to work with separate installation dirs, but then you
must manage your LD_LIBRARY_PATH manually or work with rpath flags.
You can check if the correct versions are used with ldd program-name
Peter
version issue
On Nov 2, 2009, at 19:57 , breno [..] ... wrote:
> Hi all, I've been using orocos-rtt version 1.8.4 alog with orocos-
> ocl.1.8.2.
> Now I decided to upgrade to orocos-rtt version 1.10. Then I just
> make and
> make install pointing to the same dir /usr/local. Is there any problem
> with older installation?
>
> I tried to compile an helloworld and I got the warning below:
>
> g++ -g -o helloworld HelloWorld.cpp -I/usr/local/include
> -DOROCOS_TARGET=gnulinux -Wall -L/usr/local/lib -Wl,-rpath /usr/
> local/lib
> -lorocos-taskbrowser-gnulinux -lorocos-rtt-gnulinux
>
> /usr/bin/ld: warning: liborocos-rtt-gnulinux.so.1.8, needed by
> /usr/local/lib/liborocos-taskbrowser-gnulinux.so, may conflict with
> liborocos-rtt-gnulinux.so.1.10
>
>
> What should I do? I couldn't run the application (segmentation fault)
> after that.
>
> Thanks,
>
> Breno
Did you uninstall v1.8 first? IIRC you can't have the same versions
installed at the same time.
Stephen