[Qt-interest] qt mac carbon - my app won't load bundled plugins

Paul Miller paul at fxtech.com
Thu Jan 13 16:13:03 CET 2011


In my Mac app, I'm calling QCoreApplication::setLibraryPaths() with a 
path inside my app bundle to where my "Plugins" folder is. Inside there 
is "imageformats" and inside there are libqjpeg.dylib and libqtiff.dylib.

I have modified the Qt frameworks and plugin libs to refer to 
@executable_path/../Frameworks/... in their headers. The app is using 
the bundled copies of the Qt frameworks fine.

But when I try to load a JPEG or TIFF image using QImage it does not 
load - the image plugins are not getting loaded.

Is there a way to diagnose WHY those libraries aren't loading? Some 
message handler I can trap into or something? I don't have debug Qt 
frameworks to step into.



More information about the Qt-interest-old mailing list