[Qt-interest] qt mac carbon - my app won't load bundled plugins
Paul Miller
paul at fxtech.com
Thu Jan 13 17:25:15 CET 2011
On 1/13/2011 9:13 AM, Paul Miller wrote:
> 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.
Nevermind - found the problem. My script that set the headers for my
binary itself were pointing to the wrong place. All the
frameworks+plugins were right it was my app itself that was wrong.
More information about the Qt-interest-old
mailing list