From b7dad79533873cb1a4484e0f69fa9acae0204e66 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Thu, 12 Mar 2026 21:04:58 +0800 Subject: [PATCH] Fix OrcaSlicer_profile_validator link error with undefined nsvg symbols When ORCA_TOOLS is enabled, the profile_validator target links libslic3r which uses nsvg functions, but no translation unit in its link set defines NANOSVG_IMPLEMENTATION. Add it to the validator source file. --- src/dev-utils/OrcaSlicer_profile_validator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dev-utils/OrcaSlicer_profile_validator.cpp b/src/dev-utils/OrcaSlicer_profile_validator.cpp index f92b14637c..2f4077d59e 100644 --- a/src/dev-utils/OrcaSlicer_profile_validator.cpp +++ b/src/dev-utils/OrcaSlicer_profile_validator.cpp @@ -1,3 +1,5 @@ +#define NANOSVG_IMPLEMENTATION +#include "nanosvg/nanosvg.h" #include "libslic3r/GCode.hpp" #include "libslic3r/Preset.hpp" #include "libslic3r/Config.hpp"