PDA

View Full Version : plugin problem



whoops.slo
8th February 2007, 08:37
Hi!

I use Qt 4.2.2 Opensource on Windows XP. When compiling I get this error: "undefined reference to 'qt_plugin_instance_qjpeg1'
What does this mean and how can I fix that?

I have compiled Qt using this keys:
-release -shared -qt-sql-sqlite -qt-zlib -qt-gif -qt-libpng -qt-libjpeg.
In my .pro file I put:
QTPLUGIN += qjpeg
In my .cpp file I put:
#include <QImageIOPlugin>
Q_IMPORT_PLUGIN(qjpeg)
I have created qt.conf file with:
[Paths]
Prefix = ./
Plugins = plugins

Is it a problem since my .cpp file is different than my main.cpp?
Thanks,
Luka

wysota
8th February 2007, 10:03
Lose all references to the plugin. You have a shared Qt but you try to reference a static plugin which obviously doesn't exist.