From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Gerum In-Reply-To: <1240088252.31471.6.camel@domain.hid> References: <1240088252.31471.6.camel@domain.hid> Content-Type: text/plain Date: Sun, 19 Apr 2009 00:42:09 +0200 Message-Id: <1240094529.26554.176.camel@domain.hid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Using xeno-config in cross compiling List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: jeff angielski Cc: xenomai@xenomai.org On Sat, 2009-04-18 at 16:57 -0400, jeff angielski wrote: > I am unable to cross compile to any POSIX skin applications, including > the example, because the xeno-config is return that POSIX is not > supported. However, when I run xeno-config on the target itself, it > returns the necessary posix-cflags and posix-ldflags. > > Running it on my powerpc target: > -bash-3.2# /usr/xenomai/bin/xeno-config --posix-cflags --posix-ldflags > -I/usr/xenomai/include -I/usr/xenomai/include/posix -D_GNU_SOURCE > -D_REENTRANT -D__XENO__ > -Wl,@/usr/xenomai/lib/posix.wrappers -L/usr/xenomai/lib -lpthread_rt > -lpthread -lrt > > Running it on my i686 build host: > jaa@domain.hid:~$ /srv/nfs/srp-xen/usr/xenomai/bin/xeno-config > --posix-cflags --posix-ldflags > -I/usr/xenomai/include -I/usr/xenomai/include/posix -D_GNU_SOURCE > -D_REENTRANT -D__XENO__ > POSIX support is not available > > > What is the proper way to cross compiler a POSIX skin application in a > cross compiler development setup? > The way you did it is probably ok; but you may want to tell xeno-config where to find the staging directory via the DESTDIR variable, so it can locate all the host files it needs locally (e.g. posix.wrappers). i.e. DESTDIR=/srv/nfs/srp-xen /srv/nfs/srp-xen/usr/xenomai/bin/xeno-config --posix-cflags ... > > > Gory details: > xen: xenomai-2.4.7 > kernel: linux 2.6.28.5 > arch: powerpc (MPC8544) > cc: ppc_85xxDP (from ELDK) > > -- Philippe.