Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-113372

QT_HOST_PATH not set in SDK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 6.4.2
    • Build System
    • None
    • Yocto build for the RPi 3, using meta-qt6, custom image and app
    • Linux/Yocto

    Description

      Yocto build using meta-qt6 at tag 6.4.2 (commit eb74ffb0b0fd4e9573570a6138d207e201df49dd).

      Image definition has:

      inherit core-image features_check populate_sdk_qt6_base

      Build the SDK, install it and use it to build a Qt6-based application using CMake. The result is:

       

      [...]
      – Detecting CXX compile features - done
      CMake Error at /opt/rpi-ics/0.0/sysroots/cortexa53-poky-linux/usr/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:255 (message):
      To use a cross-compiled Qt, please set the QT_HOST_PATH cache variable to
      the location of your host Qt installation.
      Call Stack (most recent call first):
      /opt/rpi-ics/0.0/sysroots/cortexa53-poky-linux/usr/lib/cmake/Qt6/Qt6Dependencies.cmake:5 (_qt_internal_setup_qt_host_path)
      /opt/rpi-ics/0.0/sysroots/cortexa53-poky-linux/usr/lib/cmake/Qt6/Qt6Config.cmake:122 (include)
      CMakeLists.txt:55 (find_package)

       

      I would expect not needing to set up this variable myself.

      Attachments

        1. qt6.sh
          0.3 kB
        2. Qt6Toolchain.cmake
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            lisandropm Lisandro Damián Nicanor Pérez Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes