Porting QNX4 program to Neutrino

I am new at Neutrino and would like to port a QNX4 program over to Neutrino.
Does anyone have a step by step way of doing it? I think I’ve downloaded all
the development tools needed, I just can’t seem to figure out how to make my
QNX4 program run in Neutrino. Can anyone help me?

Mike

QNX 4 and Neutrino have different API. You might want to start
reading the QNX4 to Neutrino migration kit documentation.
This should give you a general idea how to do it.


“Mike Montoya” <mikem@spinn.net> wrote in message
news:8thh9t$p6g$1@inn.qnx.com

I am new at Neutrino and would like to port a QNX4 program over to
Neutrino.
Does anyone have a step by step way of doing it? I think I’ve downloaded
all
the development tools needed, I just can’t seem to figure out how to make
my
QNX4 program run in Neutrino. Can anyone help me?

Mike

Mike Montoya <mikem@spinn.net> wrote:

I am new at Neutrino and would like to port a QNX4 program over to Neutrino.
Does anyone have a step by step way of doing it? I think I’ve downloaded all
the development tools needed, I just can’t seem to figure out how to make my
QNX4 program run in Neutrino. Can anyone help me?

There is a migration package available – take a look for mig4nto on
the qdn web site. It includes documentation and a code-analysis tool
that will run through your QNX4 code and label functions that need to
be changed.

-David

Besides the above suggestions, just start compiling your program on RTP. Many
things will break. Since using Watcom in QNX4, if you are not used to using the
gnu tools, and the library naming and linking conventions, etc, you will need to
read a good source for gnu tools. There was an article in Dobbs, I think, on
cross platform targeting with gnu tools. If I remember tonight I will post the
issue #. Or if you want to remind me, you can e.mail me at jsfranko@mac.com.
I don’t know how good the article is, I haven’t read it yet. I just came across
it again, while cleaning up old stacks of magazines, and now that I am using
gnu, I’m going to read it.

But basically, compiling and fixing the errors is the start. You will run into
missing headers, headers you don’t need, symbols that aren’t defined, which
you’ll have to search the headers to see what you need to include, etc. You
will have to learn what calls to replace. There is a whole table of replaced
calls in the migration guide that I find very useful. You can either build with
the migration library to keep using all the old qnx4 calls (easiest), or you can
replace the qnx4 calls with the new NTO calls (harder). If you search these
newsgroups for my name, you will find several discussion I have had trying to
learn the new API’s. The QSSL folks are extremely helpful and responsive, if
you ask pointed, detailed questions.

There is also an O’Reiley book all about the subject of porting UNIX apps that
you might want to check out.

Scott

Mike Montoya wrote:

I am new at Neutrino and would like to port a QNX4 program over to Neutrino.
Does anyone have a step by step way of doing it? I think I’ve downloaded all
the development tools needed, I just can’t seem to figure out how to make my
QNX4 program run in Neutrino. Can anyone help me?

Mike