【问题标题】:Compile OpenSSL MinGw on windows - make[1]: *** [Makefile:2800: crypto/dso/dso_win32.o] Error 1在 Windows 上编译 OpenSSL MinGw - make[1]: *** [Makefile:2800: crypto/dso/dso_win32.o] 错误 1
【发布时间】:2018-11-03 13:18:02
【问题描述】:

我正在尝试在 Windows 上使用 MinGw 32 位构建 OpenSSL,因此 我按照要求安装了 mingw 和 MSYS,然后我在 MSYS 上安装了 Perl,我从官方网站下载了 OpenSSL-1.1.1,我将其解压缩到 C:/openssl

-tar xf

然后,在 MSYS 中,我做了:

-perl 配置mingw shared --prefix=/c/openssl

-使依赖

-制作

在这一点上,它给了我tons of errors

make[1]: *** [Makefile:2772: crypto/dso/dso_win32.o] Error 1
make[1]: Leaving directory '/c/openssl'
make: *** [Makefile:171: all] Error 2

我在 stackoverflow 和谷歌上四处寻找答案,但我找不到任何关于我的问题的答案。我做错什么了 ?任何帮助将不胜感激,谢谢。

【问题讨论】:

    标签: makefile build compiler-errors openssl mingw


    【解决方案1】:

    我终于找到了答案,因为 MSYS2 的导出路径,我使用了错误的 gcc(不是 mingw 的)。

    我做到了

    哪个gcc

    它给了我错误的路径,所以这样做

    export PATH="/path to msys/msys2/mingw32/bin:$PATH"

    成功了。

    如果有人遇到同样的问题,希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 2022-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-27
      • 2015-08-06
      • 1970-01-01
      相关资源
      最近更新 更多