Fix SolveSpace not Running on macOS High Sierra

After upgrading to macOS High Sierra SolveSpace would not run. After launching the binary from the Terminal I got the following output.

/Applications/ ; exit;
[~]$/Applications/ ; exit;
dyld: Symbol not found: _inflateValidate
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
  Expected in: /Applications/
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
Abort trap: 6
Saving session...
...copying shared history...
...saving history...truncating history files...

[Process completed]

After looking through the issues on GitHub it looks like a simple way around this issue is to link directly to the system library.

cd /Applications/
install_name_tool -change @executable_path/libz.dylib /usr/lib/libz.1.dylib solvespace

After running the command in the Terminal SolveSpace appears to be running well.

Leave a Reply