wangwenx190 / framelesshelper

Project moved to: https://github.com/stdware/qwindowkit Cross-platform window customization framework for Qt Widgets and Qt Quick. Supports Windows, Linux and macOS.
MIT License
846 stars 202 forks source link

Window10下Qt 6.5.2 MinGW编译报错 #294

Closed EveryOrigin closed 1 year ago

EveryOrigin commented 1 year ago
F:\FluentUI-File\framelesshelper\build>cmake -DCMAKE_PREFIX_PATH=F:\Qt\6.5.2\mingw_64 -DCMAKE_INSTALL_PREFIX=E:\QtProjects\FluentUI-Projects\FluTest\framelesshelper\bin -DCMAKE_BUILD_TYPE=Release -GNinja ../
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: E:/Qt/Tools/mingw1120_64/bin/gcc.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: E:/Qt/Tools/mingw1120_64/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 - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
CMake Warning (dev) at cmake/utils.cmake:2467 (message):
  generate_project_version: PROJECT_VERSION_TWEAK is not set!
Call Stack (most recent call first):
  CMakeLists.txt:200 (generate_project_version)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at cmake/utils.cmake:645 (message):
  setup_compile_params: Current toolchain is not supported.  Only LLVM-MinGW
  (https://github.com/mstorsjo/llvm-mingw) has partial support.
Call Stack (most recent call first):
  src/core/CMakeLists.txt:304 (setup_compile_params)

CMake Warning at cmake/utils.cmake:645 (message):
  setup_compile_params: Current toolchain is not supported.  Only LLVM-MinGW
  (https://github.com/mstorsjo/llvm-mingw) has partial support.
Call Stack (most recent call first):
  src/widgets/CMakeLists.txt:176 (setup_compile_params)

CMake Warning at cmake/utils.cmake:645 (message):
  setup_compile_params: Current toolchain is not supported.  Only LLVM-MinGW
  (https://github.com/mstorsjo/llvm-mingw) has partial support.
Call Stack (most recent call first):
  src/quick/CMakeLists.txt:284 (setup_compile_params)
EveryOrigin commented 1 year ago

This problem has been solved, try to replace

-DCMAKE_PREFIX_PATH=F:\Qt\6.5.2\mingw_64

to

-DQt6_DIR=F:\Qt\6.5.2\mingw_64\lib\cmake\Qt6