Important: Please read the Qt Code of Conduct -

Qt on QNX Device

  • Hi,

    I am trying to run my "Qt application binary" on "QNX Device" but while running binary, it is throwing an error like "Can't access shared library".

    also, while trying to run Qt application from QNX Momentics IDE, facing error like "an internal error occurred during: Launching Qtapp.

    Qt version using : Qt 5.15.2 (open source)
    QNX Version: QNX 7.1

    Note :To deploy Qt on to QNX Board, I have followed this link : and mounted Qt over NFS.

    Can anyone suggest me, weather I'm using correct qt version (or) any mistakes in my procedure.

    Thanks in advance.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you do your mount so that the files on the target can be found in the same place as your desktop machine ?

    Do you have the equivalent of ldd to check whether the loader can find the librairies required by your application ?

  • Thanks for the reply @SGaist ,

    Yes, files on the target found in the same place as desktop.

    and I have set the library path also. But whenever I try to execute my binary, throwing an error "can't access shared library".

    also, I have doub't that, Does this Qt 5.15.2 (which is for linux machine) supports QNX? Do I need to purchase a saperate one for QNX?

    On QT website, written like Qt5 will support QNX but I'm not able to create a QNX Device Kit in Qt-creator. The warning message is "Device type is not supported".

  • Lifetime Qt Champion

    @Naga said in Qt on QNX Device:

    Do I need to purchase a saperate one for QNX?

    What library can't be accessed?

  • @jsulm ,

    While running simple hello world Qt application binary on target board, It is giving the error as "can't access shared library", but it is not specifying any libraries.

    and while trying to deploy Qt(5.15.2) from Qt-creator(5.0.0) onto target board(QNX SDP7.1) , it is giving "No deployment action necessary. Skipping."Qt_Deploy_failed.png

    While trying to add QNX device kit: showing warning message.(device type is not supported by qt version)

    So, I have mounted Qt over NFS, but showing the above said "can't acess shared library" error.

  • Lifetime Qt Champion

    @Naga Is the Qt version you're using really built for QNX?
    Can you also show the configuration of that Qt version?

  • @jsulm

    yes, I have built for QNX.

    This is the procedure I have followed:

    1. I have installed Qt 5.15.2 using this "" file.
    2. Followed this link for building Qt for QNX.

    after "source" the configure file used for build is :
    srcpath=dirname $0
    srcpath=(cd "$srcpath"; pwd)
    if [ ! -e "$configure" ]; then
    echo "$configure not found. Did you forget to run "init-repository"?" >&2
    exit 1

    mkdir -p qtbase || exit

    echo "+ cd qtbase"
    cd qtbase || exit

    echo "+ $configure -top-level $@"
    exec "$configure" -top-level "$@"

Log in to reply