All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Makefile to use 2 APIs (rtdm and alchemy) simultaneously
@ 2015-03-18 15:12 Helder Daniel
  2015-03-18 15:54 ` Helder Daniel
  2015-03-18 17:35 ` Philippe Gerum
  0 siblings, 2 replies; 9+ messages in thread
From: Helder Daniel @ 2015-03-18 15:12 UTC (permalink / raw)
  To: Xenomai@xenomai.org, Helder Daniel

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?

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

the compilation flags to compile it

skin1   :=  alchemy
skin2   :=  rtdm

CFLAGS  := $(shell xeno-config --skin=$(skin1) --cflags)
CFLAGS  += $(shell xeno-config --skin=$(skin2) --cflags)
LDFLAGS := $(shell xeno-config --skin=$(skin1) --ldflags)
LDFLAGS += $(shell xeno-config --skin=$(skin2) --ldflags)

$(target): $(target).c
$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)



-- 
Helder Daniel
UALG - FCT
DEEI

http://w3.ualg.pt/~hdaniel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-03-19  6:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-03-18 20:46   ` Helder Daniel
2015-03-19  6:56     ` 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.