How to solve the problem of multiple Qt installations on a Mac

Yeah, I know; this is probably not a common problem you have. But shit, this is as much or more for my benefit as yours. Anyway, let’s say you have Qt installed because you downloaded the official dmg, but then you also went and installed the Enthought Python distribution which comes with its own Qt. And also, that Qt might be a different architecture, so WHAT CAN YOU DO?!

Just export DYLD_FRAMEWORK_PATH, like so:

export DYLD_FRAMEWORK_PATH="/Library/Frameworks/Python.framework/Versions/7.2/Frameworks/:$DYLD_FRAMEWORK_PATH"

This should ensure that any loading of the Qt libraries references the Enthought ones. Of course yours might be installed in a different location (and in any case instead of referencing version 7.2 you should just use Current, but whatevs).

You are welcome.

Leave a Reply

Your email address will not be published. Required fields are marked *