cross-platform compiling from linux to qnx

Does QNX support cross developing from Linux?
How do I build a Cross-compiler, cross-assempler etc. on Linux to
compile programs that will run on QRtP / Neutrino?
Is it possible?

thanks

Massimiliano Cialdi
cialdi@control.dsi.unifi.it
cialdi@firenze.net
cialdi@geoide.it

Massimiliano Cialdi <cialdi@control.dsi.unifi.it> wrote:

Does QNX support cross developing from Linux?

No, we support windows and solaris as hosts.

How do I build a Cross-compiler, cross-assempler etc. on Linux to
compile programs that will run on QRtP / Neutrino?
Is it possible?

I don’t think it is.

Best Regards,

Marcin

thanks

Massimiliano Cialdi
cialdi@control.dsi.unifi.it
cialdi@firenze.net
cialdi@geoide.it

“Tools Mail Account” <tools@qnx.com> wrote in message
news:9kpea8$k65$1@nntp.qnx.com

Massimiliano Cialdi <> cialdi@control.dsi.unifi.it> > wrote:
Does QNX support cross developing from Linux?

No, we support windows and solaris as hosts.

How do I build a Cross-compiler, cross-assempler etc. on Linux to
compile programs that will run on QRtP / Neutrino?
Is it possible?

I don’t think it is.

Actually it is possible, but it’s a bit of a chore. You’ll need the headers
and libs from QNX6.1.
Why not port your favorite editor/IDE to QNX? I think you’ll get more
milage out of this effort.



Best Regards,

Marcin

thanks

Massimiliano Cialdi
cialdi@control.dsi.unifi.it
cialdi@firenze.net
cialdi@geoide.it

“David S. Alessio” wrote:

Does QNX support cross developing from Linux?

No, we support windows and solaris as hosts.

How do I build a Cross-compiler, cross-assempler etc. on Linux to
compile programs that will run on QRtP / Neutrino?
Is it possible?

I don’t think it is.

Actually it is possible, but it’s a bit of a chore. You’ll need the headers
and libs from QNX6.1.
Why not port your favorite editor/IDE to QNX? I think you’ll get more
milage out of this effort.
I don’t think that I can port matlab6 to qnx…

The problem is to make matlab real-time workshop generates a qnx
executable, and we use matlab6 for linux.

thanks and sorry for my english

Massimiliano Cialdi
cialdi@control.dsi.unifi.it
cialdi@firenze.net
cialdi@geoide.it

Isn’t it possible to make Simulink Realtime Workshop (which I assume you refer to)
to generate platform independent, “general” C code? Then you’d not need any
libraries at all, i.e. you can compile it in almost any OS.
We generate C code for QNX from the similar Autocode product from
ISI in this way. We have made code generation templates to make the code fit into
our QNX environment. The math core of the code doesn’t need to be changed, only
the I/O to the rest of the world, process/thread control and similar.
Some 90% of the code in our control systems are automatically generated.

Tom

Massimiliano Cialdi wrote:

“David S. Alessio” wrote:
Does QNX support cross developing from Linux?

No, we support windows and solaris as hosts.

How do I build a Cross-compiler, cross-assempler etc. on Linux to
compile programs that will run on QRtP / Neutrino?
Is it possible?

I don’t think it is.

Actually it is possible, but it’s a bit of a chore. You’ll need the headers
and libs from QNX6.1.
Why not port your favorite editor/IDE to QNX? I think you’ll get more
milage out of this effort.
I don’t think that I can port matlab6 to qnx…
The problem is to make matlab real-time workshop generates a qnx
executable, and we use matlab6 for linux.

thanks and sorry for my english

Massimiliano Cialdi
cialdi@control.dsi.unifi.it
cialdi@firenze.net
cialdi@geoide.it

Tomas Högström <tomas@scandicraft.se> wrote in message
3B7121C8.1C4D5A13@scandicraft.se

Isn’t it possible to make Simulink Realtime Workshop (which I assume you
refer to)
to generate platform independent, “general” C code? Then you’d not need
any
libraries at all, i.e. you can compile it in almost any OS.
It isn’t a problem; we can write some tmf and tlc files to generate QNX C

code. (we already do this for rtlinux)

We generate C code for QNX from the similar Autocode product from
ISI in this way. We have made code generation templates to make the code
fit into
our QNX environment. The math core of the code doesn’t need to be changed,
only
the I/O to the rest of the world, process/thread control and similar.
Some 90% of the code in our control systems are automatically generated.
Well, but where do you compile the C code for QNX?

We must generate C code for QNX (using matlab6), and then we must compile it
on the same platform (in this case linux); the last step is to send the QNX
executable from linux to QNX.
So we need a QNX compiler under linux, we can’t compile the C code,
generated by matlab, directly on QNX platform.

thanks and sorry for my english


Massimiliano Cialdi
cialdi@firenze.net
cialdi@control.dsi.unifi.it
cialdi@geoide.it

Aha, no, we download the generated code to a QNX computer and compile it there.
Isn’t that a working solution for you?

Tom

Well, but where do you compile the C code for QNX?
We must generate C code for QNX (using matlab6), and then we must compile it
on the same platform (in this case linux); the last step is to send the QNX
executable from linux to QNX.
So we need a QNX compiler under linux, we can’t compile the C code,
generated by matlab, directly on QNX platform.

thanks and sorry for my english


Massimiliano Cialdi

Tomas Högström <tomas@scandicraft.se> wrote in message
3B73B06F.E24E7B76@scandicraft.se

Aha, no, we download the generated code to a QNX computer and compile it
there.
Isn’t that a working solution for you?
Unfortunately no.

We can’t download QNX C code to QNX platform, we must download the
executable only.
I read in http://gcc.gnu.org/onlinedocs/gcc_4.html#SEC58 how to build a
cross compiler: It seems to be possible, but I have never made it before so
I’m not sure.
BTW I dowloaded gcc-2.95.2-qnx.tgz, binutils-2.9.1-qnx.tgz and nto-g++.tgz
from ftp.qnx.com and I hope to success.

thanks and sorry for my english


Massimiliano Cialdi
cialdi@firenze.net
cialdi@control.dsi.unifi.it
cialdi@geoide.it

Hi…

I wonder, you can download the source code to another qnx machine (i.e.
every one has a laptop nowadays), compile, and then download the exec to
your QNX box (you can do this at the airport while waiting for your
delayed flight, for example :slight_smile:. There is an extra step, but it is an
easy one.

Bests…

Miguel.

Massimiliano Cialdi wrote:

Tomas Högström <> tomas@scandicraft.se> > wrote in message
3B73B06F.E24E7B76@scandicraft.se> …

Aha, no, we download the generated code to a QNX computer and compile it
there.
Isn’t that a working solution for you?
Unfortunately no.
We can’t download QNX C code to QNX platform, we must download the
executable only.
I read in > http://gcc.gnu.org/onlinedocs/gcc_4.html#SEC58 > how to build a
cross compiler: It seems to be possible, but I have never made it before so
I’m not sure.
BTW I dowloaded gcc-2.95.2-qnx.tgz, binutils-2.9.1-qnx.tgz and nto-g++.tgz
from ftp.qnx.com and I hope to success.

thanks and sorry for my english


Massimiliano Cialdi
cialdi@firenze.net
cialdi@control.dsi.unifi.it
cialdi@geoide.it

my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com