rticommunity / rticommunity/rticonnextdds-examples
[ENH] Add support for QNX to resources/cmake/FindRTIConnextDDS.cmake
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 148
- Forks
- 153
- PR merge metrics
- No merged PRs in 30d
Description
Enhancement description
FindRTIConnextDDS.cmake does not currently accept QNX architectures for the CONNEXTDDS_ARCH variable. We can add QNX support on line 1131:
elseif(CONNEXTDDS_ARCH MATCHES "QNX")
set(CONNEXTDDS_EXTERNAL_LIBS
"-lm"
"-lsocket"
)
set(CONNEXTDDS_COMPILE_DEFINITIONS
"RTI_QNX"
)
Once this is added, we can build for QNX like this:
cmake .. -DOPENSSL_ROOT_DIR=/home/dsuser/grayson/tmp/rti_connext_dds-6.1.1/third_party/openssl-1.1.1n/armv8QNX7.1qcc_gpp8.3.0/release -DCONNEXTDDS_DIR=/home/dsuser/grayson/tmp/rti_connext_dds-6.1.1 -DCONNEXTDDS_ARCH=armv8QNX7.1qcc_gpp8.3.0 -DCMAKE_C_COMPILER=qcc -DCMAKE_CXX_COMPILER=qcc -DCMAKE_CXX_FLAGS="-Vgcc/8.3.0,gcc_ntoaarch64le -Y_gpp -lang-c++"
cmake --build .
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect resources/cmake/FindRTIConnextDDS.cmake around line 1131 and compare the existing architecture branches. Use the provided CMake configuration with the QNX compiler when that toolchain is available, then build the project; done means QNX configuration and compilation complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100