【问题标题】:Openssl, arm, windows, msys2, dirent.hOpenssl、arm、windows、msys2、dirent.h
【发布时间】:2021-08-03 15:16:12
【问题描述】:

我正在尝试为带有 arm cortex m0 处理器的 rasbery pi pico 微控制器构建一个 windows openssl 库。

我从官网下载了openssl库并解压。安装 MSYS2 并启动它。它用 openssl 库指明了目录的路径:

cd /C/openssl-3.0.0-beta1

为配置文件选择的设置:

./Configure gcc --cross-compile-prefix=arm-none-eabi- --prefix=/K/OpenSSL-x32-arm -mcpu=cortex-m0plus PROCESSOR=ARM -DL_ENDIAN no-shared -DNO_SYSLOG -DOPENSSL_NO_X509 -DOPENSSL_NO_X509V3 -DOPENSSL_NO_X509_VFY no-idea no-camellia no-seed no-bf no-cast no-des no-rc4 no-rc5 no-md2 no-md4 no-ripemd no-mdc2 no-dsa no-dh no-ec no-ecdsa no-ecdh no-sock no-ssl2 no-ssl3 no-err no-engine no-hw

并开始编译:

make depend && make

它会抛出一个错误:

In file included from c:\msys64\mingw64\arm-none-eabi\include\dirent.h:39,
             from crypto/LPdir_unix.c:44,
             from crypto/o_dir.c:28:
c:\msys64\mingw64\arm-none-eabi\include\sys\dirent.h:10:2: error: #error "<dirent.h> not supported"
   10 | #error "<dirent.h> not supported"

我做错了什么?

【问题讨论】:

    标签: c++ openssl arm msys2 dirent.h


    【解决方案1】:

    树莓派 pico 实际上没有文件系统,所以它不支持文件操作。此外,它只有 246kb 的可编程存储器。您确定要在 OpenSSL 上大放异彩吗?还有更小的 TLS 堆栈,例如 Mbed-TLS (WolfSSL (

    【讨论】:

      猜你喜欢
      • 2019-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-25
      • 1970-01-01
      • 1970-01-01
      • 2019-10-06
      • 2020-12-07
      相关资源
      最近更新 更多