From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DFF2B40.9010004@domain.hid> Date: Mon, 20 Jun 2011 13:13:04 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4DFDF79F.1090502@domain.hid> <4DFDFD2F.1080506@domain.hid> <4DFE038F.202@domain.hid> <4DFE2A71.5060307@domain.hid> <4DFE8D82.1060903@domain.hid> <4DFED482.5050703@domain.hid> <4DFEF367.9000301@domain.hid> <4DFEFF7F.3000308@domain.hid> In-Reply-To: <4DFEFF7F.3000308@domain.hid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Compiling program with xenomai support List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Wiebe Cc: xenomai@xenomai.org 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! > > > #include > #include > #include > #include > #include > #include > #include > #include > #include > > #include > #include > > #define TIMESLEEP 1000000000 /* 1 sec */ > > > int main(void) > { > } > > > > ./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi > --enable-arm-mach=omap3 > > > > make DESTDIR=/home/david/sdir/ 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.