目录
背景
curl如需使用https或者openssl加密相关功能,需要在curl库编译的时候增加openssl支持,此功能默认关闭,所以需要重新编译
下载
版本:openssl-1.1.1g 官网下载地址
编译
主机环境:Ubuntu16.04
目标环境:Hi3559AV100开发板
1.openssl交叉编译步骤
./Configure linux-aarch64 no-asm shared --prefix=$(pwd)/__install --cross-compile-prefix=aarch64-himix100-linux-
2.curl交叉编译
curl基础编译详细步骤参考我上一篇博客
交叉编译openssl/curl支持SSL功能
- configure --help
–with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
installation (default: /usr/local/ssl); when
possible, set the PKG_CONFIG_PATH environment
variable instead of using this option
- 编译选项
–with-ssl=“填上openssl刚安装的绝对路径”
./configure --prefix=$PWD/ARM_INSTALL --host=arm-linux CC=aarch64-himix100-linux-gcc CXX=aarch64-himix100-linux-g++ --with-ssl=/work/data/tools/openssl-1.1.1g/__install/
使用
另开一篇,待更新!!!
参考
上篇:海思交叉编译libcurl
交叉编译openssl/curl支持SSL功能
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处!
更多精彩内容,欢迎访问一只海星的主页