• The directory /opt/www/bruyninckxh2/web/tmp/drutex-264368a348ab2c367cde160b4933784f-1 has been created.
  • The directory /opt/www/bruyninckxh2/web/tmp/drutex-264368a348ab2c367cde160b4933784f-2 has been created.

Xenomai compile problems

Re: Xenomai compile problems

It looks like I have done something wrong with posting here. That was my post:
Hi,
I'm building Orocos RTT (from git) with Xenomai under ubuntu. I have experienced some troubles:
1. After running ccmake, pressing c, changing OROCOS_TARGET to xenomai, configure again, I'm getting following error:
No OROCOS_TARGET environment variable detected. Using: xenomai
[...]
CMake Error at config/check_depend.cmake:264 (message):
No suitable OROCOS_TARGET selected. Use one of
'lxrt,xenomai,gnulinux,macosx,win32'
Call Stack (most recent call first):
CMakeLists.txt:146 (INCLUDE)

OROCOS_TARGET=xenomai ccmake .. is producing the same error, but after setting XENOMAI_ROOT_DIR environment variable, everything is almost fine.

2. Almost, becouse ccmake finds xenomai_posix_include_dir in /usr/include instead of /usr/xenomai/include, and the xenomai_posix_library is not found.

3. Why searching for paths in FindXenomai.cmake using find_path or find_library instead of using xeno-config like it is done in FindXenomaiPosix.cmake?

4. Fix for deprecated function (I suppose it is not changed due older xenomai versions compatibility, but I think it is good time, to change it now):
diff --git a/config/FindXenomaiPosix.cmake b/config/FindXenomaiPosix.cmake
index 1b6e49b..edb7256 100644
--- a/config/FindXenomaiPosix.cmake
+++ b/config/FindXenomaiPosix.cmake
@@ -43,8 +43,8 @@ endif()
if( XENOMAI_POSIX_LIBRARY AND XENOMAI_POSIX_INCLUDE_DIR AND NOT XENOMAI_XENO_CONFIG )
message(SEND_ERROR "Your Xenomai installation is broken: I can not determine Xenomai POSIX cflags/ldflags without xeno-config.")
else()
- execute_process(COMMAND ${XENOMAI_XENO_CONFIG} --posix-ldflags OUTPUT_VARIABLE XENOMAI_POSIX_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
- execute_process(COMMAND ${XENOMAI_XENO_CONFIG} --posix-cflags OUTPUT_VARIABLE XENOMAI_POSIX_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process(COMMAND ${XENOMAI_XENO_CONFIG} --skin=posix --ldflags OUTPUT_VARIABLE XENOMAI_POSIX_LDFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process(COMMAND ${XENOMAI_XENO_CONFIG} --skin=posix --cflags OUTPUT_VARIABLE XENOMAI_POSIX_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()

# Set the include dir variables and the libraries and let libfind_process do the rest.

Xenomai compile problems

Hi Robert,

On Fri, Dec 7, 2012 at 8:37 AM, <robertkmiec1989 [..] ...> wrote:
> It looks like I have done something wrong with posting here. That was my
> post:
> Hi,
> I'm building Orocos RTT (from git) with Xenomai under ubuntu. I have
> experienced some troubles:
> 1. After running ccmake, pressing c, changing OROCOS_TARGET to xenomai,
> configure again, I'm getting following error:
> No OROCOS_TARGET environment variable detected. Using: xenomai
> [...]
> CMake Error at config/check_depend.cmake:264 (message):
> No suitable OROCOS_TARGET selected. Use one of
> 'lxrt,xenomai,gnulinux,macosx,win32'
> Call Stack (most recent call first):
> CMakeLists.txt:146 (INCLUDE)
>
> OROCOS_TARGET=xenomai ccmake .. is producing the same error, but after
> setting XENOMAI_ROOT_DIR environment variable, everything is almost fine.
>
> 2. Almost, becouse ccmake finds xenomai_posix_include_dir in /usr/include
> instead of /usr/xenomai/include, and the xenomai_posix_library is not found.
>
> 3. Why searching for paths in FindXenomai.cmake using find_path or
> find_library instead of using xeno-config like it is done in
> FindXenomaiPosix.cmake?
>
> 4. Fix for deprecated function (I suppose it is not changed due older xenomai
> versions compatibility, but I think it is good time, to change it now):
> diff --git a/config/FindXenomaiPosix.cmake b/config/FindXenomaiPosix.cmake
> index 1b6e49b..edb7256 100644