Skip to content

MSYS2 CMake配置过程无法进行 #195

Description

@zxunge

我将QWK作为自己一个项目的子项目,像这样:

set(QWINDOWKIT_BUILD_EXAMPLES OFF CACHE BOOL "")
set(QWINDOWKIT_BUILD_STATIC ON CACHE BOOL "")

add_subdirectory(qwindowkit)
add_subdirectory(qwindowkit/examples/shared/widgetframe)

然后在GitHub Action的Ubuntu Linux上这顺利通过了整个构建过程。但是拿到GitHub Action的MSYS2环境中后,CMake报错:

-- Building for: Ninja
-- The C compiler identification is Clang 20.1.8
-- The CXX compiler identification is Clang 20.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/msys64/clang64/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:/msys64/clang64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found WrapVulkanHeaders: D:/msys64/clang64/include
-- Qt GUI is enabled.
-- Configuring qmsetup...
-- Building qmsetup (Release)...
-- Installing qmsetup (Release)...
CMake Error at src/3rdparty/qwindowkit/CMakeLists.txt:116 (find_package):
  Could not find a package configuration file provided by "qmsetup" with any
  of the following names:

    qmsetupConfig.cmake
    qmsetup-config.cmake

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


-- Configuring incomplete, errors occurred!

不知道为什么。。。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions