Skip to contentSkip to conversation

Cross compiling include path

Xenomai Reitinger, Peter 2 participants 2 messages Jul 29, 2014

lore
Share & tools
lore
#0 lore raw

Hi dear xenomai people,

sorry that I have so many question, but there is already another one... ;-)

I have seen that my output for cflags is as follows:

hico@debian:dimm-am335x:~/workspace/Xenomai/xenomai_from_git/staging_dir/usr/xenomai/bin$ xeno-config --skin=native --cflags
-I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__

But it should be -I${staging_dir}/usr/xenomai/include as I guess for cross compilation.
Is it -I/usr... because I have made a mis-configuration in any step before? Of course, I can simply fix it by adapting my Makefile and add the right include directory, but I would like to prevent later problems as early as possible...

Kind regards

#1 lore raw
Quoted 11 lines · Peter

Hi dear xenomai people,

sorry that I have so many question, but there is already another one... ;-)

I have seen that my output for cflags is as follows:

hico@debian:dimm-am335x:~/workspace/Xenomai/xenomai_from_git/staging_dir/usr/xenomai/bin$ xeno-config --skin=native --cflags
-I/usr/xenomai/include -D_GNU_SOURCE -D_REENTRANT -D__XENO__

But it should be -I${staging_dir}/usr/xenomai/include as I guess for cross compilation.
Is it -I/usr... because I have made a mis-configuration in any step before? Of course, I can simply fix it by adapting my Makefile and add the right include directory, but I would like to prevent later problems as early as possible...

See:
http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai#Compilation_flags

The example is for the posix skin.

Signature · 1 line
                                                                Gilles.