You need Qt compiled for the platform you wish to compile for. Qt for Linux/g++ is different than Qt for Windows/MinGW.