linux-arm交叉编译curl

1.需要依赖库openssl

下载openssl后的编译命令

./config no-asm shared no-async --prefix=/home/maowendi/ --cross-compile-prefix=arm-linux-

2.编译curl

configure的时候报错

开始的时候没有注意,直接编译,报如下错误

注意

于是修改configure参数 添加如下

-Wl,-rpath-link参数

 

CPPFLAGS="-I/home/maowendi//openssl-1.1.0h/openssl_lib_out/ -I/home/maowendi//openssl-1.1.0h/openssl_lib_out/include" LDFLAGS="-Wl,-rpath-link,/home/maowendi/openssl-1.1.0h/openssl_lib_out/lib -L/home/maowendi/openssl-1.1.0h/openssl_lib_out/lib" LIBS="-ldl" ./configure --host=arm-linux CC=arm-linux-gcc CXX=arm-linux-g++ --with-ssl --enable-shared --enable-static --disable-dict --disable-ftp --disable-imap --disable-ldap --disable-ldaps --disable-pop3 --disable-proxy --disable-rtsp --disable-smtp --disable-telnet --disable-tftp --disable-zlib --without-ca-bundle --without-gnutls --without-libidn --without-librtmp --without-libssh2 --without-nss --without-zlib --prefix=/home/maowendi/curl-7.65.3/curl-7.65.3_out_lib

注意对应的路径要替换成自己的库和头文件的路径

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值