PDA

View Full Version : How to Building Qt with OpenSSL support using the Windows SDK



josecarlosmissias
7th May 2010, 18:33
Building Qt with OpenSSL support using the Windows SDK?

MorrisLiang
8th May 2010, 06:17
You have to download OpenSSL,you can download source code (http://www.openssl.org/source/openssl-1.0.0.tar.gz) and compile it yourself,or you caon just download the binary (http://www.slproweb.com/products/Win32OpenSSL.html).

If you download the binary,install it to somewhere,like D:\OpenSSL
Then open cmd,cd to qt's directory,like D:\Qt\2010.02.1\qt
Type:

configure -openssl -I D:\OpenSSL\include -L D:\OpenSSL
After that,type nmake(mingw32-make) to build it.
It will cost you several hours.

sanjaysampat
18th October 2011, 06:48
Hi all,

I just want to show the steps, I performed to install on 64 bit.

1) Install winSDK_amd64 i.e. GRMSDKX_EN_DVD.iso.

2) Open the "Windows SDK 7.1 Command Prompt - 64bit" command prompt.
>> C:\Windows\System32\cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv64.cmd" <<

3) Install the following from the opened SDK command prompt.

4) you may download OpenSSL from "http://www.slproweb.com/products/Win32OpenSSL.html". It may be named "Win64 OpenSSL v1.0.0e". You may choose newer version.
It is also possible to choose older version (Win64 OpenSSL v0.9.8r), it it did not worked properly with QT's version.

5) Install the downloaded OpenSSL 64 bit version.

6) Install the latest QT version.

7) Change the following file in "C:\Qt\4.7.4-msvc-2010\mkspecs\win32-msvc2010\qmake.conf".
Remove " -O2 " from the following two lines in the file.
-----
QMAKE_CFLAGS_RELEASE = -MD
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -MD -Zi
-----
This was required for the version of VS2010 and QT 4.7.4. May be this step is not necessary for the newer versions.

8) Run the following from QT path
configure -webkit -openssl -I C:\OpenSSL-Win64\include -L C:\OpenSSL-Win64\lib\VC\static

9) Run the following from QT path
nmake

Regards..