RTT Newbie: build fails (1.10.4 /lucid/ xenomai 2.5.4)

Orocos RTT 1.10.4/ Ubuntu 10.04 (Xenomai 2.5.4) I have the following problem regarding the RTT set up. Even if I set up XENOMAI_ROOT_DIR

\$echo \$XENOMAI_ROOT_DIR

/usr/xenomai

$cmake .. -DOROCOS_TARGET=xenomai complains -- Optional library XENOMAI NOT FOUND. If the library is already installed, use the XENOMAI_ROOT_DIR environment variable or ccmake to set the missing variables manually.

Then I when I do ccmake .. and manully set up the include/lib paths (/usr/xenomai/lib and /usr/xenomai/include) I get the following warnings when I hit configure: (I am attaching the CMakeCache.txt for your reference)

WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to directory "/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to directory "/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "core-test" requests linking to directory "/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "dev-test" requests linking to directory "/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "event-test" requests linking to directory "/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping the item.

AttachmentSize
CMakeCache.txt19.7 KB
gajan's picture

RTT Newbie: build fails (1.10.4 /lucid/ xenomai 2.5.4)

Hi,

With Orocos RTT 1.10.4/ Ubuntu 10.04 (Xenomai 2.5.4) I have the
following problem regarding the RTT set up. Even if I set up
XENOMAI_ROOT_DIR

$echo $XENOMAI_ROOT_DIR
/usr/xenomai

$cmake .. -DOROCOS_TARGET=xenomai
complains
-- Optional library XENOMAI NOT FOUND. If the library is already
installed, use the XENOMAI_ROOT_DIR environment variable or ccmake to
set the missing variables manually.

Then I when I do ccmake .. and manually set up the include/lib paths
(/usr/xenomai/lib and /usr/xenomai/include) I get the following
warnings when I hit configure:

WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to
directory "/usr/xenomai/lib". Targets may link only to libraries.
CMake is dropping the item.

WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to
directory "/usr/xenomai/lib". Targets may link only to libraries.
CMake is dropping the item.

WARNING: Target "core-test" requests linking to directory
"/usr/xenomai/lib". Targets may link only to libraries. CMake is
dropping the item.

WARNING: Target "dev-test" requests linking to directory
"/usr/xenomai/lib". Targets may link only to libraries. CMake is
dropping the item.

WARNING: Target "event-test" requests linking to directory
"/usr/xenomai/lib". Targets may link only to libraries. CMake is
dropping the item.

(And of course my make fails)
Linking CXX executable core-test
../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to `rt_task_shadow'
../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to `rt_timer_ns2tsc'
../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
`rt_task_wait_period'
../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to `rt_mutex_delete'
...
../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to `rt_sem_v'
../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to `rt_task_start'
../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
`rt_mutex_acquire'
collect2: ld returned 1 exit status
make[2]: *** [tests/core-test] Error 1
make[1]: *** [tests/CMakeFiles/core-test.dir/all] Error 2
make: *** [all] Error 2

I am attaching the CMakeCache.txt for your reference.
I would appriciate any help.

Best,
Gajan

Ruben Smits's picture

RTT Newbie: build fails (1.10.4 /lucid/ xenomai 2.5.4)

On Thursday 30 September 2010 09:51:33 Gajamohan Mohanarajah wrote:
> Hi,
>
> With Orocos RTT 1.10.4/ Ubuntu 10.04 (Xenomai 2.5.4) I have the
> following problem regarding the RTT set up. Even if I set up
> XENOMAI_ROOT_DIR
>
> $echo $XENOMAI_ROOT_DIR
> /usr/xenomai
>
> $cmake .. -DOROCOS_TARGET=xenomai
> complains
> -- Optional library XENOMAI NOT FOUND. If the library is already
> installed, use the XENOMAI_ROOT_DIR environment variable or ccmake to
> set the missing variables manually.

Can you try with cmake .. -DOROCOS_TARGET=xenomai -
DCMAKE_PREFIX_PATH=/usr/xenomai

> Then I when I do ccmake .. and manually set up the include/lib paths
> (/usr/xenomai/lib and /usr/xenomai/include) I get the following
> warnings when I hit configure:
>
> WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to
> directory "/usr/xenomai/lib". Targets may link only to libraries.
> CMake is dropping the item.

Apparently you entered a directory where cmake wanted a library.

HTH,

Ruben

> WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to
> directory "/usr/xenomai/lib". Targets may link only to libraries.
> CMake is dropping the item.
>
> WARNING: Target "core-test" requests linking to directory
> "/usr/xenomai/lib". Targets may link only to libraries. CMake is
> dropping the item.
>
> WARNING: Target "dev-test" requests linking to directory
> "/usr/xenomai/lib". Targets may link only to libraries. CMake is
> dropping the item.
>
> WARNING: Target "event-test" requests linking to directory
> "/usr/xenomai/lib". Targets may link only to libraries. CMake is
> dropping the item.
>
> (And of course my make fails)
> Linking CXX executable core-test
> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
> `rt_task_shadow' ../src/liborocos-rtt-xenomai.so.1.10.4: undefined
> reference to `rt_timer_ns2tsc' ../src/liborocos-rtt-xenomai.so.1.10.4:
> undefined reference to
> `rt_task_wait_period'
> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
> `rt_mutex_delete' ...
> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to `rt_sem_v'
> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
> `rt_task_start' ../src/liborocos-rtt-xenomai.so.1.10.4: undefined
> reference to
> `rt_mutex_acquire'
> collect2: ld returned 1 exit status
> make[2]: *** [tests/core-test] Error 1
> make[1]: *** [tests/CMakeFiles/core-test.dir/all] Error 2
> make: *** [all] Error 2
>
> I am attaching the CMakeCache.txt for your reference.
> I would appriciate any help.
>
> Best,
> Gajan

