Bug 278011 - cad/PrusaSlicer: Tries to load OCCTWrapper.so from wrong path
Summary: cad/PrusaSlicer: Tries to load OCCTWrapper.so from wrong path
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Michael Zhilin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-28 14:02 UTC by Torfinn Ingolfsen
Modified: 2024-04-09 14:47 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (teodorsigaev)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torfinn Ingolfsen 2024-03-28 14:02:19 UTC
background: If you want to print a .step file, PrusaSlicer wants to load the OCCTWrapper.so library.

On FreeBSD it fails, because it tries to load the .so file form /usr/local/bin:

tingo@kg-core2:/zt/t2/work/3D_printing/2024/0328_e-steps-calibration/printables $ prusa-slicer --info "639746-easy-e-steps-rotation-distance-measurement-tool-in/E-Steps & Rotation Distance Measurement Tool v1.0.step"
[2024-03-28 14:58:50.107688] [0x000000087b529000] [trace]   Initializing StaticPrintConfigs
639746-easy-e-steps-rotation-distance-measurement-tool-in/E-Steps & Rotation Distance Measurement Tool v1.0.step: Cannot load OCCTWrapper.so:

Cannot open "/usr/local/bin/OCCTWrapper.so"

but the file lives in /usr/local/lib

tingo@kg-core2:/zt/t2/work/3D_printing/2024/0328_e-steps-calibration/printables $ ll /usr/local/lib/OCCTWrapper.so
-rwxr-xr-x  1 root  wheel  - 59296 Jan 11 11:19 /usr/local/lib/OCCTWrapper.so*


PrusaSlicer installed from a package
tingo@kg-core2:/zt/t2/work/3D_printing/2024/0328_e-steps-calibration/printables $ pkg info Prusa\*
PrusaSlicer-2.6.0_7

tingo@kg-core2:/zt/t2/work/3D_printing/2024/0328_e-steps-calibration/printables $ freebsd-version -ku
13.2-RELEASE-p10
13.2-RELEASE-p10
tingo@kg-core2:/zt/t2/work/3D_printing/2024/0328_e-steps-calibration/printables $ uname -a
FreeBSD kg-core2.kg4.no 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 GENERIC amd64
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-04-08 05:57:26 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a79650abf58e4e980e0db5d4850dc70f3849f922

commit a79650abf58e4e980e0db5d4850dc70f3849f922
Author:     Michael Zhilin <mizhka@FreeBSD.org>
AuthorDate: 2024-04-07 10:14:31 +0000
Commit:     Michael Zhilin <mizhka@FreeBSD.org>
CommitDate: 2024-04-08 05:56:00 +0000

    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

 cad/PrusaSlicer/Makefile                              |  3 +--
 cad/PrusaSlicer/distinfo                              |  6 +++---
 .../files/patch-src_libslic3r_CMakeLists.txt          |  4 ++--
 .../files/patch-src_libslic3r_Format_STEP.cpp (new)   | 19 +++++++++++++++++++
 .../files/patch-src_slic3r_GUI_ConfigWizard.cpp       | 14 +++++++-------
 .../files/patch-src_slic3r_GUI_GUI__App.cpp           | 12 ++++++------
 cad/PrusaSlicer/files/patch-src_slic3r_GUI_Plater.cpp | 10 +++++-----
 .../files/patch-src_slic3r_GUI_Preferences.cpp        | 14 +++++++-------
 cad/PrusaSlicer/files/patch-src_slic3r_GUI_Tab.cpp    |  8 ++++----
 9 files changed, 54 insertions(+), 36 deletions(-)
Comment 2 Michael Zhilin freebsd_committer freebsd_triage 2024-04-08 16:42:49 UTC
(In reply to Torfinn Ingolfsen from comment #0)
Could you check fresh port? 

Thank you, 
 Michael
Comment 3 Torfinn Ingolfsen 2024-04-08 19:45:34 UTC
(In reply to Michael Zhilin from comment #2)

The new version of the port works (for loading .step files at least).
tingo@kg-core1:~/work/3D-print/2024/0408 $ prusa-slicer --info "E-Steps & Rotation Distance Measurement Tool v1.0.step"
[E-Steps & Rotation Distance Measurement Tool v1.0.step]
size_x = 130.000000
size_y = 16.000000
size_z = 8.667733
min_x = -62.800003
min_y = -5.400000
min_z = -0.000000
max_x = 67.199997
max_y = 10.600000
max_z = 8.667733
number_of_facets = 79674
manifold = yes
number_of_parts =  1
volume = 8475.240234

tingo@kg-core1:~/work/3D-print/2024/0408 $ pkg info Prusa\*
PrusaSlicer-2.7.4

tingo@kg-core1:~/work/3D-print/2024/0408 $ freebsd-version -ku
13.2-RELEASE-p11
13.2-RELEASE-p11
Comment 4 Michael Zhilin freebsd_committer freebsd_triage 2024-04-09 14:47:03 UTC
(In reply to Torfinn Ingolfsen from comment #3)
Thanks! Closed