* [Xenomai-help] troubles with library inclusion
@ 2012-01-11 22:49 Daniele
2012-01-11 22:53 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Daniele @ 2012-01-11 22:49 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 671 bytes --]
Hello,
We are trying to use xenomai with analogy library
[xenomai 2.6.0, kernel 2.6.38.8]
Compiling the program we got the following error:
"undefined reference to
a4l_open<http://www.xenomai.org/documentation/trunk/html/api/group__descriptor1__lib.html#ga810401871fe8005ee0157c6910f94466>
"
The compiler detects correctly the function prototypes but it can't found
their complete definition.
taking care of our MakeFile we also have read this:
https://mail.gna.org/public/xenomai-help/2011-07/msg00036.html
but we noticed that our makefile already contains this instructions for our
skin, native.
How could we get rid of this?
Thanks in advance
Best regards
[-- Attachment #2: Type: text/html, Size: 7319 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] troubles with library inclusion
2012-01-11 22:49 [Xenomai-help] troubles with library inclusion Daniele
@ 2012-01-11 22:53 ` Gilles Chanteperdrix
2012-01-20 17:18 ` Jakub Nowacki
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2012-01-11 22:53 UTC (permalink / raw)
To: daniele.gottfried; +Cc: xenomai, Daniele
On 01/11/2012 11:49 PM, Daniele wrote:
> Hello,
>
> We are trying to use xenomai with analogy library
>
> [xenomai 2.6.0, kernel 2.6.38.8]
>
> Compiling the program we got the following error:
>
>
> "undefined reference to
> a4l_open<http://www.xenomai.org/documentation/trunk/html/api/group__descriptor1__lib.html#ga810401871fe8005ee0157c6910f94466>
> "
>
> The compiler detects correctly the function prototypes but it can't found
> their complete definition.
>
> taking care of our MakeFile we also have read this:
>
> https://mail.gna.org/public/xenomai-help/2011-07/msg00036.html
>
> but we noticed that our makefile already contains this instructions for our
> skin, native.
>
> How could we get rid of this?
You need to link with the libanalogy driver, so, simply add "-lanalogy"
on the compiler command line.
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] troubles with library inclusion
2012-01-11 22:53 ` Gilles Chanteperdrix
@ 2012-01-20 17:18 ` Jakub Nowacki
2012-01-20 18:22 ` Gilles Chanteperdrix
0 siblings, 1 reply; 5+ messages in thread
From: Jakub Nowacki @ 2012-01-20 17:18 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
On 11 Jan 2012, at 22:53, Gilles Chanteperdrix wrote:
> On 01/11/2012 11:49 PM, Daniele wrote:
>> Hello,
>>
>> We are trying to use xenomai with analogy library
>>
>> [xenomai 2.6.0, kernel 2.6.38.8]
>>
>> Compiling the program we got the following error:
>>
>>
>> "undefined reference to
>> a4l_open<http://www.xenomai.org/documentation/trunk/html/api/group__descriptor1__lib.html#ga810401871fe8005ee0157c6910f94466>
>> "
>>
>> The compiler detects correctly the function prototypes but it can't found
>> their complete definition.
>>
>> taking care of our MakeFile we also have read this:
>>
>> https://mail.gna.org/public/xenomai-help/2011-07/msg00036.html
>>
>> but we noticed that our makefile already contains this instructions for our
>> skin, native.
>>
>> How could we get rid of this?
>
> You need to link with the libanalogy driver, so, simply add "-lanalogy"
> on the compiler command line.
>
I had a similar problem. Namely, it was complaining about having undefined reference. I added the -lanalogy to the flags generated with 'xeno-config --skin=native --ldflags' and everything compiled and linked correctly, but when I start my application I get error:
/usr/xenomai/lib/libanalogy.so.1: undefined symbol: rt_dev_ioctl
I after adding -lrtdm after -lanalogy everything, again, complied and linked correctly, but I get new error:
librtdm.so.1: shared object cannot be dlopen()ed
If I add -lrtdm before -lanalogy, I get the previous undefined symbol. To be absolutely sure I don't have a problem with my Xenomai-2.6.0 setup, I recompiled and installed it, but I'm still getting the errors. It does not seem to be a problem with other Xenomai shared objects path, since other SO are loaded correctly (Xenomai native skin threads work fine).
Thanks for the help in advance.
Best wishes,
Jakub
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] troubles with library inclusion
2012-01-20 17:18 ` Jakub Nowacki
@ 2012-01-20 18:22 ` Gilles Chanteperdrix
2012-01-20 21:24 ` Jakub Nowacki
0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2012-01-20 18:22 UTC (permalink / raw)
To: Jakub Nowacki; +Cc: xenomai
On 01/20/2012 06:18 PM, Jakub Nowacki wrote:
>
> On 11 Jan 2012, at 22:53, Gilles Chanteperdrix wrote:
>
>> On 01/11/2012 11:49 PM, Daniele wrote:
>>> Hello,
>>>
>>> We are trying to use xenomai with analogy library
>>>
>>> [xenomai 2.6.0, kernel 2.6.38.8]
>>>
>>> Compiling the program we got the following error:
>>>
>>>
>>> "undefined reference to
>>> a4l_open<http://www.xenomai.org/documentation/trunk/html/api/group__descriptor1__lib.html#ga810401871fe8005ee0157c6910f94466>
>>>
>>>
"
>>>
>>> The compiler detects correctly the function prototypes but it
>>> can't found their complete definition.
>>>
>>> taking care of our MakeFile we also have read this:
>>>
>>> https://mail.gna.org/public/xenomai-help/2011-07/msg00036.html
>>>
>>> but we noticed that our makefile already contains this
>>> instructions for our skin, native.
>>>
>>> How could we get rid of this?
>>
>> You need to link with the libanalogy driver, so, simply add
>> "-lanalogy" on the compiler command line.
>>
>
> I had a similar problem. Namely, it was complaining about having
> undefined reference. I added the -lanalogy to the flags generated
> with 'xeno-config --skin=native --ldflags' and everything compiled
> and linked correctly, but when I start my application I get error:
>
> /usr/xenomai/lib/libanalogy.so.1: undefined symbol: rt_dev_ioctl
>
> I after adding -lrtdm after -lanalogy everything, again, complied and
> linked correctly, but I get new error:
>
> librtdm.so.1: shared object cannot be dlopen()ed
If you need to dlopen librtdm, please reconfigure xenomai passing:
--enable-dlopen-skins
--
Gilles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Xenomai-help] troubles with library inclusion
2012-01-20 18:22 ` Gilles Chanteperdrix
@ 2012-01-20 21:24 ` Jakub Nowacki
0 siblings, 0 replies; 5+ messages in thread
From: Jakub Nowacki @ 2012-01-20 21:24 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
On 20/01/12 18:22, Gilles Chanteperdrix wrote:
> If you need to dlopen librtdm, please reconfigure xenomai passing:
> --enable-dlopen-skins
>
Problem solved! Thanks a lot!
Cheers,
Jakub
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-20 21:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 22:49 [Xenomai-help] troubles with library inclusion Daniele
2012-01-11 22:53 ` Gilles Chanteperdrix
2012-01-20 17:18 ` Jakub Nowacki
2012-01-20 18:22 ` Gilles Chanteperdrix
2012-01-20 21:24 ` Jakub Nowacki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.