Thanks again Gilles!

I am now trying to compile an application using only native calls and using 
--skin=native
The reference to rt_task_shadow  is now found, but the rt_dev_open and 
rt_dev_close are still missing.
I expect that the code should reside in the librtdm files, but have no 
documentation on this.

Can you recommend a document that can lecture me in this subject?
I have tried to find such documentation, but the information is scattered and 
the examples cannot easily be put together (by novices) without conflicts.
I have downloaded the:
"Xenomai Native skin API.pdf" 
"Xenomai Posix skin Api.pdf" 
"Xenomai nanokernel API.pdf"
"Xenomai_RTDM-and-Applications.pdf"
"Xenomai RTDM skin API.pdf"

I find a lot of doxygen generated html-files, but they don’t give me the 
pedagogical contextual fill-ins.
I really dislike bothering people with such basic questions....

Best regards
Terje


debian@beaglebone:~/rtdm_dht11-app$ make
gcc -Wall -g -I//usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -o 
mycc rtdm_dht11-app.o  -lnative -L//usr/xenomai/lib -lxenomai -lpthread -lrt
rtdm_dht11-app.o: In function `main':
/home/debian/rtdm_dht11-app/rtdm_dht11-app.c:84: undefined reference to 
`rt_dev_open'
/home/debian/rtdm_dht11-app/rtdm_dht11-app.c:94: undefined reference to 
`rt_dev_close'
collect2: ld returned 1 exit status
make: *** [mycc] Error 1

-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]] 
Sent: 3. november 2014 18:28
To: Terje Frøysa
Cc: [email protected]
Subject: Re: [Xenomai] Xenoma 2.6.4 missing posix/xeno_config.h ?

On Mon, Nov 03, 2014 at 05:25:52PM +0000, Terje Frøysa wrote:
> Thanks Gilles,
> I am truly grateful for your patience.
> 
> The kernel headers as well as the -l (that I overlooked) is now taken away.
> However, I guess I still am missing a library path as I now end up with three 
> undefined references.

That is because you are using the native API, not the posix API, so you should 
pass --skin=native to xeno-config. If you are using both the posix and native 
skins, you need to add flags for both.

-- 
                                            Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to