Home > Article > Backend Development > How to Compile Qt from Source for Visual Studio 2010?
How to Build Qt for Visual Studio 2010
While using Qt with Visual Studio 2010, it's crucial to understand that pre-built binaries for Visual Studio 2008 are incompatible. Therefore, it's necessary to compile Qt from source.
Pre-Requisites:
Building Qt:
configure.exe -release -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no-qt3support -no-multimedia -no-ltcg
nmake
Setting Environment Variables:
setx QTDIR e:\Qt
Installing the Qt Visual Studio Add-in:
Note:
For building a minimalistic Qt, the configuration flags provided above are recommended. Refer to the Qt reference manual for modifying the configuration based on specific requirements.
The above is the detailed content of How to Compile Qt from Source for Visual Studio 2010?. For more information, please follow other related articles on the PHP Chinese website!