Thomas Fletcher
|
RE: Building for QNX and Linux
|
Thomas Fletcher
10/15/2007 9:41 AM
post2003
|
RE: Building for QNX and Linux
> -----Original Message-----
> From: Thomas Buschmann [mailto:buschmann@amm.mw.tum.de]
> Sent: October 15, 2007 5:14 AM
> To: momenticsgs-community
> Subject: Building for QNX and Linux
>
> I have some software that needs to run on both QNX Neutrino
> and Linux. Using command line tools and custom makefiles
> works fine, however I would like to take advantage of the
> IDE's functionality. Unfortunately, I see no obvious way to
> add a "Linux target" to a QNX-Project. Also, the standard
> QNX-Makefiles won't work on machines without the
> QNX-specific tools and files (recurse.mk,...).
> Is there a standard / preferred way to build for both QNX and
> a different OS?
For the most part, the IDE is just sitting on top of your custom
build file functionality. If you want to tie yourself to the IDE
then I would suggest that you look at the Managed Makefile type
of project. This project allows different project and build
configurations that use different toolchains. It solves a problem
similar to the QNX Makefiles, but in an IDE specific manner. The
Managed Makefile project is a standard part of the Eclipse CDT.
For the command line, the closest thing to a "standard" would be to
use a "configure/make" style build, which can be incorporated into
a QNX makefile structure (see the QNX Programmer's Guide in the
makefile appendix for more details ... or look at the OS source for
something like ports/tar).
Of course, if the software is going to run under Neutrino and Linux,
then you should already have the Neutrino dev environment installed!
Nobody would want to only build the software for Linux I'm sure =;-)
> Any help will be greatly appreciated!
Hope this helps,
Thomas
|
|
|