bambu-studio: 01.09.07.52 > 01.10.01.50 (#356673)
This commit is contained in:
commit
0a92232f3f
@ -1,21 +0,0 @@
|
|||||||
Fix build with cgal 5.6.1+
|
|
||||||
|
|
||||||
diff --git a/src/libslic3r/MeshBoolean.cpp b/src/libslic3r/MeshBoolean.cpp
|
|
||||||
index 50bbc099..b05245d3 100644
|
|
||||||
--- a/src/libslic3r/MeshBoolean.cpp
|
|
||||||
+++ b/src/libslic3r/MeshBoolean.cpp
|
|
||||||
@@ -200,12 +200,12 @@ indexed_triangle_set cgal_to_indexed_triangle_set(const _Mesh &cgalmesh)
|
|
||||||
const auto &vertices = cgalmesh.vertices();
|
|
||||||
int vsize = int(vertices.size());
|
|
||||||
|
|
||||||
- for (auto &vi : vertices) {
|
|
||||||
+ for (const auto &vi : vertices) {
|
|
||||||
auto &v = cgalmesh.point(vi); // Don't ask...
|
|
||||||
its.vertices.emplace_back(to_vec3f(v));
|
|
||||||
}
|
|
||||||
|
|
||||||
- for (auto &face : faces) {
|
|
||||||
+ for (const auto &face : faces) {
|
|
||||||
auto vtc = cgalmesh.vertices_around_face(cgalmesh.halfedge(face));
|
|
||||||
|
|
||||||
int i = 0;
|
|
@ -8,11 +8,12 @@
|
|||||||
wrapGAppsHook3,
|
wrapGAppsHook3,
|
||||||
boost180,
|
boost180,
|
||||||
cereal,
|
cereal,
|
||||||
cgal_5,
|
cgal,
|
||||||
curl,
|
curl,
|
||||||
dbus,
|
dbus,
|
||||||
eigen,
|
eigen,
|
||||||
expat,
|
expat,
|
||||||
|
ffmpeg,
|
||||||
gcc-unwrapped,
|
gcc-unwrapped,
|
||||||
glew,
|
glew,
|
||||||
glfw,
|
glfw,
|
||||||
@ -55,13 +56,13 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bambu-studio";
|
pname = "bambu-studio";
|
||||||
version = "01.09.07.52";
|
version = "01.10.01.50";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bambulab";
|
owner = "bambulab";
|
||||||
repo = "BambuStudio";
|
repo = "BambuStudio";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-fhH4N29P/ysdHHbZt+FnBl3+QtTNhbVE3j4ZnFJyJH0=";
|
hash = "sha256-7mkrPl2CQSfc1lRjl1ilwxdYcK5iRU//QGKmdCicK30=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -74,11 +75,12 @@ stdenv.mkDerivation rec {
|
|||||||
binutils
|
binutils
|
||||||
boost180
|
boost180
|
||||||
cereal
|
cereal
|
||||||
cgal_5
|
cgal
|
||||||
curl
|
curl
|
||||||
dbus
|
dbus
|
||||||
eigen
|
eigen
|
||||||
expat
|
expat
|
||||||
|
ffmpeg
|
||||||
gcc-unwrapped
|
gcc-unwrapped
|
||||||
glew
|
glew
|
||||||
glfw
|
glfw
|
||||||
@ -109,8 +111,6 @@ stdenv.mkDerivation rec {
|
|||||||
patches = [
|
patches = [
|
||||||
# Fix for webkitgtk linking
|
# Fix for webkitgtk linking
|
||||||
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
|
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
|
||||||
# Fix build with cgal-5.6.1+
|
|
||||||
./patches/meshboolean-const.patch
|
|
||||||
# Fix an issue with
|
# Fix an issue with
|
||||||
./patches/dont-link-opencv-world-bambu.patch
|
./patches/dont-link-opencv-world-bambu.patch
|
||||||
];
|
];
|
||||||
@ -149,6 +149,9 @@ stdenv.mkDerivation rec {
|
|||||||
"-DSLIC3R_FHS=1"
|
"-DSLIC3R_FHS=1"
|
||||||
"-DSLIC3R_GTK=3"
|
"-DSLIC3R_GTK=3"
|
||||||
|
|
||||||
|
# Skips installing ffmpeg, since we BYO.
|
||||||
|
"-DFLATPAK=1"
|
||||||
|
|
||||||
# BambuStudio-specific
|
# BambuStudio-specific
|
||||||
"-DBBL_RELEASE_TO_PUBLIC=1"
|
"-DBBL_RELEASE_TO_PUBLIC=1"
|
||||||
"-DBBL_INTERNAL_TESTING=0"
|
"-DBBL_INTERNAL_TESTING=0"
|
@ -18,7 +18,6 @@ bambu-studio.overrideAttrs (
|
|||||||
patches = [
|
patches = [
|
||||||
# Fix for webkitgtk linking
|
# Fix for webkitgtk linking
|
||||||
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
|
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
|
||||||
|
|
||||||
./patches/dont-link-opencv-world-orca.patch
|
./patches/dont-link-opencv-world-orca.patch
|
||||||
];
|
];
|
||||||
|
|
@ -0,0 +1,34 @@
|
|||||||
|
From 7eed499898226222a949a792e0400ec10db4a1c9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zhaofeng Li <hello@zhaofeng.li>
|
||||||
|
Date: Tue, 22 Nov 2022 13:00:39 -0700
|
||||||
|
Subject: [PATCH] [not for upstream] CMakeLists: Link against webkit2gtk in
|
||||||
|
libslic3r_gui
|
||||||
|
|
||||||
|
WebView.cpp uses symbols from webkitgtk directly. Upstream setup
|
||||||
|
links wxGTK statically so webkitgtk is already pulled in.
|
||||||
|
|
||||||
|
> /nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: slic3r/liblibslic3r_gui.a(WebView.cpp.o): undefined reference to symbol 'webkit_web_view_run_javascript_finish'
|
||||||
|
> /nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: /nix/store/8yvy428jy2nwq4dhmrcs7gj5r27a2pv6-webkitgtk-2.38.2+abi=4.0/lib/libwebkit2gtk-4.0.so.37: error adding symbols: DSO missing from command line
|
||||||
|
---
|
||||||
|
src/CMakeLists.txt | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||||
|
index 9c5cb96..e92a0e3 100644
|
||||||
|
--- a/src/CMakeLists.txt
|
||||||
|
+++ b/src/CMakeLists.txt
|
||||||
|
@@ -175,6 +175,11 @@ if (WIN32)
|
||||||
|
target_link_libraries(BambuStudio_app_gui PRIVATE boost_headeronly)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
+# We link against webkit2gtk symbols in src/slic3r/GUI/Widgets/WebView.cpp
|
||||||
|
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
+ target_link_libraries(libslic3r_gui "-lwebkit2gtk-4.0")
|
||||||
|
+endif ()
|
||||||
|
+
|
||||||
|
# Link the resources dir to where Slic3r GUI expects it
|
||||||
|
set(output_dlls_Release "")
|
||||||
|
set(output_dlls_Debug "")
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
@ -15782,10 +15782,6 @@ with pkgs;
|
|||||||
|
|
||||||
super-slicer-latest = super-slicer.latest;
|
super-slicer-latest = super-slicer.latest;
|
||||||
|
|
||||||
bambu-studio = callPackage ../applications/misc/bambu-studio { };
|
|
||||||
|
|
||||||
orca-slicer = callPackage ../applications/misc/bambu-studio/orca-slicer.nix {};
|
|
||||||
|
|
||||||
skrooge = libsForQt5.callPackage ../applications/office/skrooge { };
|
skrooge = libsForQt5.callPackage ../applications/office/skrooge { };
|
||||||
|
|
||||||
smartdeblur = libsForQt5.callPackage ../applications/graphics/smartdeblur { };
|
smartdeblur = libsForQt5.callPackage ../applications/graphics/smartdeblur { };
|
||||||
|
Loading…
Reference in New Issue
Block a user