Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Use Eclipse compile facilities with Xenomai(How to incorporate Xenomai Userspace into application compilation.)
Use Eclipse compile facilities with Xenomai [message #1170207] Mon, 04 November 2013 13:30 Go to next message
Jan Jaap Kempenaar is currently offline Jan Jaap KempenaarFriend
Messages: 1
Registered: November 2013
Junior Member
Hello,

I'm using the Eclipse Kepler to write my C and C++ applications. I use the built-in compile tools in order to compile the applications. This allows me to compile for both x86 linux on my machine and cross compile for an ARM target with arm-linux-gnueabi-g++ compiler.

Now my target has a Xenomai patched linux and I want to compile my application for this particular platform.

In a normal Makefile I would solve this with:
XENO_DESTDIR:=/home/username/xenomai_userspace
XENO_CONFIG:=$(XENO_DESTDIR)/usr/xenomai/bin/xeno-config
CFLAGS+=$(shell DESTDIR=$(XENO_DESTDIR) $(XENO_CONFIG) --skin=posix --cflags)
LDFLAGS+=$(shell DESTDIR=$(XENO_DESTDIR) $XENO_CONFIG) --skin=posix --cflags)

SRC_FILES:=app.cpp
OBJ_FILES:=$(patsubst %.cpp,%.o,$(SRC_FILES))

LD=$(CROSS_COMPILE)g++
CXX=$(CROSS_COMPILE)g++

app: $(OBJ_FILES)
    V=1 $(XENOMAI_DIR)/usr/xenomai/bin/wrap-link.sh $(LD) $(LDFLAGS) $^ -o $@

.cpp.o:
    $(CXX) -c -I. $(CFLAGS) $(CPPFLAGS)

clean:
    rm -rf $(OBJ_FILES) app

This code adds the proper wrapper and flags using the provided xeno-config script.

My question is:
Is it possible to somehow include this into a build configuration for Eclipse Kepler?
Has this already been done before? (Google did not lead to any indication that it did)
How would I add this, is it just adding flags and include the xeno-config script file, or is another approach required?

Thanks in advance for any replies pointing to hints or suggestions for a solution.

Regards,
Jan Jaap Kempenaar
Re: Use Eclipse compile facilities with Xenomai [message #1403216 is a reply to message #1170207] Tue, 22 July 2014 11:39 Go to previous messageGo to next message
Florian Frede is currently offline Florian FredeFriend
Messages: 1
Registered: July 2014
Junior Member
Hello,

did you found a solution? I am on the same point...

Regards Florian
Re: Use Eclipse compile facilities with Xenomai [message #1695569 is a reply to message #1170207] Sun, 17 May 2015 02:30 Go to previous message
Harsha Cheranda is currently offline Harsha CherandaFriend
Messages: 2
Registered: May 2015
Junior Member
Hey

here is what you are looking for..

https://github.com/awesomebytes/xenorasp/wiki/Crosscompile-a-program-from-your-computer-to-your-Raspberry-Pi

Have fun

Bye
Previous Topic:No Contructor/Destructor Comment from Template
Next Topic:C source not in the project directory
Goto Forum:
  


Current Time: Tue Apr 23 11:54:53 GMT 2024

Powered by FUDForum. Page generated in 0.03377 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top