-
Notifications
You must be signed in to change notification settings - Fork 123
Windows MSVC Static Build Guide
Benjamin O edited this page Aug 24, 2018
·
18 revisions
- Perl (Try ActivePerl or Strawberry Perl)
- Latest Qt sources (get through the maintenance tool here)
- Latest MSVC++ (get through Visual Studio Installer)
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 (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
under construction
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
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