Skip to content

GitHub Runner: Windows builds fail after Qt5 to Qt6 transition #437

@Ho-Ro

Description

@Ho-Ro

After switching from Qt5 to Qt6, both Windows builds fail.
I don't use Windows and don't have time to set up a VM to debug the build process.
Therefore, no Windows packages are currently being created until a volunteer solves the problem.

See the logs for both failing Win builds:

windows-msvc_x64

Error messages: windows-msvc_x64
Run md build & call "%VCINSTALLDIR%/Auxiliary/Build/vcvars64.bat" & cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_PREFIX_PATH=%Qt6_DIR% -DCMAKE_BUILD_TYPE=Release -Bbuild
  md build & call "%VCINSTALLDIR%/Auxiliary/Build/vcvars64.bat" & cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_PREFIX_PATH=%Qt6_DIR% -DCMAKE_BUILD_TYPE=Release -Bbuild
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    BUILD_TYPE: Release
    pythonLocation: C:\hostedtoolcache\windows\Python\3.11.9\x64
    PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.11.9\x64/lib/pkgconfig
    Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.11.9\x64
    Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.11.9\x64
    Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.11.9\x64
    Qt5_Dir: D:\a\OpenHantek6022\Qt\5.15.2\msvc2019_64
    QT_PLUGIN_PATH: D:\a\OpenHantek6022\Qt\5.15.2\msvc2019_64\plugins
    QML2_IMPORT_PATH: D:\a\OpenHantek6022\Qt\5.15.2\msvc2019_64\qml

Id     Name            PSJobTypeName   State         HasMoreData     Location             Command
--     ----            -------------   -----         -----------     --------             -------
1      Job1            BackgroundJob   Running       True            localhost            md build
3      Job3            BackgroundJob   Running       True            localhost            call "%VCINSTALLDIR%/Aux…
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.20348.
-- The C compiler identification is MSVC 19.44.35215.0
-- The CXX compiler identification is MSVC 19.44.35215.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/bin/git.exe (found version "2.51.0.windows.1")
?? aqtinstall.log
-- PACKAGE_VERSION: 3.4.0-3-ga591a6e
-- COMPILE_OPTIONS: /W4;/D_CRT_SECURE_NO_WARNINGS;/DNOMINMAX
-- COMPILE_DEFINITIONS: _GLIBCXX_ASSERTIONS;_USE_MATH_DEFINES;VERSION="3.4.0-3-ga591a6e"
CMake Error at openhantek/CMakeLists.txt:12 (find_package):
  By not providing "FindQt6PrintSupport.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt6PrintSupport", but CMake did not find one.

  Could not find a package configuration file provided by "Qt6PrintSupport"
  with any of the following names:

    Qt6PrintSupportConfig.cmake
    qt6printsupport-config.cmake

  Add the installation prefix of "Qt6PrintSupport" to CMAKE_PREFIX_PATH or
  set "Qt6PrintSupport_DIR" to a directory containing one of the above files.
  If "Qt6PrintSupport" provides a separate development package or SDK, be
  sure it has been installed.


-- Configuring incomplete, errors occurred!

Error: Process completed with exit code 1.

windows-mingw_w64

Error messages: windows-mingw_w64
Run cmake -D CMAKE_PREFIX_PATH=/mingw64/qt6-static -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build
  cmake -D CMAKE_PREFIX_PATH=/mingw64/qt6-static -D CMAKE_BUILD_TYPE=$BUILD_TYPE -B build
  cmake --build build --parallel 8 --target package
  shell: D:\a\_temp\setup-msys2\msys2.CMD {0}
  env:
    BUILD_TYPE: Release
    MSYSTEM: MINGW64
-- Building for: Ninja
-- The C compiler identification is GNU 15.2.0
-- The CXX compiler identification is GNU 15.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/a/_temp/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/a/_temp/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.51.0.windows.1")
-- PACKAGE_VERSION: 3.4.0-3-ga591a6e
-- COMPILE_OPTIONS: -Wall;-Wextra;-pedantic;-Wno-psabi
-- COMPILE_DEFINITIONS: _GLIBCXX_ASSERTIONS;_USE_MATH_DEFINES;VERSION="3.4.0-3-ga591a6e"
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found ZLIB: D:/a/_temp/msys64/mingw64/lib/libz.a (found version "1.3.1")
-- Found WrapSystemZLIB: TRUE (found version "1.3.1")
-- Using system ZLIB.
-- Found WrapZLIB: TRUE (found version "1.3.1")
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Checking for module 'libb2'
--   Found libb2, version 0.98.1
-- Could NOT find WrapSystemPCRE2 (missing: PCRE2_LIBRARIES PCRE2_INCLUDE_DIRS __pcre2_found) 
CMake Warning at D:/a/_temp/msys64/mingw64/share/cmake/Modules/CMakeFindDependencyMacro.cmake:78 (find_package):
  Found package configuration file:

    D:/a/_temp/msys64/mingw64/qt6-static/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 WrapPCRE2 could not be found.

  Configuring with --debug-find-pkg=WrapPCRE2 might reveal details why the
  package was not found.

  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
  of the path variables that find_package uses to try and find the package.

Call Stack (most recent call first):
  D:/a/_temp/msys64/mingw64/qt6-static/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:137 (find_dependency)
  D:/a/_temp/msys64/mingw64/qt6-static/lib/cmake/Qt6PrintSupport/Qt6PrintSupportDependencies.cmake:45 (_qt_internal_find_qt_dependencies)
  D:/a/_temp/msys64/mingw64/qt6-static/lib/cmake/Qt6PrintSupport/Qt6PrintSupportConfig.cmake:43 (include)
  openhantek/CMakeLists.txt:12 (find_package)


CMake Error at openhantek/CMakeLists.txt:12 (find_package):
  Found package configuration file:

    D:/a/_temp/msys64/mingw64/qt6-static/lib/cmake/Qt6PrintSupport/Qt6PrintSupportConfig.cmake

  but it set Qt6PrintSupport_FOUND to FALSE so package "Qt6PrintSupport" is
  considered to be NOT FOUND.  Reason given by package:

  Qt6PrintSupport could not be found because dependency Qt6Core could not be
  found.

  Configuring with --debug-find-pkg=Qt6Core might reveal details why the
  package was not found.

  Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some
  of the path variables that find_package uses to try and find the package.



-- Configuring incomplete, errors occurred!
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GitHubGitHub or development process relatedVolunteers wantedNO SUPPORT unless someone wants to help!WindowsWindows related, WONTFIX unless a volunteer steps in

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions