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
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to