1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Chow Loong Jin <hyperair@debian.org>
Date: Wed, 3 Jul 2024 17:20:58 +0800
Subject: Link against libcrypto and libssl
Required to fix the following error:
/usr/bin/ld: slic3r/liblibslic3r_gui.a(UserAccountCommunication.cpp.o):
undefined reference to symbol 'EVP_DigestInit_ex@@OPENSSL_3.0.0'
/usr/bin/ld: /lib/x86_64-linux-gnu/libcrypto.so.3: error adding symbols: DSO
missing from command line
---
src/slic3r/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/slic3r/CMakeLists.txt b/src/slic3r/CMakeLists.txt
index 44d9ba8..0954f4c 100644
--- a/src/slic3r/CMakeLists.txt
+++ b/src/slic3r/CMakeLists.txt
@@ -428,6 +428,8 @@ else() # Linux
)
endif ()
+find_library(CRYPTO_LIBRARIES crypto REQUIRED)
+find_library(SSL_LIBRARIES ssl REQUIRED)
add_library(libslic3r_gui STATIC ${SLIC3R_GUI_SOURCES})
foreach(_source IN ITEMS ${SLIC3R_GUI_SOURCES})
@@ -456,6 +458,8 @@ target_link_libraries(
stb_dxt
fastfloat
boost_headeronly
+ ${CRYPTO_LIBRARIES}
+ ${SSL_LIBRARIES}
)
if (MSVC)
|