Table of Contents
Trouble shooting on Max OSX
Symbol not found (OSX 10.13 High Sierra)
dyld: Symbol not found: _inflateValidate
If you upgrade to OSX 10.13 High Sierra, you may experience the following error:
dyld: Symbol not found: _inflateValidate Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib Expected in: /Applications/Morpheus.app/Contents/Frameworks/libz.1.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib fish: '/Applications/Morpheus.app/Cont…' terminated by signal SIGABRT (Abort)
Solution
The is caused by the fact that Mac OSX 10.13 uses a new version of zlib.
You can use the following workaround. Open a terminal and copy the system's version of zlib to the Morpheus bundle like this:
cp /usr/lib/libz.1.dylib /Applications/Morpheus.app/Contents/Frameworks/
Library not found (OSX 10.10)
dyld: Library not loaded: /usr/X11/lib/libXpm.4.dylib
Problem
Some users of OSX 10.10 encounter this error during simulation:
dyld: Library not loaded: /usr/X11/lib/libXpm.4.dylib Referenced from: /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot-4.4.3 Reason: image not found
Solution
Mac OSX 10.13 seems to use a new version of zlib.
You can try the following as a workaround. Open a terminal and copy the system's version of zlib to the Morpheus bundle like this:
cp /usr/lib/libz.1.dylib /Applications/Morpheus.app/Contents/Frameworks/
GateKeeper (OSX 10.9+)
Cannot open Morpheus.app because of "unidentified developer"
Problem
Users of Mac OSX 10.9 (Mavericks) may get the following message from GateKeeper when installing Morpheus.
This happens to all software that is not bought in the Mac App Store or developed by people that refuse to pay Apple to certify free software.
Solution 1
- Right-click (or control-click) the application and choose “Open”
- Click the “Open” button at the next dialog warning to launch the app anyway
Solution 2
Open System Preferences and then Security & Privacy panel. In this panel, select the “Open Anyway” button.
Multiple Qt libraries (fixed)
Morpheus (GUI) crashes on start-up due to multiple Qt libraries
Note: this problem is solved in Mac bundles as of version 1.1 revision 928.
Problem
On some Mac systems, Morpheus (graphical user interface) may crash on startup complaining that
./Morpheus.app/Contents/MacOS/Binaries/morpheus-gui objc[7971]: Class QCocoaColorPanelDelegate is implemented in both /Applications/./Morpheus.app/Contents/MacOS/Binaries/../../Frameworks/QtGui.framework/Versions/4/QtGui and /opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
This problem occurs on machines that have both a system-wide installation of Qt (in /opt/local
) and the own Qt libraries and plugins that come with Morpheus. In this case, Qt does not know which one to use.
Solution
Download a new version. In newer versions of Morpheus for Mac (since version 1.1, revision 928) this problem is solved by explicitly setting the absolute path to find the correct Qt plugins.
For developers facing the same problem, here is the code for this solution:
#if defined(Q_OS_MAC) // get current directory QDir dir (QApplication::applicationDirPath()); // move up folder structure within the bundle dir.cdUp(); dir.cdUp(); // set path for Qt plugins dir.cd("plugins"); // explicitly set the absolute libraryPath QApplication::setLibraryPaths( QStringList( dir.absolutePath() ) ); // print new library path to screen QStringList libpaths = QApplication::libraryPaths(); qDebug() << "(Mac only) Library Path (incl. plugins): " << libpaths; #endif
Gnuplot.app libfreetype library (fixed)
Error when running simulation: libfreetype library not loaded
Note: this problem is solved in version 1.1. Morpheus now uses a symbolic link to the system version of the library, instead of shipping the library itself.
Problem
Due to a problem with Gnuplot.app (v4.4.3), users may experience this error when running a simulation:
dyld: Library not loaded: /opt/X11/lib/libfreetype.6.dylib Referenced from: /usr/X11/lib/libfontconfig.1.dylib Reason: Incompatible library version: libfontconfig.1.dylib requires version 15.0.0 or later, but libfreetype.6.dylib provides version 13.0.0
Solution 1
Instead of using bundled libfreetype
, Gnuplot.app should use the one that comes with your X11. In a terminal, type:
cd /Applications/Gnuplot.app/Contents/Resources/lib mv libfreetype.6.dylib libfreetype.6.dylib.bak ln -s /usr/X11/lib/libfreetype.6.dylib .
Solution 2
If that does not work, try one of the following:
- Install gnuplot through MacPorts or Fink.
- Install older version of Gnuplot.app: Gnuplot.app (v4.2.5).
- Build gnuplot yourself: MacUpdate