fix: build error on Windows#400
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kt286 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @kt286. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1520,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
2 similar comments
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1520,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1520,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
d8a077b to
1403e97
Compare
|
Warning
详情 {
"export": {
"dtkgui.cmake": {
"b": [
" set(CMAKE_SHARED_LINKER_FLAGS \"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols\")"
]
}
}
} |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1520,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
1403e97 to
20ebe00
Compare
|
Warning
详情 {
"export": {
"dtkgui.cmake": {
"b": [
" set(CMAKE_SHARED_LINKER_FLAGS \"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols\")"
]
}
}
} |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1526,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
|
Warning
详情 {
"export": {
"dtkgui.cmake": {
"b": [
" set(CMAKE_SHARED_LINKER_FLAGS \"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols\")"
]
}
}
} |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1526,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
|
TAG Bot New tag: 6.7.46 |
- Guard Linux-only dependencies (WaylandClient, XCB, Treeland, librsvg, DConfig) behind platform checks to avoid build failures on Windows - Add LIBDTKGUISHARED_EXPORT macro with proper dllexport/dllimport for Windows, replacing Q_GUI_EXPORT and LIBDTKCORESHARED_EXPORT - Export all symbols on MinGW via --export-all-symbols linker flag - Wrap DBus calls, XCB headers, and dde-kwin-debug with Q_OS_UNIX/Q_OS_LINUX - Provide stub implementations for DPlatformWindowInterface blur and no-titlebar methods on Windows - Make librsvg optional via DTK_DISABLE_LIBRSVG - Update copyright years to 2026
a700a8e to
afae8c2
Compare
|
Warning
详情 {
"export": {
"dtkgui.cmake": {
"b": [
" set(CMAKE_SHARED_LINKER_FLAGS \"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols\")"
]
}
}
} |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1511,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
…ences on Linux dsvgrenderer.cpp checks #ifdef Q_OS_LINUX before including any Qt header, so the Q_OS_LINUX macro (defined in qglobal.h) is never evaluated, causing the entire file to be preprocessed away and leaving DSvgRenderer symbols undefined at link time.
|
Warning
详情 {
"export": {
"dtkgui.cmake": {
"b": [
" set(CMAKE_SHARED_LINKER_FLAGS \"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols\")"
]
}
}
} |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1511,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
| bool DPlatformWindowInterface::enableBlurWindow() const | ||
| { | ||
| #ifdef Q_OS_WIN | ||
| return m_enableBlurWindow; |
| #if defined(DTK_STATIC_LIB) | ||
| # define LIBDTKGUISHARED_EXPORT | ||
| #elif defined(LIBDTKGUI_LIBRARY) | ||
| # define LIBDTKGUISHARED_EXPORT Q_DECL_EXPORT | ||
| #else | ||
| # define LIBDTKGUISHARED_EXPORT Q_DECL_IMPORT | ||
| #endif |
There was a problem hiding this comment.
我觉得不block本PR,不过这个是不是后续用CMake的generate_export_header好一点?
- Conditionally compile DConfig code behind D_DISABLE_DCONFIG macro with DTK_DCONFIG_PTR abstraction for MSYS2/Windows builds - Remove duplicate QDBus, QDir, QLockFile, QDirIterator, and DPathBuf includes in dguiapplicationhelper.cpp
|
Warning
详情 {
"export": {
"dtkgui.cmake": {
"b": [
" set(CMAKE_SHARED_LINKER_FLAGS \"${CMAKE_SHARED_LINKER_FLAGS} -Wl,--export-all-symbols\")"
]
}
}
} |
|
Note
详情{
"src/kernel/dguiapplicationhelper.cpp": [
{
"line": " QString socket_key = \"_d_dtk_single_instance_\";",
"line_number": 1511,
"rule": "S106",
"reason": "Var naming | 2ad926d35b"
}
]
} |
fix build error on Windows