* [Xenomai-help] Compiler Options
@ 2009-02-02 16:17 Stephen Davies
2009-02-03 9:57 ` vikesh rambaran
2009-02-03 13:27 ` Philippe Gerum
0 siblings, 2 replies; 3+ messages in thread
From: Stephen Davies @ 2009-02-02 16:17 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 996 bytes --]
Hi all,
I start by apologising for asking what I imagine is a very basic question but it's been driving me nuts all day! I am currently trying to build and compile one of the sample programs - msg_queue.c. I'm using the Code::Blocks IDE with GCC underneath it to compile the program. I have linked in the include directory /usr/xenomai/include but when I compile and link my code I get a load of 'undefined reference' errors relating to all of the xenomai functions. On my old RTAI setup I have never had to link explicitly to any libs only include header files - what am I doing wrong with xenomai?
My setup is 2.6.27 kernel, Xenomai latest stable, Ubuntu 8.10
Apologies again for what I imagine is a very simple question, but it's driving me nuts!
Thanks for your help,
Steve
_________________________________________________________________
Windows Live Messenger just got better .Video display pics, contact updates & more.
http://www.download.live.com/messenger
[-- Attachment #2: Type: text/html, Size: 1293 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Compiler Options
2009-02-02 16:17 [Xenomai-help] Compiler Options Stephen Davies
@ 2009-02-03 9:57 ` vikesh rambaran
2009-02-03 13:27 ` Philippe Gerum
1 sibling, 0 replies; 3+ messages in thread
From: vikesh rambaran @ 2009-02-03 9:57 UTC (permalink / raw)
To: Stephen Davies; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 1999 bytes --]
Hi Steve
On Mon, Feb 2, 2009 at 6:17 PM, Stephen Davies
<steve_davies61@domain.hid>wrote:
> Hi all,
>
> I start by apologising for asking what I imagine is a very basic question
> but it's been driving me nuts all day! I am currently trying to build and
> compile one of the sample programs - msg_queue.c. I'm using the
> Code::Blocks IDE with GCC underneath it to compile the program. I have
> linked in the include directory /usr/xenomai/include but when I compile and
> link my code I get a load of 'undefined reference' errors relating to all of
> the xenomai functions. On my old RTAI setup I have never had to
> link explicitly to any libs only include header files - what am I doing
> wrong with xenomai?
>
> My setup is 2.6.27 kernel, Xenomai latest stable, Ubuntu 8.10
>
> Apologies again for what I imagine is a very simple question, but it's
> driving me nuts!
>
> Thanks for your help,
>
> Steve
>
I haven't compiled the msg_queue.c example, but i do use the native skin
with rtdm under Code::Blocks with
Ubuntu 8.04.
To use the Xenomai realtime framework in Code::Blocks IDE,
1. Add these commands to "Project build options", "Compiler settings",
"Other options"
`/usr/xenomai/bin/xeno-config --xeno-cflags`
`/usr/xenomai/bin/xeno-config --xeno-ldflags`
[you can type the commands on the command line without the apostrophes to
get an idea of the output]
2. Under "Project build options", "linker settings" add libraries as
required
eg native, rtdm ...
[See /usr/xenomai/lib for available libraries]
3. Under "Project build options", "Search Directories", "Linker" add
/usr/xenomai/lib
Hope this helps to get you going
Keep well
Vicki
>
> ------------------------------
> Share your photos with Windows Live Photos - Free Try it Now!<http://www.microsoft.com/uk/windows/windowslive/products/messenger.aspx>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
>
[-- Attachment #2: Type: text/html, Size: 2903 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Compiler Options
2009-02-02 16:17 [Xenomai-help] Compiler Options Stephen Davies
2009-02-03 9:57 ` vikesh rambaran
@ 2009-02-03 13:27 ` Philippe Gerum
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2009-02-03 13:27 UTC (permalink / raw)
To: Stephen Davies; +Cc: xenomai
Stephen Davies wrote:
> Hi all,
>
> I start by apologising for asking what I imagine is a very basic
> question but it's been driving me nuts all day! I am currently trying
> to build and compile one of the sample programs - msg_queue.c. I'm
> using the Code::Blocks IDE with GCC underneath it to compile the
> program. I have linked in the include directory /usr/xenomai/include
> but when I compile and link my code I get a load of 'undefined
> reference' errors relating to all of the xenomai functions. On my old
> RTAI setup I have never had to link explicitly to any libs only include
> header files - what am I doing wrong with xenomai?
>
Try /usr/xenomai/bin/xeno-config { --xeno-cflags, --xeno-ldflags, etc. }
> My setup is 2.6.27 kernel, Xenomai latest stable, Ubuntu 8.10
>
> Apologies again for what I imagine is a very simple question, but it's
> driving me nuts!
>
> Thanks for your help,
>
> Steve
>
> ------------------------------------------------------------------------
> Share your photos with Windows Live Photos - Free Try it Now!
> <http://www.microsoft.com/uk/windows/windowslive/products/messenger.aspx>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-03 13:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 16:17 [Xenomai-help] Compiler Options Stephen Davies
2009-02-03 9:57 ` vikesh rambaran
2009-02-03 13:27 ` Philippe Gerum
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.