orca-slicer v2.2.0-unstable-2025-01-06 -> v2.2.0-unstable-2025-01-23 (#375802)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
cmake,
|
||||
pkg-config,
|
||||
wrapGAppsHook3,
|
||||
boost,
|
||||
boost186,
|
||||
cereal,
|
||||
cgal,
|
||||
curl,
|
||||
@@ -56,13 +56,13 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "orca-slicer";
|
||||
version = "v2.2.0-unstable-2025-01-06";
|
||||
version = "v2.2.0-unstable-2025-01-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SoftFever";
|
||||
repo = "OrcaSlicer";
|
||||
rev = "99a0facfb3a5c9b4e661e536825c08393053cb53";
|
||||
hash = "sha256-XWM04Vx65q+Vc+s3YLucS63IhGVw8ODhL2m+47nZKs8=";
|
||||
rev = "1b1288c4353afca44edee323061bdd5c87fcafb9";
|
||||
hash = "sha256-IPdKusP2cB5jgr6JjQVu8ZjJ2kiG6mfmfZtDVSlAFNg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -75,7 +75,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs =
|
||||
[
|
||||
binutils
|
||||
(boost.override {
|
||||
(boost186.override {
|
||||
enableShared = true;
|
||||
enableStatic = false;
|
||||
extraFeatures = [
|
||||
@@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
|
||||
"filesystem"
|
||||
];
|
||||
})
|
||||
boost.dev
|
||||
boost186.dev
|
||||
cereal
|
||||
cgal
|
||||
curl
|
||||
@@ -127,7 +127,6 @@ stdenv.mkDerivation rec {
|
||||
# Fix for webkitgtk linking
|
||||
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
|
||||
./patches/dont-link-opencv-world-orca.patch
|
||||
./patches/fix-boost.patch
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
@@ -163,7 +162,7 @@ stdenv.mkDerivation rec {
|
||||
(lib.optionalString withSystemd "-ludev")
|
||||
"-L${mesa.osmesa}/lib"
|
||||
"-L${mesa.drivers}/lib"
|
||||
"-L${boost}/lib"
|
||||
"-L${boost186}/lib"
|
||||
"-lboost_log"
|
||||
"-lboost_log_setup"
|
||||
];
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
diff --git a/src/libslic3r/PrintBase.cpp b/src/libslic3r/PrintBase.cpp
|
||||
index 25b282c7b..81ee858c2 100644
|
||||
--- a/src/libslic3r/PrintBase.cpp
|
||||
+++ b/src/libslic3r/PrintBase.cpp
|
||||
@@ -79,7 +79,7 @@ std::string PrintBase::output_filename(const std::string &format, const std::str
|
||||
cfg.opt_string("input_filename_base") + default_ext :
|
||||
this->placeholder_parser().process(format, 0, &cfg);
|
||||
if (filename.extension().empty())
|
||||
- filename = boost::filesystem::change_extension(filename, default_ext);
|
||||
+ filename.replace_extension(default_ext);
|
||||
return filename.string();
|
||||
} catch (std::runtime_error &err) {
|
||||
throw Slic3r::PlaceholderParserError(L("Failed processing of the filename_format template.") + "\n" + err.what());
|
||||
diff --git a/src/slic3r/GUI/AuxiliaryDataViewModel.cpp b/src/slic3r/GUI/AuxiliaryDataViewModel.cpp
|
||||
index 50368b854..cad5cf545 100644
|
||||
--- a/src/slic3r/GUI/AuxiliaryDataViewModel.cpp
|
||||
+++ b/src/slic3r/GUI/AuxiliaryDataViewModel.cpp
|
||||
@@ -337,7 +337,7 @@ wxDataViewItemArray AuxiliaryModel::ImportFile(AuxiliaryModelNode* sel, wxArrayS
|
||||
dir_path += "\\" + src_bfs_path.filename().generic_wstring();
|
||||
|
||||
boost::system::error_code ec;
|
||||
- if (!fs::copy_file(src_bfs_path, fs::path(dir_path.ToStdWstring()), fs::copy_option::overwrite_if_exists, ec))
|
||||
+ if (!fs::copy_file(src_bfs_path, fs::path(dir_path.ToStdWstring()), fs::copy_options::overwrite_existing, ec))
|
||||
continue;
|
||||
|
||||
// Update model data
|
||||
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
|
||||
index f3782be14..e12f0c321 100644
|
||||
--- a/src/slic3r/GUI/Plater.cpp
|
||||
+++ b/src/slic3r/GUI/Plater.cpp
|
||||
@@ -10265,7 +10265,7 @@ bool Plater::preview_zip_archive(const boost::filesystem::path& archive_path)
|
||||
std::replace(name.begin(), name.end(), '\\', '/');
|
||||
// rename if file exists
|
||||
std::string filename = path.filename().string();
|
||||
- std::string extension = boost::filesystem::extension(path);
|
||||
+ std::string extension = path.extension().string();
|
||||
std::string just_filename = filename.substr(0, filename.size() - extension.size());
|
||||
std::string final_filename = just_filename;
|
||||
|
||||
diff --git a/src/slic3r/GUI/RemovableDriveManager.cpp b/src/slic3r/GUI/RemovableDriveManager.cpp
|
||||
index a26e13448..83ec4695c 100644
|
||||
--- a/src/slic3r/GUI/RemovableDriveManager.cpp
|
||||
+++ b/src/slic3r/GUI/RemovableDriveManager.cpp
|
||||
@@ -22,7 +22,6 @@
|
||||
#include <pwd.h>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/system/error_code.hpp>
|
||||
-#include <boost/filesystem/convenience.hpp>
|
||||
#include <boost/process.hpp>
|
||||
#endif
|
||||
|
||||
@@ -202,7 +201,7 @@ namespace search_for_drives_internal
|
||||
stat(path.c_str(), &buf);
|
||||
uid_t uid = buf.st_uid;
|
||||
if (getuid() == uid)
|
||||
- out.emplace_back(DriveData{ boost::filesystem::basename(boost::filesystem::path(path)), path });
|
||||
+ out.emplace_back(DriveData{ boost::filesystem::path(path).stem().string(), path });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user