prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.63k stars 1.92k forks source link

2.8.0 issues with building #12884

Open fordfrog opened 2 months ago

fordfrog commented 2 months ago

Description of the bug

on gentoo linux (with boost-1.85.0) there are some missing includes that prevent compilation. we also had problem with linking prusaslicer because of missing libcrypto. here are the two patches that we use to evade those issues (i'm not sure they're correct though): https://github.com/gentoo/gentoo/blob/master/media-gfx/prusaslicer/files/prusaslicer-2.8.0-missing-includes.patch https://github.com/gentoo/gentoo/blob/master/media-gfx/prusaslicer/files/prusaslicer-2.8.0-fixed-linking.patch

Project file & How to reproduce

not related

Checklist of files included above

Version of PrusaSlicer

2.8.0 beta1

Operating system

gentoo linux

Printer model

not related

fordfrog commented 2 months ago

i updated the includes for r1. the links in the original post are still valid.

mogorman commented 2 months ago

I had to patch the 2.8.0 release the same way for nixos

--- a/src/slic3r/CMakeLists.txt
+++ b/src/slic3r/CMakeLists.txt
@@ -376,6 +376,7 @@ set(SLIC3R_GUI_SOURCES
 )

 find_package(NanoSVG REQUIRED)
+find_package(OpenSSL REQUIRED)

 if (APPLE)
     list(APPEND SLIC3R_GUI_SOURCES
@@ -404,7 +405,7 @@ endforeach()

 encoding_check(libslic3r_gui)

-target_link_libraries(libslic3r_gui libslic3r avrdude libcereal imgui libvgcode GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES} NanoSVG::nanosvg NanoSVG::nanosvgrast)
+target_link_libraries(libslic3r_gui libslic3r avrdude libcereal imgui libvgcode GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES} NanoSVG::nanosvg NanoSVG::nanosvgrast OpenSSL::SSL OpenSSL::Crypto)

 if (MSVC)
     target_link_libraries(libslic3r_gui Setupapi.lib)
amatulic commented 1 month ago

Might be related to #13037 on Windows