[Pythonmac-SIG] How to make py2app app stub link to Cocoa framework?

Ronald Oussoren ronaldoussoren at mac.com
Sun Mar 31 13:59:46 CEST 2013


On 31 Mar, 2013, at 3:28, Kevin Walzer <kw at codebykevin.com> wrote:

> On 3/30/13 7:37 PM, sameer wrote:
>> Does anyone have any hints about how I can make this work? I am new to Mac
>> Apps and sandboxing.
> 
> This appears to be the error:
> 
> 3/30/13 7:04:02.050 PM [0x0-0xb15b15].com.falkorsystems.defisheye: ImportError: dlopen(/Users/sameer/Documents/Falkor Systems/gopro_calibration/DeFisheye/dist/DeFisheye.app/Contents/Resources/lib/python2.7/lib-dynload/cv2.so, 2): Library not loaded: /usr/X11/lib/libpng15.15.dylib
> 3/30/13 7:04:02.050 PM [0x0-0xb15b15].com.falkorsystems.defisheye: Referenced from: /Users/sameer/Documents/Falkor Systems/gopro_calibration/DeFisheye/dist/DeFisheye.app/Contents/MacOS/../Frameworks/libopencv_highgui.2.4.4.dylib
> 3/30/13 7:04:02.050 PM [0x0-0xb15b15].com.falkorsystems.defisheye: Reason: no suitable image found.  Did find:
> 3/30/13 7:04:02.050 PM [0x0-0xb15b15].com.falkorsystems.defisheye: /usr/X11/lib/libpng15.15.dylib: open() failed with errno=1
> 3/30/13 7:04:02.119 PM DeFisheye: DeFisheye Error
> 
> Some linking error to libpng, apparently. This wouldn't seem to have anything to do with the Cocoa linking issue in py2app.

Right. This appears to be an issue with copying shared libraries into the application bundle, py2app is supposed to recursively copy all libraries used into the bundle and rewrite the load commands, but for some reason han't done so for the dependencies of libopencv_highgui.2.4.4.dylib. 

There is little I can do about this without a script to reproduce the problem.

Ronald

> 
> --Kevin
> 
> -- 
> Kevin Walzer
> Code by Kevin/Mobile Code by Kevin
> http://www.codebykevin.com
> http://www.wtmobilesoftware.com
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG



More information about the Pythonmac-SIG mailing list