From 0b69d0beca72d5db20aa6cde24aea5a7e5687f18 Mon Sep 17 00:00:00 2001 From: kellygod Date: Tue, 14 Apr 2020 12:22:19 +0800 Subject: fix LNK2019 unresolved external symbol qInitResources_xxxx --- xmake/rules/qt/qrc/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/qt/qrc/xmake.lua b/xmake/rules/qt/qrc/xmake.lua index a78d57409..b21ce0439 100644 --- a/xmake/rules/qt/qrc/xmake.lua +++ b/xmake/rules/qt/qrc/xmake.lua @@ -91,7 +91,7 @@ rule("qt.qrc") end -- compile qrc - os.vrunv(rcc, {"-name", "qml", sourcefile_qrc, "-o", sourcefile_cpp}) + os.vrunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-o", sourcefile_cpp}) -- trace if option.get("verbose") then -- cgit v1.3.1