From 07fbb1f7f5c1fae6c229115893e8438a4409ce44 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 27 Aug 2024 09:20:53 +0200 Subject: [PATCH] Fix missing BOOST_LOG_TRIVIAL declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /run/build/BambuStudio/src/libslic3r/Flow.cpp: In static member function ‘static float Slic3r::Flow::rounded_rectangle_extrusion_spacing(float, float)’: /run/build/BambuStudio/src/libslic3r/Flow.cpp:194:27: error: ‘error’ was not declared in this scope; did you mean ‘nlohmann::detail::cbor_tag_handler_t::error’? 194 | BOOST_LOG_TRIVIAL(error)<< __FUNCTION__ << boost::format("negative extrusion : width %1% height %2%") % width % height; | ^~~~~ | nlohmann::detail::cbor_tag_handler_t::error --- src/libslic3r/Flow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libslic3r/Flow.cpp b/src/libslic3r/Flow.cpp index 97b3c1427..b7edb0f55 100644 --- a/src/libslic3r/Flow.cpp +++ b/src/libslic3r/Flow.cpp @@ -5,6 +5,7 @@ #include #include +#include // Mark string for localization and translate. #define L(s) Slic3r::I18N::translate(s)