6.1. Prepare Your Development Environment¶
This section describes how to set up your development environment for Connext Cert applications, such as the required environment variables, compilers, compiler definitions, and libraries.
6.1.1. Set environment variables¶
The RTIMEHOME
environment variable must be set to the installation directory path
for RTI Connext Cert. If you installed RTI Connext with default settings, RTI Connext Cert will be here:
<path_to_connext_dds_installation>/rti_connext_dds-<version>/rti_connext_micro-<version>
.
If you copied RTI Connext Cert to another place, set RTIMEHOME
to point to that location.
6.1.2. Add required preprocessor flags¶
All Connext Cert applications require the following preprocessor defines:
-DRTI_PSL=1
-IRTIMEHOME/include
-IRTIMEHOME/include/rti_me
-IRTIMEHOME/include/rti_me/rti_me_psl
Add the following preprocessor defines, according to your platform and compiler:
Using QCC:
-DOSAPI_CC_DEF_H=osapi/osapi_cc_qcc.h
-DRTI_QNX
6.1.3. Link applications and libraries¶
Add the library path for both the PIL and PSL to the linker’s search path:
RTIMEHOME/lib/<arch>/
(PIL)RTIMEHOME/lib/<arch>-<PSL>/
(PSL)
Note
When executing executables that are linked with the Connext Cert shared libraries, you must add the path to the PIL architecture directory to the runtime linker’s search path.
To link a C application, the libraries are required in the following order:
RTIMEHOME/lib/<arch>/
rti_me
(always required)
RTIMEHOME/lib/<arch>-<PSL>/
rti_me_psl
(when building with a Platform Independent Library)rti_me_netiozcopy
(when building with the Zero Copy v2 transport)