如何交叉编译curl?
- 先准备一下openssl库
编译openssl库的方法在此
- 获取curl源码
wget https://curl.haxx.se/download/curl-7.65.3.tar.gz
- 解压
tar xvf curl-7.65.3.tar.gz -C ~/
cd ~/curl-7.65.3
- 配置
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
- 编译
make -j4
- 安装
make install
转载于//www.cnblogs.com/dakewei/p/11365258.html
还没有评论,来说两句吧...