On 27 Mar, 2008, at 17:14, Emanuele Santos wrote:
The problem with jpeg in Qt is that it's included as a plugin. I don't
know about the .dmg installation, as I built mine from source.

I remember that I didn't know how to fix py2app to handle this, so I
used this hack:
After running, py2app, I copied the contents of the Qt plugins
directory to the MacOS folder inside the bundle, used
install_name_tool  to point the dylibs to the bundle's Qt framework,
png and jpeg dylibs; and put an empty qt.conf file in the Resources
folder.

It should be possible to teach py2app to do this automaticly for you,
there is already a recipe that triggers when pyQt is used by a program and
adding this logic should be doable.



The other problem I had is if a user has a Qt installation in the same
directory you had when you built the bundle, there will be conflicts
when loading the libraries. The empty qt.conf should solve that, but
qt still searches for the plugins in the installed directory first.

That one is harder to fix and seems to require the cooperation of the Qt
maintainers.

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to