build: add the missing includes only a Windows build reports (#16110)

This commit is contained in:
Kris Austin
2026-10-05 21:49:32 -03:00
committed by GitHub
parent 2bd868ecd0
commit 9f9412979d
64 changed files with 110 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@ CheckOptions:
termios\.h;
[/\\](um|shared)[/\\].*;
sal\.h;
tchar\.h;
clipper[/\\]clipper\.hpp;
png(lib)?conf\.h;
mcut[/\\]platform\.h;
+2
View File
@@ -153,6 +153,8 @@ using namespace nlohmann;
#include "slic3r/GUI/GUI_ObjectList.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/Jobs/SendJob.hpp"
#include <boost/nowide/convert.hpp>
#include <stdio.h>
namespace fs = boost::filesystem;
+1
View File
@@ -35,6 +35,7 @@ extern "C"
#include <boost/algorithm/string/classification.hpp>
#include <stdio.h>
#include <boost/algorithm/string/constants.hpp>
#ifdef SLIC3R_GUI
class OpenGLVersionCheck
+8
View File
@@ -11,6 +11,14 @@
#include "git_commit_hash.h"
#include "libslic3r_version.h"
#include "StackWalker.h"
#include <algorithm>
#include <atomic>
#include <boost/nowide/fstream.hpp>
#include <cstdarg>
#include <cstddef>
#include <ctime>
#include <excpt.h>
static std::string g_log_folder;
static std::atomic<int> g_crash_log_count = 0;
+2
View File
@@ -3,6 +3,8 @@
#include <boost/nowide/fstream.hpp>
#include "StackWalker.h"
#include <eh.h>
#include <cstddef>
#include <string>
class CBaseException : public CStackWalker
{
+3
View File
@@ -2,6 +2,9 @@
#include <strsafe.h>
//#include <atlconv.h>
#include <dbghelp.h>
#include <cstdarg>
#include <cstddef>
#include <cstring>
#pragma comment(lib, "version.lib")
#pragma comment( lib, "dbghelp.lib" )
+1
View File
@@ -2,6 +2,7 @@
#include <Windows.h>
#include <tchar.h>
#include <vector>
#include <cstddef>
namespace textconv_helper
{
+3
View File
@@ -42,6 +42,9 @@
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <cassert>
#include <iterator>
#include <string_view>
#ifdef WIN32
//FIXME replace the two following includes with <boost/md5.hpp> after it becomes mainstream.
@@ -3,6 +3,9 @@
#include <cstdio>
#include <boost/filesystem/path.hpp>
#include <boost/nowide/convert.hpp>
#include <algorithm>
#include <string>
#include <vector>
#ifdef WIN32
#include <psapi.h>
+1
View File
@@ -43,6 +43,7 @@
#include "libslic3r/AABBTreeLines.hpp" // search structure for found close points
#include "libslic3r/Line.hpp"
#include "libslic3r/BoundingBox.hpp"
#include <sstream>
// Experimentaly suggested ration of font ascent by multiple fonts
// to get approx center of normal text line
@@ -28,6 +28,7 @@
#include "FuzzySkin.hpp"
#include "libnoise/noise.h"
#include <functional>
// #define DEBUG_FUZZY
+1
View File
@@ -119,6 +119,7 @@
#endif
#include <Shiny/Shiny.h>
#include <stdio.h>
using namespace std::literals::string_view_literals;
+1
View File
@@ -12,6 +12,7 @@
#include <boost/filesystem.hpp>
#include <boost/log/trivial.hpp>
#include <boost/nowide/fstream.hpp>
#include <ios>
#ifdef _WIN32
#include <boost/interprocess/sync/file_lock.hpp>
#include <boost/nowide/convert.hpp>
+1
View File
@@ -12,6 +12,7 @@
#include <system_error>
#include <fast_float/fast_float.h>
#include <clocale>
// Defined where the floating point std::to_chars can be called, which with Apple's libc++ runtime is from macOS 13.3.
#if defined(_LIBCPP_VERSION)
+1
View File
@@ -22,6 +22,7 @@
#include <tbb/task_arena.h>
#include "Thread.hpp"
#include <cstring>
namespace Slic3r {
+1
View File
@@ -119,6 +119,7 @@
// We are using quite an old TBB 2017 U7, which does not support global control API officially.
// Before we update our build servers, let's use the old API, which is deprecated in up to date TBB.
#include <tbb/tbb.h>
#include <string.h>
namespace boost::posix_time { class ptime; }
#if ! defined(TBB_VERSION_MAJOR)
+2
View File
@@ -65,6 +65,8 @@
#include "Widgets/Label.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/Plater.hpp"
#include <wx/dcgraph.h>
#include <wx/dcmemory.h>
namespace fs = boost::filesystem;
@@ -60,6 +60,9 @@
#include "libslic3r/PresetBundle.hpp"
#include "slic3r/GUI/PartPlate.hpp"
#include "slic3r/Utils/PrintHost.hpp"
#ifdef _WIN32
#include <excpt.h>
#endif
namespace Slic3r {
+1
View File
@@ -40,6 +40,7 @@
#include "GUI.hpp"
#include "wxExtensions.hpp"
#include "Widgets/Button.hpp"
#include <wx/types.h>
namespace fs = boost::filesystem;
+1
View File
@@ -22,6 +22,7 @@
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/Gizmos/GLGizmoBase.hpp"
#include <wx/arrstr.h>
#include <wx/string.h>
namespace Slic3r {
namespace GUI {
+1
View File
@@ -22,6 +22,7 @@
#include <wx/event.h>
#include "slic3r/GUI/GUI_App.hpp"
#include "slic3r/GUI/Widgets/DropDown.hpp"
#include <wx/dvrenderers.h>
#ifdef wxHAS_GENERIC_DATAVIEWCTRL
#include "wx/generic/private/markuptext.h"
#include "wx/generic/private/rowheightcache.h"
+1
View File
@@ -81,6 +81,7 @@
#include "../Utils/ColorSpaceConvert.hpp"
#include "../Utils/NetworkAgentFactory.hpp"
#include <wx/sizer.h>
#ifdef __WXOSX__
#define wxOSX true
#else
+1
View File
@@ -34,6 +34,7 @@
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/button.h>
#include <cstddef>
#ifdef _WIN32
#include <windows.h>
+6
View File
@@ -255,6 +255,11 @@
#include "slic3r/GUI/wxExtensions.hpp"
#include "slic3r/plugin/host/PluginPages.hpp"
#include <wx/defs.h>
#include "slic3r/GUI/Widgets/WebView.hpp"
#include <cwchar>
#include <wx/dataview.h>
#include <wx/itemattr.h>
#include <wx/version.h>
//#ifdef WIN32
//#include "BaseException.h"
@@ -283,6 +288,7 @@ typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS2)(
#endif
#ifdef _WIN32
#include <boost/dll/runtime_symbol_info.hpp>
#include <direct.h>
#endif
#ifdef WIN32
@@ -57,6 +57,7 @@
#include "slic3r/GUI/Gizmos/GLGizmosManager.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/Selection.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
namespace Slic3r::GUI {
@@ -38,6 +38,7 @@
#include "libslic3r/TriangleSelector.hpp"
#include "slic3r/GUI/Gizmos/GLGizmosCommon.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
namespace Slic3r::GUI {
@@ -46,6 +46,7 @@
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/PartPlate.hpp"
#include "slic3r/GUI/Selection.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
namespace Slic3r::GUI {
+1
View File
@@ -28,6 +28,7 @@
#include "libslic3r/Color.hpp"
#include "slic3r/GUI/3DScene.hpp"
#include <memory>
#include "slic3r/GUI/GUI_Utils.hpp"
namespace Slic3r::GUI {
+1
View File
@@ -11,6 +11,7 @@
#include <cstddef>
#include <wx/app.h>
#include <boost/algorithm/string.hpp>
#include "slic3r/GUI/GUI_Utils.hpp"
#ifdef WIN32
#include <wx/msw/winundef.h>
@@ -39,6 +39,7 @@
#include "libslic3r/TriangleMesh.hpp"
#include "slic3r/GUI/3DScene.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/GUI_Utils.hpp"
#define MAX_NUM 9999.99
#define MAX_SIZE std::string_view{"9999.99"}
+2
View File
@@ -35,6 +35,8 @@
#include <errno.h>
#include <optional>
#include <cstdint>
#include <cwchar>
#include <memory>
#ifdef _WIN32
#include <strsafe.h>
+1
View File
@@ -14,6 +14,7 @@
#include <string>
#include <boost/filesystem.hpp>
#include <cstddef>
#if __linux__
#include <boost/thread.hpp>
+3
View File
@@ -150,6 +150,9 @@
#include "slic3r/plugin/host/PluginPages.hpp"
#include "slic3r/Utils/NetworkAgent.hpp"
#include <wx/defs.h>
#include <cassert>
#include <wx/display.h>
#include <wx/window.h>
namespace Slic3r {
+1
View File
@@ -73,6 +73,7 @@
#include <wx/clipbrd.h>
#include "wx/evtloop.h"
#include <boost/nowide/convert.hpp>
class wxImage;
+2
View File
@@ -33,6 +33,8 @@
#include "I18N.hpp"
#include <bitset>
#include <cstdio>
#include <cstring>
//unofficial linux lib
#ifdef HAVE_SPNAV
@@ -31,6 +31,7 @@
#include <algorithm>
#include <cmath>
#include <vector>
#include <wx/dcgraph.h>
namespace Slic3r {
namespace GUI {
+1
View File
@@ -26,6 +26,7 @@
#include "slic3r/GUI/MsgDialog.hpp"
#include <string>
#include <algorithm>
#include <wx/dcgraph.h>
namespace Slic3r {
namespace GUI {
+1
View File
@@ -44,6 +44,7 @@
#include <wx/timer.h>
#include "DeviceCore/DevManager.h"
#include <wx/dcgraph.h>
namespace Slic3r {
namespace GUI {
+4
View File
@@ -42,6 +42,10 @@
#include <string>
#include <vector>
#include <utility>
#include <boost/algorithm/string/predicate.hpp>
#include <cassert>
#include <cwchar>
#include <stdlib.h>
#ifdef WIN32
+1
View File
@@ -72,6 +72,7 @@
#include "wxExtensions.hpp"
#include "DeviceCore/DevManager.h"
#include "slic3r/GUI/Widgets/Label.hpp"
// A workaround for a set of issues related to text fitting into gtk widgets:
#if defined(__WXGTK20__) || defined(__WXGTK3__)
+1
View File
@@ -22,6 +22,7 @@
#include <wx/string.h>
#include <wx/webview.h>
#include <wx/utils.h>
#include <wx/buffer.h>
using json = nlohmann::json;
+1
View File
@@ -20,6 +20,7 @@
#include <system_error>
#include <wx/event.h>
#include <utility>
#include <cwchar>
#if _WIN32
#include <windows.h>
+1
View File
@@ -12,6 +12,7 @@
// Custom wxWidget events
#include "Event.hpp"
#include <atomic>
namespace Slic3r {
namespace GUI {
+1
View File
@@ -55,6 +55,7 @@
#include "BindDialog.hpp"
#include "DeviceCore/DevManager.h"
#include <wx/textctrl.h>
namespace Slic3r { namespace GUI {
+1
View File
@@ -74,6 +74,7 @@
#include "slic3r/GUI/Widgets/CheckBox.hpp"
#include "slic3r/GUI/wxExtensions.hpp"
#include <boost/filesystem.hpp>
#include <wx/dcgraph.h>
namespace fs = boost::filesystem;
+3
View File
@@ -73,6 +73,9 @@
#include <atomic>
#include <thread>
#include "slic3r/GUI/GUI.hpp"
#include <cstdlib>
#include <iomanip>
class wxWindow;
+1
View File
@@ -117,6 +117,7 @@
#include "SafetyOptionsDialog.hpp"
#include "ThermalPreconditioningDialog.hpp"
#include <wx/dcgraph.h>
namespace Slic3r { namespace GUI {
+1
View File
@@ -116,6 +116,7 @@
#include <algorithm>
#include <cstdlib>
#include <unordered_set>
#include "slic3r/GUI/GUI_Utils.hpp"
namespace Slic3r {
+1
View File
@@ -71,6 +71,7 @@
#include <boost/log/trivial.hpp>
#include <wx/window.h>
#include <wx/busycursor.h>
static constexpr const char* DEFAULT_VIRTUAL_FILAMENT_BASIC_TYPE = "PLA Basic";
static constexpr const char* DEFAULT_VIRTUAL_FILAMENT_SHORT_TYPE = "PLA";
+1
View File
@@ -41,6 +41,7 @@
#include <wx/webview.h>
#include <wx/utils.h>
#include <wx/window.h>
#include <wx/infobar.h>
namespace pt = boost::property_tree;
@@ -13,6 +13,7 @@
#include <wx/peninfobase.h>
#include <algorithm>
#include "slic3r/GUI/Widgets/StateColor.hpp"
#include <wx/dcgraph.h>
LabeledStaticBox::LabeledStaticBox()
: state_handler(this)
@@ -31,6 +31,9 @@
#include "ProgressDialog.hpp"
#include "wx/evtloop.h"
#include "Label.hpp"
#include <wx/event.h>
#include <wx/gauge.h>
#include <wx/sizer.h>
#ifdef __WXGTK__
#include "slic3r/GUI/Widgets/StateColor.hpp"
+1
View File
@@ -1,4 +1,5 @@
#include <wx/textctrl.h>
#include <wx/colour.h>
#ifdef __WXMSW__
class TextCtrl : public wxTextCtrl
+6
View File
@@ -35,6 +35,12 @@
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <ios>
#include <string>
#include <wx/versioninfo.h>
namespace fs = boost::filesystem;
#if defined(__WIN32__) || defined(__WXMAC__)
+3
View File
@@ -12,6 +12,9 @@
#include <Shlwapi.h>
#include "windowsx.h"
#include "stdlib.h"
#include <algorithm>
#include <cassert>
#include <cwchar>
#ifdef __GNUC__
#include <cmath>
+3
View File
@@ -6,6 +6,9 @@
#pragma once
#include <stdint.h>
#include <cstddef>
#include <cstring>
#include <string.h>
template <typename T, typename T1, typename T2>
constexpr T RVA2VA(T1 base, T2 rva)
+1
View File
@@ -8,6 +8,7 @@
#include <unordered_set>
#include <mutex>
#include <cwchar>
enum IMMERSIVE_HC_CACHE_MODE
{
+1
View File
@@ -12,6 +12,7 @@
#include <string>
#include <ostream>
#include <wx/string.h>
#include <wx/buffer.h>
namespace Slic3r {
namespace GUI {
+1
View File
@@ -43,6 +43,7 @@
#include "FilamentBitmapUtils.hpp"
#include "../Utils/ColorSpaceConvert.hpp"
#include "libslic3r_version.h"
#include <map>
#ifndef __linux__
// msw_menuitem_bitmaps is used for MSW and OSX
static std::map<int, std::string> msw_menuitem_bitmaps;
+1
View File
@@ -18,6 +18,7 @@
#include <wx/gdicmn.h>
#include <wx/mediactrl.h>
#include <wx/string.h>
#include <wx/image.h>
extern "C" {
#include <libavformat/avformat.h>
#include <libavutil/log.h>
+3
View File
@@ -19,6 +19,9 @@
#include <utility>
#include "libslic3r/Utils.hpp"
#include "slic3r/Utils/FileTransferUtils.hpp"
#include <cstddef>
#include <cstring>
#include <cwchar>
#if !defined(_MSC_VER) && !defined(_WIN32)
#include <dlfcn.h>
+1
View File
@@ -48,6 +48,7 @@
#include "libslic3r/AppConfig.hpp"
#include "Bonjour.hpp"
#include "slic3r/GUI/BonjourDialog.hpp"
#include <boost/asio/ip/address.hpp>
namespace fs = boost::filesystem;
namespace pt = boost::property_tree;
+2
View File
@@ -34,6 +34,8 @@
#include "libslic3r/AppConfig.hpp"
#include "Bonjour.hpp"
#include "slic3r/GUI/BonjourDialog.hpp"
#include <boost/asio/ip/address.hpp>
#include <cstddef>
namespace fs = boost::filesystem;
namespace pt = boost::property_tree;
+1
View File
@@ -10,6 +10,7 @@
#include <catch2/catch_test_macros.hpp>
#include "libslic3r/InstanceLock.hpp"
#include "test_utils.hpp"
#include <ios>
#ifdef _WIN32
#include <boost/interprocess/sync/file_lock.hpp>