Building Qt 4.8 on Windows 8 with VS2010 Pro

I installed VS2010 Pro for Windows 8 Consumer Preview (x64) to build applications for the desktop . (no metro). I downloaded the Qt 4.8 source and tried to set it up like this:

C:\Libraries\Qt4.8\qt-everywhere-opensource-src-4.8.0>configure -debug-and-relea
se -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3su
pport

      

I am getting this error:

Qt: Untested Windows version 6.2 detected!
Unable to detect the platform from environment. Use -platform command lineargume
nt or set the QMAKESPEC environment variable and run configure again
See the README file for a list of supported operating systems and compilers.

      

What parameters need to be set for compilation?

EDIT: this works:

configure -debug-and-release -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -platform win32-msvc2010

      

+3


source to share


1 answer


Try adding -platform win32-msvc2010

as an option configure

.



+4


source