Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
From cbb17366904c97bb5db40644c277be41219261da Mon Sep 17 00:00:00 2001
From: Emily <hello@emily.moe>
Date: Tue, 9 Sep 2025 20:42:11 +0100
Subject: [PATCH] =?UTF-8?q?Fix=20the=20build=20with=20cereal=20=E2=89=A5?=
=?UTF-8?q?=201.3.1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Based on <https://github.com/prusa3d/PrusaSlicer/pull/7809>.

Co-authored-by: Yuri D'Elia <wavexx@thregr.org>
Co-authored-by: tamasmeszaros <meszaros.q@gmail.com>
---
CMakeLists.txt | 6 ++++++
src/CMakeLists.txt | 3 +--
src/libslic3r/CMakeLists.txt | 2 +-
src/slic3r/CMakeLists.txt | 2 +-
4 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a112949bba..81b0a4244f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -469,6 +469,12 @@ endif ()

# Find the Cereal serialization library
find_package(cereal REQUIRED)
+add_library(libcereal INTERFACE)
+if (NOT TARGET cereal::cereal)
+ target_link_libraries(libcereal INTERFACE cereal)
+else()
+ target_link_libraries(libcereal INTERFACE cereal::cereal)
+endif()

# l10n
set(L10N_DIR "${SLIC3R_RESOURCES_DIR}/localization")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index bf721a7635..71a62a9024 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -144,8 +144,7 @@ if (NOT WIN32)
set_target_properties(Slic3r PROPERTIES OUTPUT_NAME "${SLIC3R_APP_CMD}")
endif ()

-target_link_libraries(Slic3r libslic3r cereal)
-
+target_link_libraries(Slic3r libslic3r libcereal)
if (APPLE)
# add_compile_options(-stdlib=libc++)
# add_definitions(-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_NO_CXX11_RVALUE_REFERENCES -DBOOST_THREAD_USES_MOVE)
diff --git a/src/libslic3r/CMakeLists.txt b/src/libslic3r/CMakeLists.txt
index 84be9c12e5..4940549134 100644
--- a/src/libslic3r/CMakeLists.txt
+++ b/src/libslic3r/CMakeLists.txt
@@ -420,7 +420,7 @@ find_package(JPEG REQUIRED)
target_link_libraries(libslic3r
libnest2d
admesh
- cereal
+ libcereal
libigl
miniz
boost_libs
diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt
index c11f860c59..c1eb966de1 100644
--- a/src/slic3r/CMakeLists.txt
+++ b/src/slic3r/CMakeLists.txt
@@ -302,7 +302,7 @@ target_compile_definitions(libslic3r_gui PRIVATE $<$<BOOL:${SLIC3R_ALPHA}>:SLIC3

encoding_check(libslic3r_gui)

-target_link_libraries(libslic3r_gui libslic3r avrdude cereal imgui GLEW::GLEW OpenGL::GL hidapi exif angelscript libcurl ${wxWidgets_LIBRARIES})
+target_link_libraries(libslic3r_gui libslic3r avrdude libcereal imgui GLEW::GLEW OpenGL::GL hidapi exif angelscript libcurl ${wxWidgets_LIBRARIES})

if (MSVC)
target_link_libraries(libslic3r_gui Setupapi.lib)
--
2.50.1

1 change: 1 addition & 0 deletions pkgs/applications/misc/prusa-slicer/super-slicer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ let
hash = "sha256-fh31qrqjQiRQL03pQl4KJAEtbKMwG8/nJroqIDOIePw=";
})
./super-slicer-use-boost186.patch
./super-slicer-fix-cereal-1.3.1.patch
];

wxGTK31-prusa = wxGTK31.overrideAttrs (old: {
Expand Down
40 changes: 0 additions & 40 deletions pkgs/by-name/ce/cereal_1_3_0/package.nix

This file was deleted.

4 changes: 2 additions & 2 deletions pkgs/by-name/mu/mujoco/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
glfw,
glm,
spdlog,
cereal_1_3_2,
cereal,
python3Packages,
}:

Expand Down Expand Up @@ -106,7 +106,7 @@ stdenv.mkDerivation (finalAttrs: {

# non-numerical
spdlog
cereal_1_3_2
cereal
glfw
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/pr/proxsuite/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
graphviz,

# propagatedBuildInputs
cereal_1_3_2,
cereal,
eigen,
jrl-cmakemodules,
simde,
Expand Down Expand Up @@ -60,7 +60,7 @@ stdenv.mkDerivation (finalAttrs: {
];

propagatedBuildInputs = [
cereal_1_3_2
cereal
eigen
jrl-cmakemodules
simde
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/sa/salmon/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
stdenv,
boost,
bzip2,
cereal_1_3_2,
cereal,
cmake,
curl,
fetchFromGitHub,
Expand Down Expand Up @@ -49,7 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
enabledStatic = true;
})
bzip2
cereal_1_3_2
cereal
curl
icu
jemalloc
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ mapAliases {
cataract-unstable = throw "'cataract-unstable' has been removed due to a lack of maintenace"; # Added 2025-08-25
cde = throw "'cde' has been removed as it is unmaintained and broken"; # Added 2025-05-17
centerim = throw "centerim has been removed due to upstream disappearing"; # Added 2025-04-18
cereal_1_3_0 = throw "cereal_1_3_0 has been removed as it was unused; use cereal intsead"; # Added 2025-09-12
cereal_1_3_2 = throw "cereal_1_3_2 is now the only version and has been renamed to cereal"; # Added 2025-09-12
certmgr-selfsigned = certmgr; # Added 2023-11-30
cgal_4 = throw "cgal_4 has been removed as it is obsolete use cgal instead"; # Added 2024-12-30

Expand Down
3 changes: 0 additions & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ with pkgs;
cve = with python3Packages; toPythonApplication cvelib;

basalt-monado = callPackage ../by-name/ba/basalt-monado/package.nix {
cereal = cereal_1_3_2;
opencv = opencv.override { enableGtk3 = true; };
};

Expand Down Expand Up @@ -327,8 +326,6 @@ with pkgs;
practiceMod = true;
};

cereal = cereal_1_3_0;

chef-cli = callPackage ../tools/misc/chef-cli { };

clang-uml = callPackage ../by-name/cl/clang-uml/package.nix {
Expand Down
Loading