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

cross-compiled build cannot find Core tools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5, 6.7
    • Build System: CMake
    • None

    Description

      Cross-compilation build does not search Qt host tools from the configured -qt-host-path. This leads to build failure unless -DQT_FORCE_BUILD_TOOLS=TRUE is also used.

       

        find_package considered the following locations for Qt6CoreTools's Config
        module:    /home/sapiippo/boot2qt/build-raspberrypi4-64/toolchain/sysroots/x86_64-pokysdk-linux/usr/Qt6CoreToolsConfig.cmake
          /home/sapiippo/boot2qt/build-raspberrypi4-64/toolchain/sysroots/x86_64-pokysdk-linux/usr/qt6coretools-config.cmake
          /home/sapiippo/boot2qt/build-raspberrypi4-64/toolchain/sysroots/x86_64-pokysdk-linux/usr/Qt6CoreToolsConfig.cmake
          /home/sapiippo/boot2qt/build-raspberrypi4-64/toolchain/sysroots/x86_64-pokysdk-linux/usr/qt6coretools-config.cmake
          /home/sapiippo/qt6-build/target/install/lib/cmake/Qt6CoreToolsConfig.cmake
          /home/sapiippo/qt6-build/target/install/lib/cmake/qt6coretools-config.cmake
          /home/sapiippo/qt6-build/target/install/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake
          /home/sapiippo/qt6-build/target/install/lib/cmake/Qt6CoreTools/qt6coretools-config.cmake
          /home/sapiippo/qt6-build/target/install/Qt6CoreToolsConfig.cmake
          /home/sapiippo/qt6-build/target/install/qt6coretools-config.cmake
          /home/sapiippo/qt6-build/target/install/lib/cmake/Qt6CoreTools/Qt6CoreToolsConfig.cmake
          /home/sapiippo/qt6-build/target/install/lib/cmake/Qt6CoreTools/qt6coretools-config.cmake
      
        The file was not found.
      
      CMake Warning at /home/sapiippo/qt6-build/target/install/lib/cmake/Qt6/Qt6Config.cmake:174 (find_package):
        Found package configuration file:    /home/sapiippo/qt6-build/target/install/lib/cmake/Qt6Core/Qt6CoreConfig.cmake  but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be
        NOT FOUND.  Reason given by package:  Qt6Core could not be found because dependency Qt6CoreTools could not be
        found.
       

       

      Host build configured as

      ~/qt5/qtbase/configure  -prefix ~/qt6-build/host/install 

      Target build configured as

      ~/qt5/qtbase/configure -qt-host-path ../../host/install -prefix /usr/local -extprefix ~/qt6-build/target/install

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes