On Mon, 2011-08-01 at 12:25 +0200, Martin Zibricky wrote:
> Giovanni Bajo píše v Po 01. 08. 2011 v 12:08 +0200:
> > Looks like libcups is a hidden import of Qt
> > (src/gui/painting/qcups.cpp
> > does a dlopen of libcups). I think it might be sufficient to add it to
> > PyQt4.QtGui's hook.
> 
> I think it won't be sufficient:
> - libcups is library available in almost every mac
> - if libiconv won't be used from mac but from macports
> - there still will be the same issue with two incompatible on Lion
> libiconv:
>   - with frozen app would be still bundled the one from macports or the
> one from mac, causing libcups or other libraries not to work!

There are two paths here: either we bundle *both* libcups and libiconv,
or we exclude both.

By adding libcups as a hidden import, you're effectively bundling both
of them, at the same (compatible) version. Thanks to DYLD_IMPORT_PATH,
both will be loaded from the executable (mac bundle), and there will be
no conflict whatsoever.

Otherwise, we need to exclude both, so that they will always be loaded
from system's /usr/lib. I don't know if /usr/lib libraries on Mac have a
guaranteed stable APIs. If someone can confirm this, I'm happy to add
the whole /usr/lib under bindepend.py's exclude list. Otherwise, we're
better off always bundling them.
--  
Giovanni Bajo   ::  [email protected]
Develer S.r.l.  ::  http://www.develer.com

My Blog: http://giovanni.bajo.it

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