All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Helder Daniel <hdaniel@ualg.pt>,
	"Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Makefile to use 2 APIs (rtdm and alchemy) simultaneously
Date: Wed, 18 Mar 2015 18:35:06 +0100	[thread overview]
Message-ID: <5509B74A.8080302@xenomai.org> (raw)
In-Reply-To: <CAKk99t3x2u4GN0D2w_pSBY8jWVRuE1yFki66dYNUfFBSd2GQ6w@mail.gmail.com>

On 03/18/2015 04:12 PM, Helder Daniel wrote:
> Hi
> 
> I translated the xddp-echo.c example to work with alchemy and rt_tasks
> rather than posix threads.
> 
> It was needed to include the header for alchemy tasks: #include
> <alchemy/task.h> and maintain: <rtdm.h/ipc.h>
> 
> It was compiled with a simple make file specifying in xeno-config just
> alchemy skin to get the compilation flags, however when running it gives an
> error:
> 
> socket address family not supported by protocol
> 
> To workaround the makefile was modified to get the compilation flags for
> both skins (as shown below).
> 
> But there are any other way of compiling programs that use XDDP real time
> sockets and alchemy API?

XDDP is based on RTDM, so you need POSIX, along with Alchemy for the
changes you added, i.e.:

xeno-config --alchemy --posix --ldflags

> 
> For the original version POSIX version xeno-config returns the correct
> compilation flags specifying rtdm skin or posix skin. It is not needed to
> specify both.
> 
> The makefile to get flags for RTDM and Alchemy:
> 
> https://xenomai.org/documentation/trunk/html/api/xddp-label_8c-example.html
>

Unlike with 2.6.x, mentioning RTDM is pointless with Xenomai 3.x because
you always have POSIX implicitly for any application, therefore you have
RTDM. Giving --skin=rtdm or --rtdm is a no-op for compat purpose with
legacy Makefiles actually.

With 3.x, RTDM implies POSIX I/O calls and the socket interface, which
is readily available with libcobalt, which all apps link against.

-- 
Philippe.


  parent reply	other threads:[~2015-03-18 17:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18 15:12 [Xenomai] Makefile to use 2 APIs (rtdm and alchemy) simultaneously Helder Daniel
2015-03-18 15:54 ` Helder Daniel
2015-03-18 16:07   ` Helder Daniel
2015-03-18 17:37     ` Philippe Gerum
2015-03-18 19:04       ` Helder Daniel
2015-03-18 20:26         ` Helder Daniel
2015-03-18 17:35 ` Philippe Gerum [this message]
2015-03-18 20:46   ` Helder Daniel
2015-03-19  6:56     ` Philippe Gerum

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=5509B74A.8080302@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=hdaniel@ualg.pt \
    --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.