I'm trying to use Meshlab to batch process OBJ files (quadric edge decimation, save out a smaller file). But every time I try to launch Meshlabserver through Terminal I get an error:
dyld: Library not loaded: @path/QtOpenGL.framework/Versions/5/QtOpenGL Referenced from: /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 a bug in Meshlab where it was compiled to look for Qt libraries in the wrong location. However, I am on the newest version of Meshlab (2016.12), and I'm still getting this error.
Can anybody help? Full disclosure: I am an extremely amateur coder. Thanks in advance!
This seems to be a bug in meshlab
, which is already tracked in their bug tracker. In this thread they also propose a temporary work-around. Running the following commands should get meshlab to 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.
This works for me on OsX 10.12.6 with meshlabserver v2016.10 (and the same error)
$ cd /Applications/meshlab.app/Contents/MacOS;
$ export DYLD_FRAMEWORK_PATH=../Frameworks;
$ ./meshlabserver
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With