Hi Guys,
Well I now have the QNX6 SDK installed on my Windows 2000 machine
(aftering re-sizing my disk partition as it gobbled up a whole gig!).
However I can’t for the life of me figure out from the instruction
manuals how to go about setting up the command line compiler environment
(I assume with MetroWerks there is no IDE support). From what I can tell
the files live in the QNXsdk\host\binwin directory (at least that is
where I can find qcc).
But what I can’t figure out is how to properly set up the command line
compile environment. What environment variables do I need to set (it
looks like QNX_HOST and QNX_TARGET have both been properly set by the
installer). What other environment variables need to be set? I tried
running the appbuilder (found it in a directory deeply buried somewhere)
and got some errors about the path which it looks like it got from my
Cygqin HOME environment variable. I have Cgywin also installed on the
machine (I use it for hosting my Linux GCC cross compiler), so will
there be a conflict with the QNX6 SDK and Cygwin?
What about paths to libraries and include files. Does the compiler
understand the INCLUDE and LIB environment variables, or do I need to
set things up such that my makefiles pass the correct paths via -I and
-L? I assume the compiler should know where to find the proper include
files and libraries for QNX6 itself from the QNX_TARGET environment
variable, correct?
Are there any sample programs that come with the SDK that I can use to
try out compiling and linking from the command line?
Finally how does one normally transfer files to the target machine? With
QNX4 I cross compile on my Win32 box and then simply run the apps
mounted via SAMBA drive mounts on my QNX4 box (marking the files as
system files makes them executeable Is SAMBA a standard part of the
QNX6 install, or will I need to track that down for my target machine?
Oh, one more thing and what debugger do people use to cross debug their
apps with QNX6? I assume that GDB is available, but I have no idea how
to get this to run in remote debugging mode (via TCP/IP is possible).
How do I go about doing this? Is there a GUI debugger available (since
command line GDB sucks really badly ? On the target machine I see
that DDD is available, but can that be run on my Win32 machine for cross
debugging? Or do I need to dig up Phindows for QNX and run the debugger
remotely on the target machine?
Any help would be greatly appreciated as the QNX6 SDK docs seem a little
‘thin’.
–
±--------------------------------------------------------------+
| SciTech Software - Building Truly Plug’n’Play Software! |
±--------------------------------------------------------------+
| Kendall Bennett | Email: KendallB@scitechsoft.com |
| Director of Engineering | Phone: (530) 894 8400 |
| SciTech Software, Inc. | Fax : (530) 894 9069 |
| 505 Wall Street | ftp : ftp.scitechsoft.com |
| Chico, CA 95928, USA | www : http://www.scitechsoft.com |
±--------------------------------------------------------------+