From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jakub Nowacki <j.s.nowacki@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] unresolved symbol - check the xenomai installation
Date: Mon, 09 Jan 2012 13:11:46 +0100 [thread overview]
Message-ID: <4F0AD982.5050106@domain.hid> (raw)
In-Reply-To: <4F0A1A38.1070506@domain.hid>
On 01/08/2012 11:35 PM, Jakub Nowacki wrote:
> On 08/01/12 22:09, Philippe Gerum wrote:
>> References should precede definitions. Try swapping libxenomai.so and
>> libnative.so in your link order. As Gilles already suggested, using the
>> xeno-config script in your Makefile to get the proper link flags would
>> have prevented this issue.
>>
> Thanks for the answer. The problem is I do not have just a Makefile but
> it is generated with autotools. In autotools xeno-config is used but
> apparently order is not OK.
The flag returned by xeno-config are in the right order if you use the
"new" syntax that is --skin=native --ldflags instead of the "old" syntax
--xeno-ldflags which required you to add -lnative -lxenomai by hand.
Another solution, since xenomai 2.6.0, is to use pkg-config. How to use
pkg-config with the autotools is described here, for instance:
http://bec-systems.com/site/121/autotools-quick-reference
The name of xenomai .pc files are libxenomai_skin, so libxenomai_native
for the native skin, or libxenomai_posix for the posix skin.
--
Gilles.
prev parent reply other threads:[~2012-01-09 12:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 14:31 [Xenomai-help] unresolved symbol - check the xenomai installation Gregory Gosse
2012-01-04 14:55 ` Gilles Chanteperdrix
2012-01-04 16:22 ` Gregory Gosse
2012-01-04 17:45 ` Gilles Chanteperdrix
2012-01-05 23:07 ` Jakub Nowacki
2012-01-06 9:40 ` Gilles Chanteperdrix
2012-01-08 20:38 ` Jakub Nowacki
2012-01-08 22:09 ` Philippe Gerum
2012-01-08 22:35 ` Jakub Nowacki
2012-01-09 12:11 ` Gilles Chanteperdrix [this message]
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=4F0AD982.5050106@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=j.s.nowacki@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.