1.) why do you need msys? I wouldn't use it asit just makes trouble when compiling qt
2.) your call to qmake creates a makefile for msvc, not for mingw, add '-spec' option to qmake call and select the correct one for mingw.