-
使用 未添加到 添加到 目前只能对 xmake.lua 添加如下内容: if is_host("windows") then
add_runenvs("PATH", path.join(get_config("qt"), "bin"))
end 但是这种内容不是应该自动完成的吗Orz,毕竟windows它动态链接库挺特殊的。 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 30 replies
-
然后,现在还有另一个问题,那就是在使用 mingw 工具链使用DEBUG模式进行编译的时候,xmake 会试图链接 libQt6Guid.a、libQt6Widgetsd.a 和 libQt6Cored.a 三个文件,而这三个文件在 Qt 的 mingw64 版 SDK 下不存在,仅在 msvc2019_64 下有 Qt6Guid.lib 等文件。 |
Beta Was this translation helpful? Give feedback.
-
我翻了翻源码,在 if target:is_plat("windows") or (target:is_plat("mingw") and is_host("windows")) then
target:add("runenvs", "PATH", qt.bindir)
table.insert(qmlimportpath, qt.qmldir)
-- add targetdir in QML2_IMPORT_PATH in case of the user have qml plugins
table.insert(qmlimportpath, target:targetdir())
target:set("runenv", "QML_IMPORT_TRACE", "1")
elseif target:is_plat("msys", "cygwin") then
raise("please run `xmake f -p mingw --mingw=/mingw64` to support Qt/Mingw64 on Msys!")
end 这一段,里面确实添加了动态库路径,但是它为什么没有生效? |
Beta Was this translation helpful? Give feedback.
-
这是新版本引入的问题,看下 #3655 更新到 dev 版本 |
Beta Was this translation helpful? Give feedback.
这是新版本引入的问题,看下 #3655
更新到 dev 版本