OCL Linking with XENOMAI

The Cmake compilation rules of the OCL do not add the link to the xenomai libs. A wor arround is to set CMAKE_MODULE_LINKER_FLAGS at -lxenomai with cmake ..

Nicolas.

OCL Linking with XENOMAI

On Monday 17 May 2010 12:42:16 nicolas [dot] mabire [..] ... wrote:
> The Cmake compilation rules of the OCL do not add the link to the xenomai
> libs. A wor arround is to set CMAKE_MODULE_LINKER_FLAGS at -lxenomai with
> cmake ..

I had hit this problem too. It appears that when using the Xenomai 2.5 Debian
package, both libnative and libxenomai are required, while RTT/OCL assume only
libnative is necessary (as was before). I think I adapted the
FindXenomai.cmake macro to fix this.

We'll have to put all these fixes in a RTT 1.10.4 and OCL 1.10.3

Peter

OCL Linking with XENOMAI

I think I have the same problem. Here is the error I get when execute >make

/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_slow_get_current_mode'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_current'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_sem_heap'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_init_current_mode'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_sigshadow_install_once'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_set_current'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xnarch_tsc_to_ns'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_handle_mlock_alert'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_fault_stack'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_bind_skin_opt'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_current_mode'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xnarch_ns_to_tsc'
/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `__xnsig_dispatch'
collect2: ld returned 1 exit status
make[2]: *** [helloworld/helloworld] Error 1
make[1]: *** [helloworld/CMakeFiles/helloworld.dir/all] Error 2
make: *** [all] Error 2

OCL Linking with XENOMAI

I think I have the same problem. Here is the error I get when execute >make

/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_slow_get_current_mode' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_current' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_sem_heap' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_init_current_mode' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_sigshadow_install_once' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_set_current' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xnarch_tsc_to_ns' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_handle_mlock_alert' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_fault_stack' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_bind_skin_opt' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xeno_current_mode' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `xnarch_ns_to_tsc' /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/libnative.so: undefined reference to `__xnsig_dispatch' collect2: ld returned 1 exit status make[2]: *** [helloworld/helloworld] Error 1 make[1]: *** [helloworld/CMakeFiles/helloworld.dir/all] Error 2 make: *** [all] Error 2

OCL Linking with XENOMAI

The Cmake compilation rules of the OCL do not add the link to the xenomai libs.
A wor arround is to set CMAKE_MODULE_LINKER_FLAGS at -lxenomai with cmake ..

Nicolas.