let me guess, you are using the command prompt for MSVC, because it tries to use it even if you are intend to use MinGW. So either use the right command prompt or while running qmake use the -spec flag and set the right file.