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

Build scripts do not look for required programs in system paths when cross-compiling on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.0 Beta4
    • Build System: CMake
    • None
    • Windows 11 21H2 beta
      Latest version of qt6 dev branch (74234e3fa48fc8f7454157556a5ea18824b31c17)
      Latest vcpkg (ef6c4faec7ebedb902628e58696108b2e9d8573a)
      CMake 3.21.2
      NDK 23.0.7599858
    • Android, Windows

    Description

      I'm building on . I did follow all the instructions in this page https://doc-snapshots.qt.io/qt6-dev/android-building.html, and although I could build the Windows version without any problem, I had 3 kinds of problems that I encountered and could subsequently fix on my machine.

      The one related to this ticket is that when cross-compiling. perl.exe (or any other required program) is not found although it is in PATH. The reason is that CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH is set to OFF.

      I could get over this problem by setting it to true before calling 

      find_program(HOST_PERL "perl" DOC "Perl binary") in qtbase/cmake/QtSyncQtHelpers.cmake

      Attachments

        1. configuration.log
          21 kB
          Ahmed Yarub Hani Al Nuaimi
        2. log.zip
          647 kB
          Ahmed Yarub Hani Al Nuaimi
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            ahmedyarub Ahmed Yarub Hani Al Nuaimi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes