freebsd-ports/cad/PrusaSlicer/files/patch-src_libslic3r_Format_STEP.cpp
Michael Zhilin a79650abf5 cad/PrusaSlicer: update to 2.7.4
This update contains version 2.7.4 and fix on library path

PR: 278011
Reported by: teodor.sigaev@gmail.com (maintainer)
Approved by: lwhsu (mentor)
Sponsored by: Postgres Professional
Differential Revision: https://reviews.freebsd.org/D44668
2024-04-08 08:56:00 +03:00

19 lines
717 B
C++

--- src/libslic3r/Format/STEP.cpp.orig 2024-04-05 18:42:53 UTC
+++ src/libslic3r/Format/STEP.cpp
@@ -39,7 +39,7 @@ LoadStepFn get_load_step_fn()
#endif
if (!load_step_fn) {
- auto libpath = boost::dll::program_location().parent_path();
+ auto libpath = boost::dll::program_location().parent_path().parent_path();
#ifdef _WIN32
libpath /= "OCCTWrapper.dll";
HMODULE module = LoadLibraryW(libpath.wstring().c_str());
@@ -61,6 +61,7 @@ LoadStepFn get_load_step_fn()
#elif __APPLE__
load_step_fn = &load_step_internal;
#else
+ libpath /= "lib";
libpath /= "OCCTWrapper.so";
void *plugin_ptr = dlopen(libpath.c_str(), RTLD_NOW | RTLD_GLOBAL);