importing app from QNX4/Photon 1.14

I am trying to port my first Photon app from QNX4/Photon 1.14.

I copied the whole directory structure to a new directory.
I loaded appbuilder and selected it. It prompted me to convert the
application, which I did.
I then did a generate and tried to do a make. Here’s what make
reported.
What haven’t I set up properly yet?

for i in default ; do (cd $i; make shr) ; done
make[1]: Entering directory /root/Q-Int/src/default' g++ -vdefault -3 -mf -w5 -Osax -g -c -o abmain.o .././abmain.cc g++: unrecognized option -vdefault’
g++: unrecognized option -3' g++: unrecognized option -w5’
…/./abmain.cc:37: proto.h: No such file or directory

P.S. I am successfully doing compiles and links. This is my first
Photon effort under 6.2. Hint: I don’t do much photon.

You have to change the Makefile in /src/default.
There are old Compiler switches for the watcom compiler.
I have build a new application, copy the Makefile from the new
application to the old one and change the name of the target file.

Dieter Schemmelmann


Bill Caroselli schrieb:

I am trying to port my first Photon app from QNX4/Photon 1.14.

I copied the whole directory structure to a new directory.
I loaded appbuilder and selected it. It prompted me to convert the
application, which I did.
I then did a generate and tried to do a make. Here’s what make
reported.
What haven’t I set up properly yet?

for i in default ; do (cd $i; make shr) ; done
make[1]: Entering directory /root/Q-Int/src/default' g++ -vdefault -3 -mf -w5 -Osax -g -c -o abmain.o .././abmain.cc g++: unrecognized option -vdefault’
g++: unrecognized option -3' g++: unrecognized option -w5’
…/./abmain.cc:37: proto.h: No such file or directory

P.S. I am successfully doing compiles and links. This is my first
Photon effort under 6.2. Hint: I don’t do much photon.

I thought of this.

After I copied over the QNX4 app to QNX6 I completely deleted both
makefiles (at source code level and in the default directory). I
did a new generate and that’s what created the lines you see below.

BTW, I got this to work by specifically selecting a Target Platform,
instead of just selecting default. Should this have been necessary?

I believe that the PhAB Generate of makefiles should generate
something that is viable, not invalid.


Dieter Schemmelmann <dieschemm@t-online.de> wrote:

You have to change the Makefile in /src/default.
There are old Compiler switches for the watcom compiler.
I have build a new application, copy the Makefile from the new
application to the old one and change the name of the target file.

Dieter Schemmelmann



Bill Caroselli schrieb:

I am trying to port my first Photon app from QNX4/Photon 1.14.

I copied the whole directory structure to a new directory.
I loaded appbuilder and selected it. It prompted me to convert the
application, which I did.
I then did a generate and tried to do a make. Here’s what make
reported.
What haven’t I set up properly yet?

for i in default ; do (cd $i; make shr) ; done
make[1]: Entering directory /root/Q-Int/src/default' g++ -vdefault -3 -mf -w5 -Osax -g -c -o abmain.o .././abmain.cc g++: unrecognized option -vdefault’
g++: unrecognized option -3' g++: unrecognized option -w5’
…/./abmain.cc:37: proto.h: No such file or directory

P.S. I am successfully doing compiles and links. This is my first
Photon effort under 6.2. Hint: I don’t do much photon.


Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net

Bill Caroselli <qtps@earthlink.net> wrote:

I thought of this.

After I copied over the QNX4 app to QNX6 I completely deleted both
makefiles (at source code level and in the default directory). I
did a new generate and that’s what created the lines you see below.

BTW, I got this to work by specifically selecting a Target Platform,
instead of just selecting default. Should this have been necessary?

No. PhAB shouldn’t have let you select default in the first place.

I believe that the PhAB Generate of makefiles should generate
something that is viable, not invalid.



Dieter Schemmelmann <> dieschemm@t-online.de> > wrote:
You have to change the Makefile in /src/default.
There are old Compiler switches for the watcom compiler.
I have build a new application, copy the Makefile from the new
application to the old one and change the name of the target file.

Dieter Schemmelmann



Bill Caroselli schrieb:

I am trying to port my first Photon app from QNX4/Photon 1.14.

I copied the whole directory structure to a new directory.
I loaded appbuilder and selected it. It prompted me to convert the
application, which I did.
I then did a generate and tried to do a make. Here’s what make
reported.
What haven’t I set up properly yet?

for i in default ; do (cd $i; make shr) ; done
make[1]: Entering directory /root/Q-Int/src/default' g++ -vdefault -3 -mf -w5 -Osax -g -c -o abmain.o .././abmain.cc g++: unrecognized option -vdefault’
g++: unrecognized option -3' g++: unrecognized option -w5’
…/./abmain.cc:37: proto.h: No such file or directory

P.S. I am successfully doing compiles and links. This is my first
Photon effort under 6.2. Hint: I don’t do much photon.


Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net


Wojtek Lerch QNX Software Systems Ltd.

Wojtek Lerch <wojtek_l@yahoo.ca> wrote:

Bill Caroselli <> qtps@earthlink.net> > wrote:
I thought of this.

After I copied over the QNX4 app to QNX6 I completely deleted both
makefiles (at source code level and in the default directory). I
did a new generate and that’s what created the lines you see below.

BTW, I got this to work by specifically selecting a Target Platform,
instead of just selecting default. Should this have been necessary?

No. PhAB shouldn’t have let you select default in the first place.

OK, then I’ev solved my problem. Perhaps a little buglet should be
reported for PhAB.