如何交叉编译curl?

桃扇骨 2023-06-05 05:27 153阅读 0赞
  1. 先准备一下openssl库

  编译openssl库的方法在此

  1. 获取curl源码

  wget https://curl.haxx.se/download/curl-7.65.3.tar.gz

  1. 解压

  tar xvf curl-7.65.3.tar.gz -C ~/

  cd ~/curl-7.65.3

  1. 配置

  CPPFLAGS=”-I/home/jello/openssl/ -I/home/jello/openssl/include” LDFLAGS=”-L/home/jello/openssl/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/jello/curl

  1. 编译

  make -j4

  1. 安装

  make install

转载于:https://www.cnblogs.com/dakewei/p/11365258.html

发表评论

表情:
评论列表 (有 0 条评论,153人围观)

还没有评论,来说两句吧...

相关阅读

    相关 交叉编译

    在做c项目(嵌入式编程)的时候经常能听到交叉编译。那什么是交叉编译呢? 交叉编译其实是相对于本地编译来说的。在我们学习C的时候,一般都是在自己的本地电脑上完成编

    相关 交叉编译

    一、什么是交叉编译   什么是交叉编译呢,简单地说,就是在一个平台上生成另一个平台上的可执行代码。这里需要注意的是所谓   平台,实际上包含两个概念:体系结构(Arch