bunjee
18th September 2007, 11:57
Hey trollitechies,
I'm compiling a static qt lib with this line :
configure -static -qt-gif -qt-zlib -qt-libmng -qt-libpng -qt-libjpeg -plugin-sql-sqlite -plugin-sql-odbc
then I'm building it like that :
mingw32-make sub-src
And then I'm adding :
QTPLUGIN += qjpeg \
qgif
//and
LIBS += -L../../../Qt/4.3.0.static/plugins/imageformats/ -lqjpeg -lqgif\
to the .pro file.
and this in the main.cpp :
#include <QtPlugin>
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
But :
When compiling I get an undefined reference to qt_plugin_instance_qjpeg and qt_plugin_instance_qgif().
What am I doing wrong ?
I'm compiling a static qt lib with this line :
configure -static -qt-gif -qt-zlib -qt-libmng -qt-libpng -qt-libjpeg -plugin-sql-sqlite -plugin-sql-odbc
then I'm building it like that :
mingw32-make sub-src
And then I'm adding :
QTPLUGIN += qjpeg \
qgif
//and
LIBS += -L../../../Qt/4.3.0.static/plugins/imageformats/ -lqjpeg -lqgif\
to the .pro file.
and this in the main.cpp :
#include <QtPlugin>
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
But :
When compiling I get an undefined reference to qt_plugin_instance_qjpeg and qt_plugin_instance_qgif().
What am I doing wrong ?