First, the Linux static compilation Qt source code
1. Take the QT source and unzip to the folder
2.CD to QT Directory
3. Generate Makefile Using Configure
./configure
–prefix/opt/qtstatic–static–release-nomake Examples--nomake Demos
-nomake docs-continue
4. Execute make after execution is complete
5.makeinstall
Reference: http://www.cnblogs.com/qianyuming/archive/2011/03/09/1978747.html
Http://www.cnblogs.com/emouse/archive/2013/01/28/2880142.html
To compile the QT program you need to add the version of the QT Library to the project, and then go to the Pro project folder under the directory under the Configure file to modify the QT path for the newly compiled QT version, then compile the QT program.
Second, the compilation of Qt source under Windows, compiled with VS2010
1. Take the QT source and unzip to the folder
2. Run the VS2010 command-line tool COMMAND,CD to the QT directory
3. Execute command configure-platform win32-msvc2010-debug-and-release-fast-opensource-developer-build-confirm-license- Nomake Examples-nomake Demos-nomake Docs-nomake Translations
-no-openssl-webkit-no-qt3support
4. Execute NMAKE
Reference: http://hi.baidu.com/dbzhang800/item/44a2a427505e594647996247
Also compile QT program need to change QT version, modify the path.
Http://www.yaoguangkeji.com/a_G0ymd7a0.html
Windows,linux compile QT Source code (relatively simple)