scottbvfx píše v Po 07. 05. 2012 v 11:53 -0700:
> I'm trying to build a Pyinstaller app (current dev release) on OSX
> Lion (10.7) that includes ImageMagicks convert utility. I thought that
> including all of convert's dependencies (dylibs) that it would work on
> other machines that don't have Imagemagick installed.
> 
> When the app runs convert looks for the dylibs in their original
> directories:
> 
> dyld: Library not loaded: /opt/local/lib/liblcms2.2.dylib
>   Referenced from: /Users/scottb08/Desktop/test_application/convert
>   Reason: image not found
> 
> Is there a way to get convert to look for the dylibs in the _MEIPASS2
> directory for them?
> 
> I'm doing a --onedir build and adding: [('liblcms2.2.dylib', '/opt/
> local/lib/liblcms2.2.dylib', 'BINARY')], to COLLECT.

Have you heard about '@loader_path' or '@executable_path'?

To examine, where a binary is looking for dylibs use command

otool -L binary

You need to replace those paths with '@loader_path' - the same way as
pyinstaller does it.

You could use for that function 'mac_set_relative_dylib_deps()' from
file

./PyInstaller/depend/dylib.py


-- 
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