1. 程式人生 > 實用技巧 >curl庫的編譯

curl庫的編譯

以下為版本curl-7.67.0的編譯,順利通過
1. 編譯openssl庫 具體參考openssl筆記 https://blog.csdn.net/yhcasey/article/details/109038884
2. curl原始碼下載:wget https://curl.haxx.se/download/curl-7.67.0.tar.gz
3. 配置
CPPFLAGS="-I/home/huyh/curl/openssl/build_arm/ -I/home/huyh/curl/openssl/build_arm/include" LDFLAGS="-L/home/huyh/curl/openssl/build_arm/lib" LIBS="-ldl" ./configure --host=arm-linux CC=arm-oe-linux-gnueabi-gcc CXX=arm-oe-linux-gnueabi-g++ --with-ssl=/home/huyh/curl/openssl/build_arm --enable-shared --enable-static --without-ca-bundle --without-gnutls --without-libidn --without-librtmp --without-libssh2 --without-nss --without-zlib --prefix=/home/huyh/curl/curl

執行完後顯示結果如下:

4. 編譯 make & make install
5. 編譯好的在/home/huyh/curl/curl目錄下,將該目錄打包放在開發板上,順利。

參考: https://blog.csdn.net/andylauren/article/details/78821916
https://www.cnblogs.com/dakewei/p/11365258.html