rticommunity / rticommunity/rticonnextdds-examples

[ENH] Add support for QNX to resources/cmake/FindRTIConnextDDS.cmake

Open
#491 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.