All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: C Robinson <starknight__@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2
Date: Fri, 03 Sep 2010 16:32:18 +0200	[thread overview]
Message-ID: <1283524338.1709.2133.camel@domain.hid> (raw)
In-Reply-To: <20100903085639.12173@domain.hid>

On Fri, 2010-09-03 at 08:56 -0400, C Robinson wrote:
> Hi,
> 
> So the position I am in is still not knowing how to run the examples.   Attempting the command "sudo make  /home/<user name>/xenomai-2.5.4" from the directory /usr/xenomai_egs/xenomai-head/examples/, results in the following error (as mentioned previously):
> 
> ----------------------------------------------------------------------------------------------------------------------------
> xddp-echo.c: In function ?realtime_thread?:
> xddp-echo.c:115: error: ?SOL_XDDP? undeclared (first use in this function)
> xddp-echo.c:115: error: (Each undeclared identifier is reported only once
> xddp-echo.c:115: error: for each function it appears in.)
> xddp-echo.c:115: error: ?XDDP_POOLSZ? undeclared (first use in this function)
> make[1]: *** [xddp-echo] Error 1
> ---------------------------------------------------------------------------------------------------------------------------
> 
> and shortly afterwards ended with:
> 
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/xenomai_egs/xenomai-head/examples/posix'
> 
> How do I get around this error?  In addition, is it ok to use the default user account. (or should a specific xenomai account be set up)
> 

The guidelines are misleading, in the sense that pulling xenomai-head
today will download the code for the upcoming 2.6.x release.
Unfortunately, changes were made to the rtipc support for 2.6.x, which
are not available to 2.5.x. So, building the xenomai-head (2.6.x)
examples against headers and libraries belonging to 2.5(.4) won't
neither build nor work.

Sorry for the time lost fiddling with this. The guidelines were written
at a time when -head was actually the development tree for the 2.5.x
release. We opened the 2.6.x branch recently, thus becoming the new
-head.

> 
> Trying to get up the man pages results in:
> 
> ---------------------------------------------------------------------------------------------------------------------------
> clocktest man
> The program 'clocktest' is currently not installed.  You can install it by typing:
> sudo apt-get install xenomai-runtime
> ---------------------------------------------------------------------------------------------------------------------------
> Is this because I installed the xenomai-runtime package manually via the Debian guideline ? (Synaptic shows this as being already installed, perhaps this is a result of the earlier problem?).
> 

I can't tell, but I can give you the steps to build any 2.5.x release
the way it should work for you, i.e. from the official tarball, assuming
x86 is your target system:

- unpack xenomai-2.5.4.tar.bz2 (yeah, ok, this one is no news)
- mkdir -p .../your/build/tree
- cd .../your/build/tree
- .../xenomai-2.5.4/configure [--enable-x86-sep]* [--prefix=/install-dir]
- make install

At this stage, you should have the userland bits properly compiled and
installed in /install-dir. This defaults to /usr/xenomai if
unspecified. 

Those userland bits should work with any Xenomai 2.5.x kernel support,
regardless of whether you got it from the ubuntu/debian repos via apt,
or rebuilt it manually, assuming that the distro package was built with
sane defaults.

If you plan to rebuild your own kernel with Xenomai support instead of
picking the one shipped with the distro, then README.INSTALL, §2.1
should help. Why this could be a good idea is explained here: 
http://www.xenomai.org/index.php/FAQs#Tips_and_tricks_setting_up_your_x86_kernel

If you go for manual install, I would suggest that you purge all
previous Xenomai packages from your system, to avoid hair pulling
conflicts.

(*) best for x86_32, unless if running pre-Pentium II+ antiques. Not
needed on x86_64.

> 
> Thanks,
> Charles
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.




  reply	other threads:[~2010-09-03 14:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 12:56 [Xenomai-help] Xenomai-help Digest, Vol 60, Issue 2 C Robinson
2010-09-03 14:32 ` Philippe Gerum [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-06 12:03 C Robinson
2010-09-06 13:18 ` Stefan Kisdaroczi

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=1283524338.1709.2133.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=starknight__@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.