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:
Qt Code:
  1. #include <QtPlugin>
  2. Q_IMPORT_PLUGIN(libqjpeg)
  3. Q_IMPORT_PLUGIN(libqgif)
  4. Q_IMPORT_PLUGIN(libqmng)
To copy to clipboard, switch view to plain text mode 

And myproject.pro has:
Qt Code:
  1. CONFIG += staticlib
  2. QTPLUGIN += libqjpg \
  3. libqgif \
  4. 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.