From: Frede Florian <florian.frede@ma-info.de>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] How to use Xenomai in Eclipse
Date: Fri, 25 Jul 2014 11:10:23 +0200 [thread overview]
Message-ID: <53D21EFF.1050404@ma-info.de> (raw)
In-Reply-To: <20140724135603.GD17765@csclub.uwaterloo.ca>
Thanks for the fast help,
seems to work for me I used the wrong directory in the includes... also
the arm cross compiler seems to work.
Regards Florian
> You usually have to explicitly specify /usr/include/xenomai as an include
> directory when working with xenomai, given the xenomai files don't put
> the xenomai part of the path in the #include statements.
>
> Of course if cross compiling you would have to have the header files
> for your target in the correct place and add that to the include path.
>
> Using pkg-config would pretty much just take care of it for you of course.
>
> For example:
> root@omap5:~# pkg-config --cflags libxenomai_native
> -D_GNU_SOURCE -D_REENTRANT -D__XENO__ -I/usr/include/xenomai
>
> So you would make sure your makefile had:
>
> CFLAGS += $(shell pkg-config --cflags libxenomai_native)
> LIBS += $(shell pkg-config --libs libxenomai_native)
>
> I can't remember the syntax for using pkg-config for cross compiling at
> the moment, but I remember there is one. I almost never cross compile
> so I don't remember it.
>
next prev parent reply other threads:[~2014-07-25 9:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-24 6:49 [Xenomai] How to use Xenomai in Eclipse Frede Florian
2014-07-24 13:56 ` Lennart Sorensen
2014-07-25 9:10 ` Frede Florian [this message]
2014-07-27 16:49 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53D21EFF.1050404@ma-info.de \
--to=florian.frede@ma-info.de \
--cc=lsorense@csclub.uwaterloo.ca \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.