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

qt-cmake-standalone-test unusable for cross-compilation / QT_HOST_PATH

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10.0
    • Build System: CMake
    • None

      The script fails when configuring a test:

      CMake Error at /home/tjmaciei/src/qt/qt6/qtbase/cmake/QtPublicDependencyHelpers.cmake:287 (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):
        /home/tjmaciei/obj/qt/qt6/qtbase/lib/cmake/Qt6/Qt6Dependencies.cmake:18 (_qt_internal_setup_qt_host_path)
        /home/tjmaciei/obj/qt/qt6/qtbase/lib/cmake/Qt6/Qt6Config.cmake:181 (include)
        /home/tjmaciei/obj/qt/qt6/qtbase/lib/cmake/Qt6BuildInternals/StandaloneTests/QtBaseTestsConfig.cmake:7 (find_package)
        Main.cmake:29 (include)
        CMakeLists.txt:35 (include)
      

      And it's impossible to pass QT_HOST_PATH to it because all the arguments to the script are in turn passed to Qt6BuildInternals/QtStandaloneTestTemplateProject as variable QT_STANDALONE_TEST_PATH.

      One must run that CMake script manually.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtbuildsystem Qt Build System Team
            thiago Thiago Macieira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes