Skip to content

Windows MSVC Static Build Guide

Benjamin O edited this page Aug 24, 2018 · 18 revisions

Prerequisites

OpenSSL

Get OpenSSL

To start, get the latest stable OpenSSL source through git

git clone https://github.com/openssl/openssl.git

And switch to the latest stable branch (as of the time of writing, it is OpenSSL_1_1_0-stable)

git checkout <latest stable branch>

Configure OpenSSL

Configure OpenSSL (make sure you have perl installed and in path)

64-bit: perl Configure VC-WIN64A no-shared threads

32-bit: perl Configure VC-WIN32 no-shared threads

Build OpenSSL

under construction

64-bit:

perl Configure VC-WIN64A no-shared threads

configure -prefix C:\Qt\5.10.1\Static_x64 -platform win32-msvc -release -opensource -confirm-license -static -ltcg -nomake examples -nomake tools -nomake examples -nomake tools -openssl-linked OPENSSL_LIBS="-llibssl -llibcrypto" -I C:\Progra~1\openssl\include  -L C:\Progra~1\openssl\lib

32-bit:

perl Configure VC-WIN32 no-shared threads

configure -prefix C:\Qt\5.10.1\Static_x86 -platform win32-msvc -release -opensource -confirm-license -static -ltcg -nomake examples -nomake tools -nomake examples -nomake tools -openssl-linked OPENSSL_LIBS="-llibssl -llibcrypto" -I C:\Progra~2\openssl\include  -L C:\Progra~2\openssl\lib
Clone this wiki locally