我正在尝试构建一个windows openssl库,用于一个带有arm cortex m0处理器的rasbery pi pico微控制器。
我从官方网站下载了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"我做错了什么?
https://stackoverflow.com/questions/68638662
复制相似问题