free hit counter

Thursday, April 15, 2010

QT, SSL, MSVC2008, and Windows

I want to build my QT apps natively on windows, not using QT's default mingw package and its giant support library.

The standard MSVC2008 QT Framework SDK binaries work great until you start using lots of bells and whistles like OpenSSL and SQLite. I got away with not having to install SQLite on the windows side of things, so here is the cookbook for OpenSSL 0.9.8g and QT 4.6.2

download and install the QT Framework SDK
* http://qt.nokia.com/downloads

download and install the prebuilt OpenSSL binary pacakges
* http://www.slproweb.com/download/
* install the 32b versions
configure and build QT with explicit directions to where to find OpenSSL

configure -release -confirm-license -plugin-sql-sqlite -plugin-sql-odbc -qt-libpng -qt-libjpeg -openssl-linked -opensource -no-incredibuild-xge -I "c:\OpenSSL\include" -L "c:\OpenSSL\lib"

* thirty minutes later you should see a happy message from configure
* nmake, and several hours later you'll be all set
* if you still have linking trouble copy all the OpenSSL .lib files into the qt\4.6.2\lib directory

Labels: ,

0 Comments:

Post a Comment

<< Home