All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: David Wiebe <dwiebe2@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Compiling program with xenomai support
Date: Mon, 20 Jun 2011 13:13:04 +0200	[thread overview]
Message-ID: <4DFF2B40.9010004@domain.hid> (raw)
In-Reply-To: <4DFEFF7F.3000308@domain.hid>

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!
> 
> <test2.c>
> #include <stdio.h>
> #include <stdlib.h>
> #include <fcntl.h>
> #include <unistd.h>
> #include <sys/stat.h>
> #include <sys/types.h>
> #include <sys/ioctl.h>
> #include <signal.h>
> #include <sys/mman.h>
> 
> #include <native/task.h>
> #include <native/timer.h>
> 
> #define TIMESLEEP 1000000000 /* 1 sec */
> 
> 
> int main(void)
> {
> }
> <!test2.c>
> 
> <The configure script>
> ./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi 
> --enable-arm-mach=omap3
> <!The configure script>
> 
> <The make install>
> make DESTDIR=/home/david/sdir/ install
> <!The make 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.


  reply	other threads:[~2011-06-20 11:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-19 13:16 [Xenomai-help] Problem accesing I2C without using Linux kernel Andrey Nechypurenko
2011-06-19 13:20 ` Gilles Chanteperdrix
     [not found]   ` <BANLkTinVUd-R1cpD+40MGZZckzGhwrqRvw@domain.hid>
2011-06-19 13:44     ` Gilles Chanteperdrix
2011-06-19 13:54       ` Gilles Chanteperdrix
2011-06-19 14:06       ` Andrey Nechypurenko
2011-06-19 14:11         ` Gilles Chanteperdrix
2011-06-19 14:21           ` Andrey Nechypurenko
2011-06-19 16:57             ` Gilles Chanteperdrix
2011-06-19 20:24               ` Andrey Nechypurenko
2011-06-20  0:00                 ` [Xenomai-help] Beagleboard Xenomai David Wiebe
2011-06-20  5:02                   ` [Xenomai-help] Compiling program with xenomai support David Wiebe
2011-06-20  7:14                     ` Gilles Chanteperdrix
2011-06-20  8:06                       ` David Wiebe
2011-06-20 11:13                         ` Gilles Chanteperdrix [this message]
2011-06-20 19:04                           ` David Wiebe

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=4DFF2B40.9010004@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=dwiebe2@domain.hid \
    --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.