Sunday, December 02, 2007
Integrate Qt and Dev-C++ in Windows (incompleted)
Integrate Qt and Dev-C++ in Windows
Download:
Qt/Windows Open Source Edition 4.1.4
(Qt/Windows Open Source Edition only support g++ in Windows currently, Visual Studio support is only available in commerical edition)
Dev-C++ 5 (versoin 4.9.9.2)
MinGW 3.4.2, a g++ compiler in windows
Decompress / install:
Decompress qt-win-opensource-src-4.1.4.zip to D:/cpp/qt/4.1.4 (you could manage your own directory for decompression)
Install MinGW to D:/cpp/mingw/
Install Dev-C++ 5 where you like (must install mingw first, because Dev-C++ 5 will look for a valid g++ compiler)
Compile Qt:
1. Enter command line, go to QT installation directory, for example, D:/cpp/qt/4.1.4
2. Start CONFIGURE tool with parameters you like, e.g.
configure -platform win32-g++ -release -static
notes: -platform win32-g++ means compile QT with g++ compiler in windows (just like mingw)
-release means only generate RELEASE targets (smaller in size, but can not be debugged)
-static means generate library files in static (aggregation) format (*.lib, *.a). This choice cause large linked objects but faster speed and less dependent requirements.
for more parameters, execute configure -help
Download:
Qt/Windows Open Source Edition 4.1.4
(Qt/Windows Open Source Edition only support g++ in Windows currently, Visual Studio support is only available in commerical edition)
Dev-C++ 5 (versoin 4.9.9.2)
MinGW 3.4.2
Decompress / install:
Decompress qt-win-opensource-src-4.1.4.zip to D:/cpp/qt/4.1.4 (you could manage your own directory for decompression)
Install MinGW to D:/cpp/mingw/
Install Dev-C++ 5 where you like (must install mingw first, because Dev-C++ 5 will look for a valid g++ compiler)
Compile Qt:
1. Enter command line, go to QT installation directory, for example, D:/cpp/qt/4.1.4
2. Start CONFIGURE tool with parameters you like, e.g.
configure -platform win32-g++ -release -static
notes: -platform win32-g++ means compile QT with g++ compiler in windows (just like mingw)
-release means only generate RELEASE targets (smaller in size, but can not be debugged)
-static means generate library files in static (aggregation) format (*.lib, *.a). This choice cause large linked objects but faster speed and less dependent requirements.
for more parameters, execute configure -help