I have final executable myGUIExec; In which I will be linking separately libraries of QtCore and QtGui as libQtCore.a and libQtGui.a

Now My project requirement is to make shared libraries of Qwt and it should not link to QtCore and QtGui

I did following steps

in src.pro in file

QT -= core -gui

but I am getting compilation error as

qwt_abstract_scale_draw.cpp:14:18: fatal error: qmap.h: No such file or directory


WHat is correct way to make shared library of qwt.so and it should not link or contain code of QtCore and QtGUI