gajan's picture

RTT Newbie: build fails (1.10.4 /lucid/ xenomai 2.5.4)

Thanks a lot ! It works.
Gajan

On 30 September 2010 09:55, Ruben Smits <ruben [dot] smits [..] ...> wrote:
> On Thursday 30 September 2010 09:51:33 Gajamohan Mohanarajah wrote:
>> Hi,
>>
>> With Orocos RTT 1.10.4/ Ubuntu 10.04 (Xenomai 2.5.4) I have the
>> following problem regarding the RTT set up. Even if I set up
>> XENOMAI_ROOT_DIR
>>
>> $echo $XENOMAI_ROOT_DIR
>> /usr/xenomai
>>
>> $cmake .. -DOROCOS_TARGET=xenomai
>> complains
>> -- Optional library XENOMAI NOT FOUND. If the library is already
>> installed, use the XENOMAI_ROOT_DIR environment variable or ccmake to
>> set the missing variables manually.
>
> Can you try with cmake .. -DOROCOS_TARGET=xenomai -
> DCMAKE_PREFIX_PATH=/usr/xenomai
>
>> Then I when I do ccmake .. and manually set up the include/lib paths
>> (/usr/xenomai/lib and /usr/xenomai/include) I get the following
>> warnings when I hit configure:
>>
>> WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to
>> directory "/usr/xenomai/lib". Targets may link only to libraries.
>> CMake is dropping the item.
>
> Apparently you entered a directory where cmake wanted a library.
>
>
> HTH,
>
> Ruben
>
>> WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to
>> directory "/usr/xenomai/lib". Targets may link only to libraries.
>> CMake is dropping the item.
>>
>> WARNING: Target "core-test" requests linking to directory
>> "/usr/xenomai/lib". Targets may link only to libraries. CMake is
>> dropping the item.
>>
>> WARNING: Target "dev-test" requests linking to directory
>> "/usr/xenomai/lib". Targets may link only to libraries. CMake is
>> dropping the item.
>>
>> WARNING: Target "event-test" requests linking to directory
>> "/usr/xenomai/lib". Targets may link only to libraries. CMake is
>> dropping the item.
>>
>> (And of course my make fails)
>> Linking CXX executable core-test
>> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
>> `rt_task_shadow' ../src/liborocos-rtt-xenomai.so.1.10.4: undefined
>> reference to `rt_timer_ns2tsc' ../src/liborocos-rtt-xenomai.so.1.10.4:
>> undefined reference to
>> `rt_task_wait_period'
>> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
>> `rt_mutex_delete' ...
>> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to `rt_sem_v'
>> ../src/liborocos-rtt-xenomai.so.1.10.4: undefined reference to
>> `rt_task_start' ../src/liborocos-rtt-xenomai.so.1.10.4: undefined
>> reference to
>> `rt_mutex_acquire'
>> collect2: ld returned 1 exit status
>> make[2]: *** [tests/core-test] Error 1
>> make[1]: *** [tests/CMakeFiles/core-test.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> I am attaching the CMakeCache.txt for your reference.
>> I would appriciate any help.
>>
>> Best,
>> Gajan
>

gajan's picture

RTT Newbie: build fails (1.10.4 /lucid/ xenomai 2.5.4)

Orocos RTT 1.10.4/ Ubuntu 10.04 (Xenomai 2.5.4)
I have the following problem regarding the RTT set up.
Even if I set up XENOMAI_ROOT_DIR

\$echo \$XENOMAI_ROOT_DIR

/usr/xenomai

$cmake .. -DOROCOS_TARGET=xenomai complains
-- Optional library XENOMAI NOT FOUND. If the library is already installed, use the XENOMAI_ROOT_DIR environment variable or ccmake to set the missing variables manually.

Then I when I do ccmake .. and manully set up the include/lib paths (/usr/xenomai/lib and /usr/xenomai/include) I get the following warnings when I hit configure: (I am attaching the CMakeCache.txt for your reference)

WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to directory
"/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping
the item.

WARNING: Target "orocos-rtt-dynamic_xenomai" requests linking to directory
"/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping
the item.

WARNING: Target "core-test" requests linking to directory "/usr/xenomai/lib".
Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "dev-test" requests linking to directory "/usr/xenomai/lib".
Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "event-test" requests linking to directory
"/usr/xenomai/lib". Targets may link only to libraries. CMake is dropping
the item.