Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

依赖Qt的相关包在链接时引入release版本Qt库 #5190

Open
Trzeth opened this issue Sep 9, 2024 · 3 comments
Open

依赖Qt的相关包在链接时引入release版本Qt库 #5190

Trzeth opened this issue Sep 9, 2024 · 3 comments
Labels

Comments

@Trzeth
Copy link

Trzeth commented Sep 9, 2024

Xmake 版本

2.9.4

操作系统版本和架构

Window

描述问题

依赖Qt的相关包,qwindowkit
在编译debug版本的Qt项目时
会引入release版本Qt库

期待的结果

正常工作

工程配置

qt 5.15.2

target("Clock")
add_rules("qt.widgetapp")

add_packages("qwindowkit")

add_frameworks("QtCore","QtGui","QtWidgets")

add_includedirs(".")

add_files("*.cpp")
add_files("*.h")

附加信息和错误日志

linking.debug Clock.exe
"E:\Software\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX64\x64\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 -libpath:E:\Software\xmake.xmake\packages\q\qwindowkit\2024.09.02\2b7722dab97c47278db9f62c6b6f590f\lib -libpath:E:\Software\Qt\5.15.2\msvc2019_64\lib -debug -pdb:build\windows\x64\debug\Clock.pdb QWKCored.lib QWKWidgetsd.lib Qt5Gui.lib Qt5Core.lib Qt5Guid.lib Qt5Widgetsd.lib Qt5Cored.lib qtfreetyped.lib qtlibpngd.lib qtmaind.lib ws2_32.lib gdi32.lib ole32.lib advapi32.lib shell32.lib user32.ls\Clock\windows\x64\debug\main.cpp.obj build.objs\Clock\windows\x64\debug\mainwindow.cpp.obj build.objs\Clock\windows\x64\debug\widgetfrainwindow.cpp.obj build.objs\Clock\windows\x64\debug\gens\widgetframe\moc_windowbar.cpp.obj build.objs\Clock\windows\x64\debug\gens\widgetframe\moc_windowbar_p.cpp.obj build.objs\Clock\windows\x64\debug\gens\widgetframe\moc_windowbutton.cpp.obj build.objs\Clock\windows\x64\debug\gens\widgetframe\moc_windowbutton_p.cpp.obj build.objs\Clock\windows\x64\debug\gens\rules\qt\qrc\mainwindow_C048372E.cpp.obj build.objs\Clock\windows\x64\debug\gens\rules\qt\qrc\shared_91112E36.cpp.obj

@Trzeth Trzeth added the bug label Sep 9, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Related packages that depend on Qt will introduce the release version of the Qt library when linking

@star-hengxing
Copy link
Contributor

release qt lib 来自于 qwindowkit deps(qt6gui)
debug qt lib 来自于 add_frameworks("QtCore","QtGui","QtWidgets") (xmake 的 qt rule 根据 mode 进行处理)

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


release qt lib comes from qwindowkit deps(qt6gui)
debug qt lib comes from add_frameworks("QtCore","QtGui","QtWidgets") (xmake's qt rule is processed according to mode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants