编译curl-7.66.0版本:
./configure CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ --host=arm-linux --prefix=/home/guopf/tools/curl-7.66.0/build --with-ssl=/home/guopf/tools/openssl_search_path_Hi3519A --enable-debug && autoreconf -ivf
编译curl-7.20.0版本:
./configure CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ --host=arm-linux --with-random=/dev/urandom --prefix=/home/guopf/tools/curl-7.20.0/build --with-ssl=/home/guopf/tools/openssl_search_path_Hi3519A --enable-debug && autoreconf -ivf
然后执行: make -j10 && make install
说明:--enable-debug 表示编译debug版本,不需要可以不加
报错处理:
1、执行 autoreconf -ivf 可以解决如下问题引起的 make 时报错(如:../lib/.libs/libcurl.so: undefined reference to `EVP_PKEY_copy_parameters')
warning: libssl.so.1.0.0, needed by ../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
warning: libcrypto.so.1.0.0, needed by ../lib/.libs/libcurl.so, not found (try using -rpath or -rpath-link)
2、加上参数 --with-random=/dev/urandom 可以解决执行 configure 时的如下报错:
checking for "/dev/urandom"... configure: error: cannot check for file existence when cross compiling