[Bug 1012] CMake issues with newer Xenomai custom installs.
Peter Soetens <[email protected]>
| Newsgroups | gmane.science.robotics.orocos.devel |
|---|---|
| Message-ID | <[email protected]> |
http://bugs.orocos.org/show_bug.cgi?id=1012 Peter Soetens <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Peter Soetens <[email protected]> 2012-12-17 23:28:27 CET --- (In reply to comment #0) > 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. I addressed all these issues on the toolchain-2.6 branch. I didn't go for xeno-config all the way since it requires quite some decoding to translate the output of that command into cmake-usable cflags/ldflags. -- Configure bugmail: http://bugs.orocos.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. You are the assignee for the bug. -- Orocos-Dev mailing list [email protected] http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev