[Qt-interest] QImage fail to load jpg file after linking with qt in static lib way.

James Yan jyan972 at gmail.com
Sat Dec 20 12:55:19 CET 2008


oops, it works out on windows with Ivan's suggestion.
but when i do the same work on mac os, there's an error show up:
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: undefined symbols:
qt_plugin_instance_qjpeg()

anybody make it sense and work? thanks.

On Fri, Dec 19, 2008 at 8:04 PM, Ivan Kharin <korsar.akvis at gmail.com> wrote:

> > the source code works well UNTIL i link my app with qt in statilc
> > lib way, the result always be :    printf("fail to load jpg file.\n");
> > after debug in i found it fail at those qt code lines:
>
> > any suggestion for me? thanks.
>
> Use Q_IMPORT_PLUGIN() in .cpp
> and QTPLUGIN += qjpeg qtiff
> in .pro
>
>
> --
> Ivan Kharin
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081220/93ffaf4d/attachment.html 


More information about the Qt-interest-old mailing list