刘利强 2019-11-22 15:27 采纳率: 100%
浏览 796
已采纳

curl交叉编译成动态库,运行是失败报错

使用以下命令交叉编译:
./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 --enable-shared --disable-static --prefix=/home/keda/curl编译/curl_arm_shard
编译成功。但是运行报一下错误:
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

  • 写回答

1条回答

  • 内核之道 PostgreSQL领域优质创作者 2019-11-22 15:59
    关注

    1. 编译出来的libcurl.so库有没有放在系统环境库路径下?

    2. 代码中是否有链接这个库?

    根据当前报错提示,应该就是由上面2种之一原因引起的。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。