forked from Lainports/freebsd-ports
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
19 lines
717 B
C++
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);
|
|
|