交叉编译curl

使用下面的命令可以交叉编译出一个不使用SSL的curl,满足基本的使用。使用的是静态库,动态库的编译虽然编译成功,但是在arm板卡上运行老是报错。最后把报错信息发布出来。有高手可以帮助解决一下。
交叉编译命令:
1、./configure --host=arm-linux CC=/home/keda/work/K2_LEDE-STABLE-17.01/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi/bin/arm-openwrt-linux-gcc CXX=/home/keda/work/K2_LEDE-STABLE-17.01/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi/bin/arm-openwrt-linux-g++ --without-ssl --disable-shared --enable-static --prefix=/home/keda/curl编译/curl_arm
2、make
3、make install

动态库报错信息:

Error relocating ./curl: curl_url: symbol not found
Error relocating ./curl: curl_mime_data_cb: symbol not found
Error relocating ./curl: curl_mime_name: symbol not found
Error relocating ./curl: curl_mime_encoder: symbol not found
Error relocating ./curl: curl_mime_init: symbol not found
Error relocating ./curl: curl_mime_headers: symbol not found
Error relocating ./curl: curl_multi_poll: symbol not found
Error relocating ./curl: curl_mime_filedata: symbol not found
Error relocating ./curl: curl_mime_free: symbol not found
Error relocating ./curl: curl_mime_subparts: symbol not found
Error relocating ./curl: curl_url_set: symbol not found
Error relocating ./curl: curl_url_cleanup: symbol not found
Error relocating ./curl: curl_mime_type: symbol not found
Error relocating ./curl: curl_mime_addpart: symbol not found
Error relocating ./curl: curl_mime_filename: symbol not found
Error relocating ./curl: curl_url_get: symbol not found
Error relocating ./curl: curl_mime_data: symbol not found

你可能感兴趣的:(curl)