Is possible openframeworks work with meshlabserver

Hi…

I work on a 3d project now, and I like reduce mesh size before import to app. I try run meshlabserver with “Quadric Edge Collapse Decimation” filter on Mac OS X.

My Usage:

  
/Applications/meshlab.app/Contents/MacOS/meshlabserver -i /Users/Felix/Desktop/sample/Laurana50k.ply -o result.ply -s /Users/Felix/Desktop/sample/test.mlx  

But it’s show Library not loaded Error:

  
dyld: Library not loaded: QtXml.framework/Versions/4/QtXml  
  Referenced from: /Applications/meshlab.app/Contents/MacOS/meshlabserver  
  Reason: image not found  
Trace/BPT trap  

It’s I get something wrong? It’s like meshlabserver hasn’t find Qt Framework. I otool meshlabserver with:

  
otool -L /Applications/meshlab.app/Contents/MacOS/meshlabserver   
/Applications/meshlab.app/Contents/MacOS/meshlabserver:  
	@executable_path/libcommon.1.dylib (compatibility version 1.0.0, current version 1.0.0)  
	QtXml.framework/Versions/4/QtXml (compatibility version 4.6.0, current version 4.6.2)  
	QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.6.0, current version 4.6.2)  
	QtGui.framework/Versions/4/QtGui (compatibility version 4.6.0, current version 4.6.2)  
	QtCore.framework/Versions/4/QtCore (compatibility version 4.6.0, current version 4.6.2)  
	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)  
	/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)  
	/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.9.0)  
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 438.0.0)  
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.1)  

It’s feel like meshlabserver find Qt at SYSTEM PATH, don’t like otool meshlab show “@executable_path/…/Frameworks/QtXml.framework/Versions/4/QtXml (compatibility version 4.6.0, current version 4.6.2)”

How can I solve this problem? Should I copy Qt Framework to root, or compile my own version with custom PATH?

2+ years later, I find meshlabserver on OS X impractically crashy even with ordinary shell scripting…maybe it’s more stable on another OS.