Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6.2.4 on QNX710 - Qt version is not properly installed
Forum Updated to NodeBB v4.3 + New Features

Qt 6.2.4 on QNX710 - Qt version is not properly installed

Scheduled Pinned Locked Moved Solved Installation and Deployment
qnx 7.1qt 6.2.4compile
2 Posts 1 Posters 830 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    WPirkl
    wrote on 1 Apr 2022, 07:29 last edited by WPirkl 4 Jan 2022, 07:30
    #1

    Hello,

    I tried to build Qt 6.2.4, installed via qt-unified-linux-x64-4.3.0-1-online.run on Ubuntu 20.04 LTS in a Virtual Box.

    I installed Qt 6.2.4 in ~/Qt6 for Desktop gcc 64-bit and in source code.

    92e015ad-a46f-440f-b97e-7a03fd15379a-image.png

    QNX 7.1 is installed in ~/qnx710.

    I sourced qnxsdp-env.sh:

    $ . ~/qnx710/qnxsdp-env.sh
    

    I added Qt6.2.4, Ninja and CMake to PATH:

    $ epxort PATH=$PATH:~/Qt6/6.2.4/gcc_64/bin
    $ export PATH=$PATH:~/Qt6/Tools/Ninja
    $ export PATH=$PATH:~/Qt6/Tools/CMake/bin
    

    Copied the qnx.cmake example from https://doc.qt.io/qt-6/building-qt-for-qnx.html#creating-a-toolchain-file-for-qnx

    $ cat ~/cmake_support/toolchains/qnx.aarch64le.cmake 
    set(CMAKE_SYSTEM_NAME QNX)
    
    set(arch gcc_ntoarmv7le)
    
    set(CMAKE_C_COMPILER qcc)
    set(CMAKE_C_COMPILER_TARGET ${arch})
    set(CMAKE_CXX_COMPILER q++)
    set(CMAKE_CXX_COMPILER_TARGET ${arch})
    
    set(CMAKE_SYSROOT $ENV{QNX_TARGET})
    

    Created a build directory and configured qt:

    $ mkdir ~/Qt6/6.2.4/qnx_build
    $ cd ~/Qt6/6.2.4/qnx_build
    $ cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=~/cmake_support/toolchains/qnx.aarch64le.cmake -DQT_HOST_PATH=~/Qt6/6.2.4/gcc_64 -DCMAKE_INSTALL_PREFIX=~/Qt6/6.2.4/qnx ../Src
    

    Compile and install

    $ cmake --build . --parallel && cmake --install .
    

    This all went fine.

    Then I tried to add the new Qt Version to Qt Creator, but this fails with Qt version is not properly installed, please run make install.
    Details: Invalid Qt version.

    1f784bbb-84f7-4bad-9485-418f8c0441b7-image.png

    And of course, once creating a kit, it fails and can't be used.

    Any idea how to fix this?

    Thank you very much,
    Werner

    1 Reply Last reply
    0
    • W Offline
      W Offline
      WPirkl
      wrote on 8 Apr 2022, 11:25 last edited by
      #2

      The Qt version was indeed not properly installed.

      qmake expects a specific directory for target libraries

      $ ~/Qt6/6.2.4/qnx/bin/qmake -v
      QMake version 3.1
      Using Qt version 6.2.4 in /home/werner/qnx710/target/qnx7/home/werner/Qt6/6.2.4/qnx/lib
      

      So to fix QT Creator, I simply had to create a symbolic link:

      $ cd ~/qnx710/target/qnx7
      $ mkdir -p home/werner
      $ ln -s ~/Qt6 .
      
      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved