QT5.15 mingw
源码: Old 1.1.1 releases | OpenSSL Library环境:
msys2 QT mingw8
编译步骤:
临时设置 mingw64 编译工具链 QT mingw810_64
export PATH="/c/Qt/Tools/mingw810_64/bin:$PATH"
静态库
perl Configure mingw64 \--prefix=/c/openssl-static \no-sm2 no-sm3 no-sm4 \no-shared # 必须执行的后续操作
sed -i 's/-shared/-static -shared/g' Makefile
mingw32-make clean
mingw32-make depend
mingw32-make -j16
mingw32-make install
动态库
perl Configure mingw64 \--prefix=/c/openssl-dll\no-sm2 no-sm3 no-sm4 \shared # 必须执行的后续操作
sed -i 's/-shared/-static -shared/g' Makefile
mingw32-make clean
mingw32-make depend
mingw32-make -j16
mingw32-make install