[Rock-dev] linker error when using rtt-marshalling

Jens Renken renken at marum.de
Mon Jan 23 10:32:42 CET 2012


Hi,

what is necessary to use rtt-marshalling in an orogen-task?

I added the line
     getProvider<RTT::Marshalling>("marshalling")->readProperties( 
"PropertyFile.cpf");
to configureHook. It compiles, but doesn't link. Obviously the 
rtt-marshalling library is not inlcuded. Do I have to include a 
"using_library" statement in the orogen file and how would it look like?

Cheers Jens


Linking CXX executable dtsnode_schilling_test
/usr/bin/cmake -E cmake_link_script 
CMakeFiles/dtsnode_schilling_test.dir/link.txt --verbose=1
/usr/bin/c++   -g    
CMakeFiles/dtsnode_schilling_test.dir/.orogen/main-dtsnode_schilling_test.cpp.o  
-o dtsnode_schilling_test -rdynamic 
-L/home/jrenken/marum/rock/hrov/install/lib 
-L/home/jrenken/marum/rock/hrov/install/lib/orocos/types 
-L/home/jrenken/marum/rock/hrov/install/lib/orocos 
.orogen/typekit/libdtsnode_schilling-typekit-gnulinux.so 
.orogen/typekit/transports/corba/libdtsnode_schilling-transport-corba-gnulinux.so 
.orogen/typekit/transports/typelib/libdtsnode_schilling-transport-typelib-gnulinux.so 
/home/jrenken/marum/rock/hrov/install/lib/libservice_discovery.so 
-lboost_program_options-mt 
/home/jrenken/marum/rock/hrov/install/lib/orocos/gnulinux/types/librtt-typekit-gnulinux.so 
/home/jrenken/marum/rock/hrov/install/lib/orocos/gnulinux/types/librtt-transport-corba-gnulinux.so 
tasks/libdtsnode_schilling-tasks-gnulinux.so 
/home/jrenken/marum/rock/hrov/install/lib/liborocos-rtt-gnulinux.so 
-lpthread -lrt 
/home/jrenken/marum/rock/hrov/install/lib/orocos/types/libbase-transport-corba-gnulinux.so 
/home/jrenken/marum/rock/hrov/install/lib/orocos/types/libbase-transport-typelib-gnulinux.so 
/home/jrenken/marum/rock/hrov/install/lib/orocos/types/libbase-typekit-gnulinux.so 
/home/jrenken/marum/rock/hrov/install/lib/libbase.so 
/home/jrenken/marum/rock/hrov/install/lib/libdtsnode_schilling.so 
/home/jrenken/marum/rock/hrov/install/lib/libiodrivers_base.so 
/home/jrenken/marum/rock/hrov/install/lib/libbase.so 
/home/jrenken/marum/rock/hrov/install/lib/liborocos-rtt-corba-gnulinux.so /home/jrenken/marum/rock/hrov/install/lib/liborocos-rtt-gnulinux.so 
-lpthread -lrt -lomniORB4 -lomnithread 
/home/jrenken/marum/rock/hrov/install/lib/libdtsnode_schilling.so 
/home/jrenken/marum/rock/hrov/install/lib/libiodrivers_base.so 
/home/jrenken/marum/rock/hrov/install/lib/liborocos-rtt-corba-gnulinux.so -lomniORB4 
-lomnithread .orogen/typekit/libdtsnode_schilling-typekit-gnulinux.so 
/home/jrenken/marum/rock/hrov/install/lib/liborocos-rtt-gnulinux.so 
-lpthread -lrt 
-Wl,-rpath,/home/jrenken/marum/rock/hrov/install/lib:/home/jrenken/marum/rock/hrov/drivers/orogen/dtsnode_schilling/build/.orogen/typekit:/home/jrenken/marum/rock/hrov/drivers/orogen/dtsnode_schilling/build/.orogen/typekit/transports/corba:/home/jrenken/marum/rock/hrov/drivers/orogen/dtsnode_schilling/build/.orogen/typekit/transports/typelib:/home/jrenken/marum/rock/hrov/install/lib/orocos/types:/home/jrenken/marum/rock/hrov/drivers/orogen/dtsnode_schilling/build/tasks:/home/jrenken/marum/rock/hrov/install/lib/orocos:/home/jrenken/marum/rock/hrov/install/lib/orocos/gnulinux/types 

tasks/libdtsnode_schilling-tasks-gnulinux.so: undefined reference to 
`typeinfo for RTT::Marshalling'
tasks/libdtsnode_schilling-tasks-gnulinux.so: undefined reference to 
`RTT::Marshalling::Marshalling(RTT::TaskContext*)'
collect2: ld gab 1 als Ende-Status zurück
make[2]: *** [dtsnode_schilling_test] Fehler 1
make[2]: Verlasse Verzeichnis 
'/home/jrenken/marum/rock/hrov/drivers/orogen/dtsnode_schilling/build'
make[1]: *** [CMakeFiles/dtsnode_schilling_test.dir/all] Fehler 2
make[1]: Verlasse Verzeichnis 
'/home/jrenken/marum/rock/hrov/drivers/orogen/dtsnode_schilling/build'
make: *** [all] Fehler 2
make: Verlasse Verzeichnis 
'/home/jrenken/marum/rock/hrov/drivers/orogen/dtsnode_schilling/build'
j


-- 
________________________________
Jens Renken
MARUM - Center for Marine Environmental Sciences
DFG-Research Center / Excellence Cluster
Leobener Str.2, D-28359 Bremen, GER

Phone:  +49 421 218 65609
Fax:    +49 421 218 98 65609
E-Mail: renken at marum.de
URL:    www.marum.de





More information about the Rock-dev mailing list