Use the application commands to rebuild
the framework for
the QNX environment.
To
rebuild the IBM® Rational® Rhapsody® framework
for the QNX environment:
- Open
an application command prompt window.
- Set the
following environment variables:
set
QNXROOT= <your_QNX_install_dir>
set
QCC_CONF_PATH=%QNXROOT%/host/win32/etc/qcc
set QNX_TARGET=%QNXROOT%/target/qnx6
set QNX_HOST=%QNXROOT%/host/win32
set LD_LIBRARY_PATH=%QNXROOT%/target/qnx6/lib
set PATH=%QNX_HOST%/binwin;%PATH%
- Navigate
to the directory <Rational_Rhapsody_install>\Share\LangCpp and
execute one of the following commands:
make
-f qnxcwbuild.mak CPU=ppc CPU_SUFFIX=be PATH_SEP=\\
or
make
-f qnxcwbuild.mak CPU=x86 PATH_SEP=\\ In
the first command (for ppc), CPU_SUFFIX can
be one of the following values:
- be -
Big-endian
- le - Little-endian
In
the second command (for x86), do not include the CPU_SUFFIX in
the command.
If wanted, you can specify the TARGETS attribute,
which enables you to build only part of the framework. The possible
targets are as follows:
- oxflibs
- aomlibs
- omcomlib
- tomlib
- webcomponentslib
For
example:
make -f qnxcwbuild.mak
CPU=ppc CPU_SUFFIX=be PATH_SEP=\\
TARGETS=oxflibs
- To run the model, Generate and Make the
model in Rational Rhapsody,
then upload or transfer your application to the QNX machine using
the Momentics IDE or by using ftp, and executing
the application on the target machine (suitable for x86).