Try taking out the QWT_DLL define in the qwtconfig.pri and then re-run qwt.