Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/PrusaSlicer/files/patch-src_libslic3r_Format_STEP.cpp
16461 views
1
--- src/libslic3r/Format/STEP.cpp.orig 2025-04-10 11:26:51 UTC
2
+++ src/libslic3r/Format/STEP.cpp
3
@@ -42,7 +42,7 @@ LoadStepFn get_load_step_fn()
4
#endif
5
6
if (!load_step_fn) {
7
- auto libpath = boost::dll::program_location().parent_path();
8
+ auto libpath = boost::dll::program_location().parent_path().parent_path();
9
#ifdef _WIN32
10
libpath /= "OCCTWrapper.dll";
11
HMODULE module = LoadLibraryW(libpath.wstring().c_str());
12
@@ -64,6 +64,7 @@ LoadStepFn get_load_step_fn()
13
#elif __APPLE__
14
load_step_fn = &load_step_internal;
15
#else
16
+ libpath /= "lib";
17
libpath /= "OCCTWrapper.so";
18
void *plugin_ptr = dlopen(libpath.c_str(), RTLD_NOW | RTLD_GLOBAL);
19
20
21