stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
490 stars 78 forks source link

[Bug]: MSVC 2022/2019 使用 amd64_x86 模式编译会报错 #37

Closed zhiyiYo closed 6 months ago

zhiyiYo commented 7 months ago

环境信息

编译指令

cmake -B build -S . -G "Visual Studio 17 2022" -T host=x64 -A win32

报错信息

[cmake] -- Building qmsetup (Release)...
[cmake] -- Installing qmsetup (Release)...
[cmake] CMake Error at CMakeLists.txt:68 (find_package):
[cmake]   Could not find a configuration file for package "qmsetup" that is
[cmake]   compatible with requested version "".
[cmake] 
[cmake]   The following configuration files were considered but not accepted:
[cmake] 
[cmake]     D:/C++_Study/GUI/qwindowkit/build/_install/lib/cmake/qmsetup/qmsetupConfig.cmake, version: 0.0.1.5 (64bit)
[cmake] 
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
wangwenx190 commented 7 months ago

这是否是某种交叉编译模式?对于vcvarsall我只用过native环境

zhiyiYo commented 7 months ago

是的,想在64位的系统编译出32位的库

zhiyiYo commented 6 months ago

现在可以了,需要先独立交叉编译 qmsetup,然后指定 qmsetup_DIR,再交叉编译 qwk