Meshlabserver on MacOS will not work

I am trying to use Meshlab to batch process OBJ files (scrolling in a square edge, saving a smaller file). But every time I try to start Meshlabserver via Terminal , I get an error:

dyld: library not loaded: @ path / QtOpenGL.framework / Versions / 5 / QtOpenGL Link: /Applications/meshlab.app/Contents/MacOS/meshlabserver Reason: image not found Trace / BPT trap: 5

I did some research, and it looks like a couple of years ago (2012/2013) there was an error in Meshlab where it was compiled to look for Qt libraries in the wrong place. However, I am in the latest version of Meshlab (2016.12) and I am still getting this error.

Can anyone help? Full disclosure: I am a very amateur coder. Thanks in advance!

+5
source share
2 answers

This seems to be a bug in meshlab that is already being tracked in bug tracking . In this topic, they also offer temporary work. Running the following commands should make meshlab work:

 cd /Applications/meshlab.app/Contents/MacOS install_name_tool -add_rpath "@executable_path/../Frameworks" meshlabserver 

As far as I understand, this command needs to be run once, after which starting meshlabserver works without problems.

+2
source

This works for me on OsX 10.12.6 with meshlabserver v2016.10 (with the same error)

 $ cd /Applications/meshlab.app/Contents/MacOS; $ export DYLD_FRAMEWORK_PATH=../Frameworks; $ ./meshlabserver 
0
source

Source: https://habr.com/ru/post/1264685/


All Articles