QT5.15.2静态编译带OpenSSL(支持Win7以上系统)

xingyun86 1天前 32

QT静态编译带OpenSSL

1.先静态编译OpenSSL(可选用vcpkg或者直接用perl+nmake编译)

2.x86编译

configure.bat -confirm-license -opensource -platform win32-msvc -mp -debug-and-release -static -prefix "D:\Qt5.15.2\x86\static" -I"D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x86-windows-static\include" -I"D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x86-windows-static\include\openssl" -L"D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x86-windows-static\lib" OPENSSL_PREFIX="D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x86-windows-static" OPENSSL_LIBS="-llibssl -llibcrypto -lWs2_32 -lGdi32 -lAdvapi32 -lCrypt32 -lUser32" -static-runtime -openssl-linked -qt-sqlite -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -qt-pcre -qt-harfbuzz -no-qml-debug -no-angle -nomake tests -nomake examples -skip wayland -skip qtwebengine

3.x64编译

configure.bat -confirm-license -opensource -platform win32-msvc -mp -debug-and-release -static -prefix "G:\Qt5.15.2\x64\static" -I"D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x64-windows-static\include" -I"D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x64-windows-static\include\openssl" -L"D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x64-windows-static\lib" OPENSSL_PREFIX="D:\DevelopmentEnvironment\Softwares\vcpkg\installed\x64-windows-static" OPENSSL_LIBS="-llibssl -llibcrypto -lWs2_32 -lGdi32 -lAdvapi32 -lCrypt32 -lUser32" -static-runtime -openssl-linked -qt-sqlite -qt-zlib -qt-libpng -qt-libjpeg -opengl desktop -qt-freetype -qt-pcre -qt-harfbuzz -no-qml-debug -no-angle -nomake tests -nomake examples -skip wayland -skip qtwebengine

4.编译完成

nmake&&nmake install


编译好的库,如有需要可加群联系我付费获取(编译不易,请见谅)。


×
打赏作者
最新回复 (0)
查看全部
全部楼主
返回