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

[Qt 6.8.0 beta3] Cannot do a crossbuild for QNX 7.1.0 on Windows

    XMLWordPrintable

Details

    Description

      When trying to configure QNX 7.1 on Windows against Qt 6.8.0 beta3 msvc (or mingw) binaries with:

       C:\Users\qt\RTA\Qt_6.8.0\6.8.0\Src\configure
       -no-pch -no-dbus -skip qtapplicationmanager -skip qtprotobuf 
      -qt-host-path C:\Users\qt\RTA\Qt_6.8.0\6.8.0\msvc2022_64 -extprefix 
      C:\Users\qt\RTA\qnx_mount -prefix /qt -- 
      -DCMAKE_TOOLCHAIN_FILE=C:\Users\qt\RTA\Qt_6.8.0\6.8.0\Src\coin\provisioning\common\shared\cmake_toolchain_files\qnx-toolchain-aarch64le.cmake
       -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE

      It fails with:

       -- Could 
      NOT find Clang (missing: Clang_DIR)
      -- Could NOT find Clang (missing: Clang_DIR)
      -- Configuring submodule 'qtwebengine'
      -- Configuring submodule 'qtdoc'
      -- Configuring submodule 'qtgrpc'
      CMake Warning at qtgrpc/src/tools/host/CMakeLists.txt:20 (find_package):
        Found package configuration file:
      
          
      C:/Users/qt/RTA/Qt_6.8.0/6.8.0/msvc2022_64/lib/cmake/Qt6ProtobufTools/Qt6ProtobufToolsConfig.cmake
      
        but it set Qt6ProtobufTools_FOUND to FALSE so package 
      "Qt6ProtobufTools" is
        considered to be NOT FOUND.  Reason given by package:
      
        Qt6ProtobufTools could not be found because dependency WrapProtoc 
      could not
        be found.
      
      
      
      CMake Warning at qtgrpc/src/tools/host/CMakeLists.txt:28 (find_package):
        Found package configuration file:
      
          
      C:/Users/qt/RTA/Qt_6.8.0/6.8.0/msvc2022_64/lib/cmake/Qt6GrpcTools/Qt6GrpcToolsConfig.cmake
      
        but it set Qt6GrpcTools_FOUND to FALSE so package "Qt6GrpcTools" is
        considered to be NOT FOUND.  Reason given by package:
      
        Qt6GrpcTools could not be found because dependency WrapProtoc could 
      not be
        found.
      
      
      
      CMake Warning at qtbase/cmake/QtToolHelpers.cmake:709 (find_package):
        Found package configuration file:
      
          
      C:/Users/qt/RTA/Qt_6.8.0/6.8.0/msvc2022_64/lib/cmake/Qt6ProtobufTools/Qt6ProtobufToolsConfig.cmake
      
        but it set Qt6ProtobufTools_FOUND to FALSE so package 
      "Qt6ProtobufTools" is
        considered to be NOT FOUND.  Reason given by package:
      
        Qt6ProtobufTools could not be found because dependency WrapProtoc 
      could not
        be found.
      
      Call Stack (most recent call first):
        qtbase/cmake/QtToolHelpers.cmake:78 (qt_internal_find_tool)
        qtgrpc/src/tools/qtprotobufgen/CMakeLists.txt:5 (qt_internal_add_tool)
      
      
      CMake Error at qtbase/cmake/QtToolHelpers.cmake:752 (message):
        Failed to find the host tool "Qt6::qtprotobufgen".  It is part of the
        Qt6ProtobufTools package, but the package could not be found.  Make 
      sure
        you have built and installed the host Protobuf module, which will 
      ensure
        the creation of the Qt6ProtobufTools package.
      Call Stack (most recent call first):
        qtbase/cmake/QtToolHelpers.cmake:78 (qt_internal_find_tool)
        qtgrpc/src/tools/qtprotobufgen/CMakeLists.txt:5 (qt_internal_add_tool)
      
      
      -- Configuring incomplete, errors occurred!
      CMake Error at 
      C:/Users/qt/RTA/Qt_6.8.0/6.8.0/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:1131
       (message):
        CMake exited with code 1.
      
      
      CMake Error at 
      C:/Users/qt/RTA/Qt_6.8.0/6.8.0/Src/cmake/QtIRProcessHelpers.cmake:173 
      (message):
        C:\Users\qt\RTA\Qt_6.8.0\6.8.0\Src/qtbase/configure.bat -top-level 
      -no-pch
        -no-dbus -skip qtapplicationmanager -skip qtprotobuf -qt-host-path
        C:\Users\qt\RTA\Qt_6.8.0\6.8.0\msvc2022_64 -extprefix
        C:\Users\qt\RTA\qnx_mount -prefix /qt --
        
      -DCMAKE_TOOLCHAIN_FILE=C:\Users\qt\RTA\Qt_6.8.0\6.8.0\Src\coin\provisioning\common\shared\cmake_toolchain_files\qnx-toolchain-aarch64le.cmake
        -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE exited with status: 1
      
      Call Stack (most recent call first):
        C:/Users/qt/RTA/Qt_6.8.0/6.8.0/Src/cmake/QtTopLevelHelpers.cmake:35 
      (qt_ir_execute_process_and_log_and_handle_error)
        C:/Users/qt/RTA/Qt_6.8.0/6.8.0/Src/cmake/QtTopLevelHelpers.cmake:57 
      (qt_tl_run_toplevel_configure)
        
      C:/Users/qt/RTA/Qt_6.8.0/6.8.0/Src/cmake/QtTopLevelConfigureScript.cmake:17
       (qt_tl_run_main_script)
      
      
      ninja: error: loading 'build.ninja': The system cannot find the file 
      specified.
      

      Note that in configure protobuf is skipped.

      Failed the same way with Qt 6.8.0 beta2, but crossbuild works with Qt 6.7.2.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes