[Rock-dev] Component not linking external library
Eduardo Elael
eduardo.elael at tenkel.com
Wed Apr 16 19:43:00 CEST 2014
Hello,
I'm using an ethernet based device which has it's own library ( a header
".h" and a external library ".so" ). When I created my rock library I added
two lines to my Cmakelist: "HEADERS the_lib.h" and "LIBS
/the/path/the_lib86x64.so". Doing that it compiled fine (through amake).
Then, when I try to create a rock-component using this rock-library the
amake returns errors showing "undefined reference"'s to functions
implemented in the "the_lib86x64.so".
So I tried copying the "the_lib86x64.so" to Rock/install/lib, I don't know
if it's the correct way, but now I get the error:
"Linking CXX executable orogen_default_inductive__Task
tasks/libinductive-tasks-gnulinux.so: undefined reference to
`EthernetDrivers::GPIOin_Driver::read(bool*)' "
Where "inductive" is my component name, and
"EthernetDrivers::GPIOin_Driver::read(bool*)" is a method from a class
defined in my rock-library.
The actual state of my code:
rock-library:
https://github.com/OpenLEAD/EthernetDriver
rock-component:
https://github.com/OpenLEAD/InductiveS
Thanks in advance,
Eduardo Elael
Coppetec/LEAD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20140416/04c4eaa9/attachment.htm
More information about the Rock-dev
mailing list