From b82162bfef229f237b8e53c65d6cf2fc03a4ade2 Mon Sep 17 00:00:00 2001 From: thysson2701 Date: Sat, 13 Jun 2026 03:54:04 +0200 Subject: [PATCH] fix(stable): wxUSE_NANOSVG=OFF gegen nsvg ODR/LNK2005 auf MSVC (wie 2.4) --- deps/wxWidgets/wxWidgets.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/wxWidgets/wxWidgets.cmake b/deps/wxWidgets/wxWidgets.cmake index bb7a2d0400b..cfe2cff5978 100644 --- a/deps/wxWidgets/wxWidgets.cmake +++ b/deps/wxWidgets/wxWidgets.cmake @@ -66,6 +66,9 @@ orcaslicer_add_cmake_project( -DwxUSE_LIBJPEG=sys -DwxUSE_LIBTIFF=OFF -DwxUSE_EXPAT=sys + # wx 3.3 bundles nanosvg; OrcaSlicer's BitmapCache also defines nsvg + # symbols -> ODR/LNK2005 on MSVC. Disable wx's copy (as in 2.4). + -DwxUSE_NANOSVG=OFF ) # wxWidgets 3.3 cmake install doesn't include private headers.