# \#os:qnx

**URL:** https://discourse.cmake.org/tag/os-qnx/12.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [QNX SDP 8 Compiler flag \`-lang-c++\` now marked as deprecated](https://discourse.cmake.org/t/qnx-sdp-8-compiler-flag-lang-c-now-marked-as-deprecated/12695)

<div class="topic-metadata">

**Author:** [@jcurl](https://discourse.cmake.org/u/jcurl)\
**Replies:** 25\
**Last updated:** [August 4, 2025, 5:08pm UTC](https://discourse.cmake.org/t/qnx-sdp-8-compiler-flag-lang-c-now-marked-as-deprecated/12695 "2025-08-04T17:08:16Z")

</div>

I’m testing my CMake project (v3.16 to support at least Ubuntu 20.04 LTS and later). With QNX8, there are new warnings saying that “cc: warning - lang-c++ is deprecated”. This is documented by QNX at QNX Momentics IDE, …

---

## [CMake Environment Variables for QNX Toolchain](https://discourse.cmake.org/t/cmake-environment-variables-for-qnx-toolchain/4778)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 5\
**Last updated:** [October 6, 2024, 7:57pm UTC](https://discourse.cmake.org/t/cmake-environment-variables-for-qnx-toolchain/4778 "2024-10-06T19:57:04Z")

</div>

QNX QCC requires QNX\_HOST and QNX\_TARGET environment variables to be set. I’m leveraging CPM.cmake to pull down the respective QNX toolchain. So I end up have a toolchain file like CPMAddPackage(qnx-url@my-tag-7.0.0) …

---

## [QNX7.0 and openssl 1.1.1](https://discourse.cmake.org/t/qnx7-0-and-openssl-1-1-1/5567)

<div class="topic-metadata">

**Author:** [@georg](https://discourse.cmake.org/u/georg)\
**Replies:** 5\
**Last updated:** [May 4, 2022, 4:47pm UTC](https://discourse.cmake.org/t/qnx7-0-and-openssl-1-1-1/5567 "2022-05-04T16:47:27Z")

</div>

Hi all, QNX 7.0 by default ships with openssl 1.0.2 but allows to install openssl 1.1.1 in parallel, see this technical article: OpenSSL version 1.0.2: libcrypto.so.2 and libssl.so.2, headers under usr/include/openssl …

---

## [Compiler not including /usr/include of QNX sysroot](https://discourse.cmake.org/t/compiler-not-including-usr-include-of-qnx-sysroot/5456)

<div class="topic-metadata">

**Author:** [@Rich\_von\_Lehe](https://discourse.cmake.org/u/Rich_von_Lehe)\
**Replies:** 2\
**Last updated:** [April 12, 2022, 8:58pm UTC](https://discourse.cmake.org/t/compiler-not-including-usr-include-of-qnx-sysroot/5456 "2022-04-12T20:58:59Z")

</div>

I’m wondering if anyone else has had this problem. My compile comands get a very small subset of system include folders added from the QNX sysroot path (i.e. C:/qnx710/target/qnx7). You can see below that only the usr/…

---

## [Bad Address error during compilation](https://discourse.cmake.org/t/bad-address-error-during-compilation/3917)

<div class="topic-metadata">

**Author:** [@Santosh](https://discourse.cmake.org/u/Santosh)\
**Replies:** 5\
**Last updated:** [February 9, 2022, 7:09am UTC](https://discourse.cmake.org/t/bad-address-error-during-compilation/3917 "2022-02-09T07:09:07Z")

</div>

Hello Team Facing bad address error in CMAKE during compilation. Cmake path , version, set up and environment varaibles are proper. could you please let me know any information…

---

## [CPack Hangs When Creating a Package](https://discourse.cmake.org/t/cpack-hangs-when-creating-a-package/3372)

<div class="topic-metadata">

**Author:** [@J.Think](https://discourse.cmake.org/u/J.Think)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 5:48pm UTC](https://discourse.cmake.org/t/cpack-hangs-when-creating-a-package/3372 "2021-05-25T17:48:08Z")

</div>

I am creating a debian package for a cross-compiled library. The library is being cross-compiled for Ubuntu 16.04 (Xenial), QNX, and ROS. The library compiles without issue in each of the OS’s however, when I execute the…

---

## [Linking to a prebuilt library](https://discourse.cmake.org/t/linking-to-a-prebuilt-library/1733)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 3\
**Last updated:** [January 4, 2021, 3:20pm UTC](https://discourse.cmake.org/t/linking-to-a-prebuilt-library/1733 "2021-01-04T15:20:18Z")

</div>

I am trying to link to a specific QNX library for the architecture I’m cross compiling for. Let’s call that library foo. I have a QNX toolchain file very similar to the example in the toolchains.cmake documentation. I w…

---

## [QNX CMake Build](https://discourse.cmake.org/t/qnx-cmake-build/1309)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 5:36pm UTC](https://discourse.cmake.org/t/qnx-cmake-build/1309 "2020-07-06T17:36:07Z")

</div>

Hello, I am getting undefined errors like the following when using the qnx toolchain file from the docs (https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-qnx). qnx700/target/qnx7/u…
