Make actually buildable in Ubuntu.

This commit is contained in:
Steven James 2023-10-20 16:18:58 -04:00 committed by Lukas Matena
parent 9309ef90a8
commit c63f0d2870
4 changed files with 10 additions and 3 deletions

View File

@ -2,6 +2,7 @@
///|/
///|/ PrusaSlicer is released under the terms of the AGPLv3 or higher
///|/
#include <numeric>
#include "Emboss.hpp"
#include <stdio.h>
#include <cstdlib>
@ -562,7 +563,7 @@ Duplicates collect_duplicit_indices(const ExPolygons &expoly)
// initialize original index locations
std::vector<uint32_t> idx(pts.size());
iota(idx.begin(), idx.end(), 0);
std::iota(idx.begin(), idx.end(), 0);
std::sort(idx.begin(), idx.end(),
[&pts](uint32_t i1, uint32_t i2) { return pts[i1] < pts[i2]; });
@ -2218,4 +2219,4 @@ void remove_spikes(ExPolygons &expolygons, const SpikeDesc &spike_desc)
remove_bad(expolygons);
}
#endif // REMOVE_SPIKES
#endif // REMOVE_SPIKES

View File

@ -7,6 +7,7 @@
#include <charconv> // to_chars
#include <boost/nowide/iostream.hpp>
#include <boost/nowide/fstream.hpp>
#include "ClipperUtils.hpp"
#include "Emboss.hpp" // heal for shape
@ -521,4 +522,4 @@ HealedExPolygons stroke_to_expolygons(const LinesPath &lines_path, const NSVGsha
return Emboss::heal_polygons(result, is_non_zero, param.max_heal_iteration);
}
} // namespace
} // namespace

View File

@ -1,6 +1,10 @@
#include "IconManager.hpp"
#include <cmath>
#include <numeric>
#include <boost/log/trivial.hpp>
#include <boost/nowide/cstdio.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/algorithm/string.hpp>
#include "nanosvg/nanosvg.h"
#include "nanosvg/nanosvgrast.h"
#include "libslic3r/Utils.hpp" // ScopeGuard

View File

@ -6,6 +6,7 @@
#include <stdexcept>
#include <type_traits>
#include <boost/log/trivial.hpp>
#include <libslic3r/Model.hpp>
#include <libslic3r/Format/OBJ.hpp> // load_obj for default mesh