Skip to content
@qnx-ports

qnx-ports

QNX Ports

This group contains repositories for open-source projects that have been ported to run on QNX. Most projects have minimal changes from their upstream origin; however, some projects may deviate more to make sure they work with some dependency or architectural difference in the QNX OS.

Working with QNX ports

To use a ported project in your own development, you can clone the port repo and build it yourself using your QNX software development environment. (If you are not yet set up for QNX development, get started for free in minutes at https://www.qnx.com/getqnx.) All of the projects here should be kept in a working state, meaning they build for the target QNX version(s), have available tests, and are operational when used.

While every open-source module has its own build process, the high-level steps remain relatively consistent. For instructions specific to a port, please look in that port's directory in the Build Files repo above for a README.md file.

Docker-based build environment

When you're trying to build multiple QNX projects (demo apps, QNX ports, and your own programs), it can be challenging to maintain a perfect development environment with all of the right dependencies available. This open-source Docker-based build environment aims to simplify building projects by helping you to create a clean and consistent build environment on your host.

The Dockerfile creates an Ubuntu container and pre-installs many common dependencies needed for project building. It also mounts your home directory into the container so folders such as your QNX license and SDP installation (~/.qnx and ~/qnx800 by default), plus any projects you are building, will be available to the build environment in the container. (If your QNX installation location is customized, you may wish to edit docker-create-container.sh to mount a more appropriate directory.)

Feel free to modify the Dockerfile and scripts for your own usage, and please consider contributing suggested changes or issues to this repo for the benefit of others in the community!

Docker build pre-requisites

Before starting:

  1. Install Docker: https://docs.docker.com/engine/install/ubuntu/
  2. If on Linux, make sure to complete the post-installation steps: https://docs.docker.com/engine/install/linux-postinstall/

Build examples

Build example for SDP 8.0 using Docker

These instructions demonstrate the process for building an open-source port, using a Docker-based build environment, to run on QNX 8.0. This example assumes a you wish to compile the mosquitto MQTT broker for use on QNX SDP 8.0:

  1. Create a workspace and clone the Build Files repo:
mkdir -p ~/qnx_workspace && cd ~/qnx_workspace
git clone https://github.com/qnx-ports/build-files.git && cd build-files/docker
  1. Use the included helper scripts to build and start a QNX build environment container with Docker:
./docker-build-qnx-image.sh
./docker-create-container.sh

Note: the Docker container sources qnxsdp-env.sh for you, so you do not need to run it again when building your projects.

  1. Clone the mosquitto port repository into your workspace:
cd ~/qnx_workspace
git clone https://github.com/qnx-ports/mosquitto.git
  1. Start the build:
BUILD_TESTING=ON QNX_PROJECT_ROOT="$(pwd)/mosquitto" make -C ./build-files/ports/mosquitto install -j$(nproc)
  1. When you are finished, exit the Docker container:
exit

Note: If you deactivate a Python virtual environment in the Docker container, the PATH variable may be reset causing the QNX paths to be not found. You can correct this by reactivating the QNX environment script: source ~/qnx800/qnxsdp-env.sh.

Build example for SDP 8.0 natively

These instructions demonstrate the process for building an open-source port, directly on an Ubuntu development host. This example assumes a you wish to compile the mosquitto MQTT broker for use on QNX SDP 8.0:

  1. Clone the mosquitto port repository into your workspace:
git clone https://github.com/qnx-ports/build-files.git
git clone https://github.com/qnx-ports/mosquitto.git
  1. Activate the QNX toolchain:
source ~/qnx800/qnxsdp-env.sh
  1. Start the build:
BUILD_TESTING=ON QNX_PROJECT_ROOT="$(pwd)/mosquitto" make -C ./build-files/ports/mosquitto install -j$(nproc)

Note: If you deactivate a Python virtual environment in the Docker container, the PATH variable may be reset causing the QNX paths to be not found. You can correct this by reactivating the QNX environment script: source ~/qnx800/qnxsdp-env.sh.

Get support

The community is ready to help with your questions and issues! For any questions, please feel free to:

  • Create an Issue or search existing Issues in the Issues section of a repo
  • Ask your question with QNX tag on Stack Overflow
  • Post to the community on Reddit at r/qnx

Pinned Loading

  1. build-files build-files Public

    Shell 5

Repositories

Showing 10 of 38 repositories
  • qnx-ports/build-files’s past year of commit activity
    Shell 5 0 0 0 Updated Nov 22, 2024
  • c-ares Public Forked from c-ares/c-ares

    A C library for asynchronous DNS requests

    qnx-ports/c-ares’s past year of commit activity
    C 0 673 0 0 Updated Nov 22, 2024
  • vsomeip Public Forked from COVESA/vsomeip

    An implementation of Scalable service-Oriented MiddlewarE over IP

    qnx-ports/vsomeip’s past year of commit activity
    C++ 0 MPL-2.0 706 0 0 Updated Nov 22, 2024
  • ruy Public Forked from google/ruy
    qnx-ports/ruy’s past year of commit activity
    C++ 0 Apache-2.0 87 0 0 Updated Nov 21, 2024
  • cJSON Public Forked from DaveGamble/cJSON

    Ultralightweight JSON parser in ANSI C. Supports QNX 7.1 and 8.0.

    qnx-ports/cJSON’s past year of commit activity
    C 0 MIT 3,281 0 0 Updated Nov 20, 2024
  • Fast-CDR Public Forked from eProsima/Fast-CDR

    eProsima FastCDR library provides two serialization mechanisms. One is the standard CDR serialization mechanism, while the other is a faster implementation of it. Looking for commercial support? Contact [email protected]

    qnx-ports/Fast-CDR’s past year of commit activity
    C++ 0 Apache-2.0 105 0 0 Updated Nov 19, 2024
  • memory Public Forked from foonathan/memory

    STL compatible C++ memory allocator library using a new RawAllocator concept that is similar to an Allocator but easier to use and write.

    qnx-ports/memory’s past year of commit activity
    C++ 0 Zlib 197 0 0 Updated Nov 15, 2024
  • mosquitto Public Forked from eclipse-mosquitto/mosquitto

    Eclipse Mosquitto - An open source MQTT broker

    qnx-ports/mosquitto’s past year of commit activity
    C 0 2,426 0 0 Updated Nov 14, 2024
  • pandas Public Forked from pandas-dev/pandas

    Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

    qnx-ports/pandas’s past year of commit activity
    Python 0 BSD-3-Clause 18,231 0 0 Updated Nov 13, 2024
  • azure-iot-sdk-c Public Forked from Azure/azure-iot-sdk-c

    A C99 SDK for connecting devices to Microsoft Azure IoT services

    qnx-ports/azure-iot-sdk-c’s past year of commit activity
    C 0 757 0 0 Updated Nov 11, 2024

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…