common.mk build error on simple project

Hello,

I’m having difficulties compiling a simple QNX C application. In the self
genrated makefile it is unable to locate ‘qconfig.mk’ and ‘qtargets.mk’. I’m
assuming there is some setup I’m missing that would create these
automatically but I can’t find what. Any Ideas?

Thanks.

“JFradley” <jfradley@insightcontrol.com> wrote in message
news:ah43jf$hd1$1@inn.qnx.com
| Hello,
|
| I’m having difficulties compiling a simple QNX C application. In the self
| genrated makefile it is unable to locate ‘qconfig.mk’ and ‘qtargets.mk’.
I’m
| assuming there is some setup I’m missing that would create these
| automatically but I can’t find what. Any Ideas?
|
The self generated makefile (common.mk) ‘looks’ for include files in a
number of locations depending on your platform.

On Neutrino/RTP it looks for them in
/usr/include/mk/qconfig.mk
/qtargets.mk

On Windows it looks for them in the install directory (deafult install dir
is shown below)
C:\qnxsdk\target\qnx6\user\include\mk\qconfig.mk
\qtargets.mk

On both Windows and Neutrino make uses the following environment variable:
Windows:
QNX_TARGET=C:\qnxsdk\target\qnx6\

Neutrino:
QNX_TARGET=/


I hope this helps

-Judy


¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨
Judy N. Green Software Engineer
QNX Software Systems Ltd. www.qnx.com
¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨¨°ºo§oº°¨¨¨

| Thanks.
|
|

Judy N. Green <jgreen@qnx.com> wrote:

“JFradley” <> jfradley@insightcontrol.com> > wrote in message
news:ah43jf$hd1$> 1@inn.qnx.com> …
| Hello,
|
| I’m having difficulties compiling a simple QNX C application. In the self
| genrated makefile it is unable to locate ‘qconfig.mk’ and ‘qtargets.mk’.
I’m
| assuming there is some setup I’m missing that would create these
| automatically but I can’t find what. Any Ideas?
|
The self generated makefile (common.mk) ‘looks’ for include files in a
number of locations depending on your platform.

On Neutrino/RTP it looks for them in
/usr/include/mk/qconfig.mk
/qtargets.mk

On Windows it looks for them in the install directory (deafult install dir
is shown below)
C:\qnxsdk\target\qnx6\user\include\mk\qconfig.mk
\qtargets.mk

On both Windows and Neutrino make uses the following environment variable:
Windows:
QNX_TARGET=C:\qnxsdk\target\qnx6\

Neutrino:
QNX_TARGET=/

Just a clarification. qconfig.mk lives in ${QNX_TARGET}/usr/include, and is
a symlink to (a copy on Windows) ${QNX_TARGET}/usr/include/mk/qconf-<HOST}.mk

So, for example on Solaris you would have a default ${QNX_TARGET} of
/opt/QNXsdk/target/qnx6, giving us:

/opt/QNXsdk/target/qnx6/usr/include/qconfig.mk →
/opt/QNXsdk/target/qnx6/usr/include/mk/qconf-solaris.mk

Regards,
GP


I hope this helps

-Judy


Judy N. Green Software Engineer
QNX Software Systems Ltd. > www.qnx.com

| Thanks.
|
|