QNX Host and Target Not Defined

QNX Target loaded with version 6.3.2 and there are compilation errors with RT-Lab.

Question

Have QNX 6.3.2 loaded on target HIL box. Why am I getting the following error when I compile using RT-Lab?

gcc: environment variable QNX_HOST and Target are not defined. Using MatrixX System Build or Matlab Simulink for model.

Answer

NOTE: Make sure this definition for 6.3.2 is added to all make files that are transferred to the target!!!

Make sure in the make file (*.mk for your asynchronous process)or the the qnxnto.opt file located in example: C:\Opal-rt\RT-LAB8.0.3\simulink\rtw\c you have the following lines(please see the file attached to know where to place it (note that if you are using MatrixX , then the file to be used is makefile_tpl_nto.mk; this file can be found in C:\OPAL-RT\RT-LAB8.0.3\systembuild\separator\separNT_nQNX) (model must be recompiled -remember to have Separate Model and Generate Code options are selected):

# Support for QNX 6.3.0 OS_VERSION = $(shell uname -r) ifeq "$(OS_VERSION)" "6.3.0" export QNX_HOST=/usr/qnx630/host/qnx6/x86 export QNX_TARGET=/usr/qnx630/target/qnx6/x86 endif

# Support for QNX 6.3.2 OS_VERSION = $(shell uname -r) ifeq "$(OS_VERSION)" "6.3.2" export QNX_HOST=/usr/qnx630/host/qnx6/x86 export QNX_TARGET=/usr/qnx630/target/qnx6/ endif

makefile_tpl_nto.mk - makefile QNX 6.3.2
qnxnto.opt - Simulink QNX 6.3.2