SDK- Qt
Toolchain - Mingw32
OS - XP (x86)
3rd Party - OpenSSL (My main aim was to include OpenSSL support in Qt)
1) First of all we need to compile the openSSL from source. The best cmd for OpenSSL is MSYS command prompt. To build MSYS cmd, follow the link:-
http://www.mingw.org/wiki/MSYS (don't forget to set the PATH variable as mentioned in the link )
2) Now compile the OpenSSL and set the Env Vars required for linking with Qt during it's compilation. For that refer to :-
http://qt-project.org/wiki/Compiling-OpenSSL-with-MinGW
3) Now since both MinGW and OpenSSL are ready as per Qt requirement, refer to the following link for Qt compilation:-
http://qt-project.org/wiki/Building_...ows_with_MinGW
Things to be noted (
Before reading the lines below first try compiling once otherwise you will find the below lines confusing):-
While setting OPENSSL_LIBS="-lssl -lcrypto -lgdi32 -luser32" option in your configure.cache file it may throw an error as unrecognised option....for that the best option is to directly configure rather than using the cache file. I mean from the build folder type
C:\qt-4.7.4\qt-everywhere-opensource-src-4.7.4\configure.exe -platform win32-g++ -opensource -debug -debug-and-release -no-phonon -fast -nomake examples -nomake demos -no-dsp -no-vcproj -no-cetest -no-s60 -qt-sql-odbc -qt-sql-sqlite -plugin-sql-odbc -plugin-sql-sqlite -no-qt3support -no-opengl -no-openvg -no-incredibuild-xge -openssl OPENSSL_LIBS="-lssl -lcrypto -lgdi32 -luser32" -I C:\openssl-1.0.1c\dist\include -L C:\openssl-1.0.1c\dist
It should be fine. Also if you got compiling error (while building my app): «cannot find -lQtCore4», «cannot find -lQtGui4». Here is the solution that helped me - edit file "qt-sources-dir/mkspecs/win32-g++/qmake.conf". Set QMAKE_LFLAGS = -static -static-libgcc .
Some more links which may interest you:-
http://sector.ynet.sk/qt4-tutorial/preparations.html
http://code.google.com/p/qt-msvc-ins...locationTricks
http://stackoverflow.com/questions/4...after-building
Bookmarks