KDevelop-generated application crashes due to libJPEG.dylib on MacOSX 10.9.2

MK-MacPorts at techno.ms MK-MacPorts at techno.ms
Sun Mar 16 05:35:44 PDT 2014


Hi,

I am testing KDevelop a little.

After a short hiccup I was able to get a scaffold for a “graphical app” automagically built fine! :)

But the real problem starts when trying to run the app:
—
$ ./testgraphical.shell
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
./testgraphical.shell: line 4: 59742 Trace/BPT trap: 5       DYLD_LIBRARY_PATH=/Users/marko/projects/TestGraphical/build/lib/./:/opt/local/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH} "/Users/marko/projects/TestGraphical/build/src/testgraphical.app/Contents/MacOS/testgraphical" "$@"
—

So, does this mean, that a system framework tries to use a library supplied by MacPorts?

This is what otool tells me:
—
$ otool -L testgraphical
testgraphical:
	/opt/local/lib/libkdeui.5.dylib (compatibility version 5.0.0, current version 5.12.2)
	/opt/local/Library/Frameworks/QtDeclarative.framework/Versions/4/QtDeclarative (compatibility version 4.8.0, current version 4.8.5)
	/opt/local/lib/libkdecore.5.dylib (compatibility version 5.0.0, current version 5.12.2)
	/opt/local/Library/Frameworks/QtDBus.framework/Versions/4/QtDBus (compatibility version 4.8.0, current version 4.8.5)
	/opt/local/Library/Frameworks/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.5)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 157.0.0)
	/opt/local/Library/Frameworks/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.5)
	/opt/local/Library/Frameworks/QtSvg.framework/Versions/4/QtSvg (compatibility version 4.8.0, current version 4.8.5)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
—

Any hint on how to locate the culprit for the crash?

Greets,
Marko


More information about the macports-dev mailing list