You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
使用命令配合qt sdk 目录为x86 qt
xmake f --qt=D:/qt/5.15.2/msvc2019
xmake g --qt=D:/qt/5.15.2/msvc2019
执行 x86 build
报错 Qt SDK not found!
然后会自动执行 x64 build
会提示找到qt sdk checking for Qt SDK version ... 5.15.2
target("mianmail")
add_rules("qt.widgetapp")
add_headerfiles("src/.h")
add_files("src/.cpp")
add_files("src/mainwindow.ui")
-- add files with Q_OBJECT meta (only for qt.moc)
add_files("src/mainwindow.h")
附加信息和错误日志
正在执行任务: xmake f -p windows -a x86 -m debug
checking for Microsoft Visual Studio (x86) version ... 2022
checking for Microsoft C/C++ Compiler (x86) version ... 19.42.34321.1
checking for Qt SDK directory ... no
error: Qt SDK not found!
终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command xmake f -p windows -a x86 -m debug”已终止,退出代码: 1。
终端将被任务重用,按任意键关闭。
正在执行任务: xmake
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.42.34321.1
checking for Qt SDK directory ... D:/qt/5.15.2/msvc2019
checking for Qt SDK version ... 5.15.2
[ 28%]: compiling.qt.ui src\mainwindow.ui
[ 42%]: compiling.qt.moc src\mainwindow.h
[ 57%]: compiling.release src\main.cpp
[ 71%]: compiling.release src\mainwindow.cpp
The text was updated successfully, but these errors were encountered:
Xmake 版本
2.9.7
操作系统版本和架构
windows 11 24h2
描述问题
使用命令配合qt sdk 目录为x86 qt
xmake f --qt=D:/qt/5.15.2/msvc2019
xmake g --qt=D:/qt/5.15.2/msvc2019
执行 x86 build
报错 Qt SDK not found!
然后会自动执行 x64 build
会提示找到qt sdk checking for Qt SDK version ... 5.15.2
qt是86的 ,后续执行的build会爆
D:\qt\5.15.2\msvc2019\lib\Qt5Gui.lib : warning LNK4272:库计算机类型“x86”与目标计算机类型“x64”冲突
期待的结果
在x86下能检测到 qt sdk
工程配置
add_rules("mode.debug", "mode.release")
target("mianmail")
add_rules("qt.widgetapp")
add_headerfiles("src/.h")
add_files("src/.cpp")
add_files("src/mainwindow.ui")
-- add files with Q_OBJECT meta (only for qt.moc)
add_files("src/mainwindow.h")
附加信息和错误日志
checking for Microsoft Visual Studio (x86) version ... 2022
checking for Microsoft C/C++ Compiler (x86) version ... 19.42.34321.1
checking for Qt SDK directory ... no
error: Qt SDK not found!
终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command xmake f -p windows -a x86 -m debug”已终止,退出代码: 1。
终端将被任务重用,按任意键关闭。
正在执行任务: xmake
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.42.34321.1
checking for Qt SDK directory ... D:/qt/5.15.2/msvc2019
checking for Qt SDK version ... 5.15.2
[ 28%]: compiling.qt.ui src\mainwindow.ui
[ 42%]: compiling.qt.moc src\mainwindow.h
[ 57%]: compiling.release src\main.cpp
[ 71%]: compiling.release src\mainwindow.cpp
The text was updated successfully, but these errors were encountered: