Jacek, thanks,

Now myproject.pro is
Qt Code:
  1. TEMPLATE = app
  2. TARGET =
  3. DEPENDPATH += .
  4. INCLUDEPATH += .
  5. CONFIG += staticlib
  6. QTPLUGIN += qjpg \
  7. qgif \
  8. qmng
To copy to clipboard, switch view to plain text mode 
but I'm still getting "cannot find -lqjpg". I tried to compile with and without this is main.cpp:

Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qgif)
Q_IMPORT_PLUGIN(qmng)

but still I get the "cannot find -lqjpg" error.

Is there anything else I could try to diagnose the problem? Thanks