使用MinGW64在Windows中创建OpenSSL dll
我正在尝试在Windows中为我的项目构建OpenSSL。我正在使用MinGW64进行此操作。但是,在尝试构建共享库时,OpenSSL dll.a仍然是存档文件。我将OpenSSL配置如下:使用MinGW64在Windows中创建OpenSSL dll,dll,openssl,mingw-w64,Dll,Openssl,Mingw W64,我正在尝试在Windows中为我的项目构建OpenSSL。我正在使用MinGW64进行此操作。但是,在尝试构建共享库时,OpenSSL dll.a仍然是存档文件。我将OpenSSL配置如下: Configure --cross-compile-prefix=x86_64-w64-mingw32- --install-prefix=C:\install --prefix=/openssl-1.0.1e shared no-idea no-rc5 no-mdc2 mingw64 我希望有人能帮我解
Configure --cross-compile-prefix=x86_64-w64-mingw32- --install-prefix=C:\install --prefix=/openssl-1.0.1e shared no-idea no-rc5 no-mdc2 mingw64
我希望有人能帮我解决我的错误。我不相信OpenSSL支持这种配置
Configure
具有MinGW64
目标,但它看起来只构建静态存档
# MinGW
"mingw", "gcc:-mno-cygwin -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -fomit-frame-pointer
-O3 -march=i486 -Wall::-D_MT:MINGW32:-lws2_32 -lgdi32 -lcrypt32:BN_LLONG
${x86_gcc_des} ${x86_gcc_opts} EXPORT_VAR_AS_FN:${x86_asm}:coff:win32:
cygwin-shared:-D_WINDLL -DOPENSSL_USE_APPLINK:-mno-cygwin:.dll.a",
...
"mingw64", "gcc:-mno-cygwin -DL_ENDIAN -O3 -Wall -DWIN32_LEAN_AND_MEAN -DUNICODE
-D_UNICODE::-D_MT:MINGW64:-lws2_32 -lgdi32 -lcrypt32:SIXTY_FOUR_BIT RC4_CHUNK_LL
DES_INT EXPORT_VAR_AS_FN:${x86_64_asm}:mingw64:win32:cygwin-shared:-D_WINDLL:
-mno-cygwin:.dll.a",
但我认为它应该被援引为:
perl Configure mingw64 no-shared no-asm --prefix=/C/install
如果愿意,您可以复制/粘贴mingw64
目标并在其上转动旋钮。交叉编译时,我经常复制类似的目标
可能也会有帮助