Dear developers.
I develop a component in my desktop environment ( ubuntu 10.04 + gnulinux as target on Orocos 2.4.0 installation). All is fine on it.
But later,when I get the source project of my component and transfer it to my embedded platform (Debian 6.0.2 with Xenomai target on Orocos 2.4.0), the linker compilation crashed:
Linking CXX shared library libmydriver-xenomai.so /usr/bin/ld: cannot find -llog4cpp collect2: ld returned 1 exit status make[2]: ***[libmydriver-xenomai.so] Error 1 make[1]: ***[CMakeFiles/ ... Error 2 make: *** [all] Error 2
I have references on log4cpp and dependencies on my CMakeList.txt
[...] orocos_use_package(ocl-logging) [...] target_link_libraries(mydriver log4cpp) [...]
Any ideas¿? Thanks in advance Toni
Unable to compile on Xenomai target¿?
Thanks too much Peter is compiled fine. :-)
On Fri, Oct 21, 2011 at 14:41, Peter Soetens <peter [..] ...>wrote:
> orocos_use_package( log4cpp )
Unable to compile on Xenomai target¿?
On Friday 21 October 2011 10:26:26 antonio [dot] castellon [..] ... wrote:
> Dear developers.
>
> I develop a component in my desktop environment ( ubuntu 10.04 + gnulinux
> as target on Orocos 2.4.0 installation). All is fine on it.
>
> But later,when I get the source project of my component and transfer it to
> my embedded platform (Debian 6.0.2 with Xenomai target on Orocos 2.4.0),
> the linker compilation crashed:
>
>
>
>
> I have references on log4cpp and dependencies on my CMakeList.txt
>
>
Try: orocos_use_package( log4cpp )
instead of the target_link_libraries. It can't find 'log4cpp' because you
didn't specify an absolute path.
Peter