mmiscavage píše v Út 19. 06. 2012 v 10:43 -0700:
> The absolute path to libjpeg.7.dylib
> is: /Library/Frameworks/Python.framework/Versions/7.2/lib/libjpeg.7.dylib The 
> absolute path to _imaging.so is: 
> /Library/Frameworks/Python.framework/Versions/7.2/lib/python2.7/site-packages/PIL/_imaging.so
>  

When looking for @rpath info I found out that:
- osx uses MachO binary format
- we should read MachO command LC_RPATH from the _imaging.so binary
- value of LC_RPATH should be in your case '../../../' or
'../../../../lib'
- then we need to replace @rpath by this relative path and get absolute
path for it:

  path_to_jpglib = os.path.join(DIR_TO_IMAGING_SO, '../../../../lib',
      'libjpeg.7.dylib)

- PyInstaller uses macholib for manipulation with binaries on osx.
- I think macholib should be able to read the value of LC_RPATH from
_imaging.so

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to