On 11-06-20 04:13 AM, Gilles Chanteperdrix wrote:
On 06/20/2011 10:06 AM, David Wiebe wrote:
On 11-06-20 12:14 AM, Gilles Chanteperdrix wrote:
On 06/20/2011 07:02 AM, David Wiebe wrote:
/home/david/xenomai-2.5.6.test/include/nucleus/types.h:41:32: error:
asm/xenomai/system.h: No such file or directory
Could you show us the arguments you pass to Xenomai "configure" script?
Normally, the "asm" directory is created by Xenomai install rule.

Posting your test code would also help us try and reproduce this issue.

Of course!

<test2.c>
#include<stdio.h>
#include<stdlib.h>
#include<fcntl.h>
#include<unistd.h>
#include<sys/stat.h>
#include<sys/types.h>
#include<sys/ioctl.h>
#include<signal.h>
#include<sys/mman.h>

#include<native/task.h>
#include<native/timer.h>

#define TIMESLEEP 1000000000 /* 1 sec */


int main(void)
{
}
<!test2.c>

<The configure script>
./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi
--enable-arm-mach=omap3
<!The configure script>

<The make install>
make DESTDIR=/home/david/sdir/ install
<!The make install>
Then, the header should be found under
/home/david/sdir/usr/xenomai/include/xenomai

In order to compile your test you should use xeno-config.

Typing, for instance:

CFLAGS=`DESTDIR=/home/david/sdir 
/home/david/sdir/usr/xenomai/bin/bin/xeno-config --skin native --cflags`
LDFLAGS=`DESTDIR=/home/david/sdir 
/home/david/sdir/usr/xenomai/bin/bin/xeno-config --skin native --ldflags`
arm-none-linux-gnueabi-gcc -o test2 $CFLAGS test2.c $LDFLAGS


Gilles,

Thank you for the info. My example program compiled. I fixed the typos and reposted.

CFLAGS=`DESTDIR=/home/david/sdir /home/david/sdir/usr/xenomai/bin/xeno-config 
--skin native --cflags`

LDFLAGS=`DESTDIR=/home/david/sdir /home/david/sdir/usr/xenomai/bin/xeno-config 
--skin native --ldflags`

arm-none-linux-gnueabi-gcc -o test2 $CFLAGS test2.c $LDFLAGS

Sincerely,

David

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to