AntiMicroX / antimicrox

Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support.
GNU General Public License v3.0
2.25k stars 137 forks source link

Fix CI not building with QT6 and Mingw #999

Open pktiuk opened 4 days ago

pktiuk commented 4 days ago

CI is broken for build Build / WinServer2019 MinGW QT6 Debug

Cmake is unable to get all of the QT packages


CMake Warning at C:/msys64/mingw64/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  By not providing "FindQt6GuiTools.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt6GuiTools", but CMake did not find one.

  Could not find a package configuration file provided by "Qt6GuiTools"
  (requested version 6.7.1) with any of the following names:

    Qt6GuiToolsConfig.cmake
    qt6guitools-config.cmake

  Add the installation prefix of "Qt6GuiTools" to CMAKE_PREFIX_PATH or set
  "Qt6GuiTools_DIR" to a directory containing one of the above files.  If
  "Qt6GuiTools" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6WidgetsTools/Qt6WidgetsToolsDependencies.cmake:12 (find_dependency)
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6WidgetsTools/Qt6WidgetsToolsConfig.cmake:36 (include)
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:65 (find_package)
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6Widgets/Qt6WidgetsDependencies.cmake:37 (_qt_internal_find_tool_dependencies)
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake:43 (include)
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6/Qt6Config.cmake:169 (find_package)
  CMakeLists.txt:530 (find_package)

CMake Warning at qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:65 (find_package):
  Found package configuration file:

    D:/a/antimicrox/antimicrox/qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6WidgetsTools/Qt6WidgetsToolsConfig.cmake

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

  Qt6WidgetsTools could not be found because dependency Qt6GuiTools could not
  be found.

Call Stack (most recent call first):
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6Widgets/Qt6WidgetsDependencies.cmake:37 (_qt_internal_find_tool_dependencies)
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake:43 (include)
  qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6/Qt6Config.cmake:169 (find_package)
  CMakeLists.txt:530 (find_package)

CMake Warning at qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6/Qt6Config.cmake:169 (find_package):
  Found package configuration file:

    D:/a/antimicrox/antimicrox/qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake

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

  Qt6Widgets could not be found because dependency Qt6WidgetsTools could not
  be found.

  Configuring with --debug-find-pkg=Qt6WidgetsTools 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):
  CMakeLists.txt:530 (find_package)

CMake Error at CMakeLists.txt:530 (find_package):
  Found package configuration file:

    D:/a/antimicrox/antimicrox/qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6/Qt6Config.cmake

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

  Failed to find required Qt component "Widgets".

  Expected Config file at
  "D:/a/antimicrox/antimicrox/qt/Qt/6.7.1/mingw_64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake"
  exists

Upvote & Fund

Fund with Polar

pktiuk commented 3 days ago

Linked issue: https://github.com/miurahr/aqtinstall/issues/793