QT + openssl + VS2015静态编译
从http://slproweb.com/products/Win32OpenSSL.html下载已经编译好的openssl,一路next
我将OpenSSL-Win32\lib\VC目录下的libeay32MT.lib和ssleay32MT.lib考到了上级目录,不知道这部操作对编译是否有影响
configure参数如下
configure -static -debug-and-release -prefix “C:\Qt\Qt5.9.2\static_with_openssl_2” -platform win32-msvc2015 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-sqlite -sql-odbc -openssl-linked OPENSSL_PREFIX=C:\OpenSSL_1.0.2 OPENSSL_LIBS="-lssleay32 -llibeay32 -lgdi32" -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
nmake
nmake install
enjoy it!