Thanks. I think I have the static plugins because in the "plugins/imageformats" I have:
libqgif.a, libqjpeg.a, libqmng.a, libqsvg.a, libqtiff.a.
In my main.cpp I declare:
#include <QtPlugin>
Q_IMPORT_PLUGIN(libqjpeg)
Q_IMPORT_PLUGIN(libqgif)
Q_IMPORT_PLUGIN(libqmng)
#include <QtPlugin>
Q_IMPORT_PLUGIN(libqjpeg)
Q_IMPORT_PLUGIN(libqgif)
Q_IMPORT_PLUGIN(libqmng)
To copy to clipboard, switch view to plain text mode
And myproject.pro has:
CONFIG += staticlib
QTPLUGIN += libqjpg \
libqgif \
libqmng
CONFIG += staticlib
QTPLUGIN += libqjpg \
libqgif \
libqmng
To copy to clipboard, switch view to plain text mode
I also put the static plugins files in the same folder with my .pro file. Still the compiler says that "-llibjpg" not found. What I am doing wrong? Compilation works if I don't make the above declarations in the main.cpp and myproject.pro file.
Bookmarks