码迷,mamicode.com
首页 > 其他好文 > 详细

模拟器运行报错:ld: symbol(s) not found for architecture x86_64

时间:2019-01-10 21:49:42      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:inf   context   模拟器   问题   sdk   arc   ref   unsigned   erro   

模拟器运行报错:

报错信息如下:

Undefined symbols for architecture x86_64:
  "_x264_encoder_open_142", referenced from:
      H264_Open_uni(int, int, int, int, int) in libPlayerSDKLib.a(ffcodec_uni.o)
      H264_Open(int, int, int, int, int) in RtSDK(ffcodec.o)
  "_x264_encoder_headers", referenced from:
      H264_Open_uni(int, int, int, int, int) in libPlayerSDKLib.a(ffcodec_uni.o)
      H264_Open(int, int, int, int, int) in RtSDK(ffcodec.o)
  "_x264_param_default", referenced from:
      H264_Open_uni(int, int, int, int, int) in libPlayerSDKLib.a(ffcodec_uni.o)
      H264_Open(int, int, int, int, int) in RtSDK(ffcodec.o)
  "_x264_param_apply_profile", referenced from:
      H264_Open_uni(int, int, int, int, int) in libPlayerSDKLib.a(ffcodec_uni.o)
      H264_Open(int, int, int, int, int) in RtSDK(ffcodec.o)
  "_x264_encoder_encode", referenced from:
      H264_EncodeFrame_uni(H264_Context*, unsigned char*, unsigned int, unsigned char**, unsigned int*) in libPlayerSDKLib.a(ffcodec_uni.o)
      H264_EncodeFrame(H264_Context*, unsigned char*, unsigned int, unsigned char**, unsigned int*) in RtSDK(ffcodec.o)
  "_x264_encoder_close", referenced from:
      H264_Open_uni(int, int, int, int, int) in libPlayerSDKLib.a(ffcodec_uni.o)
      H264_Close_uni(H264_Context*) in libPlayerSDKLib.a(ffcodec_uni.o)
      H264_Open(int, int, int, int, int) in RtSDK(ffcodec.o)
      H264_Close(H264_Context*) in RtSDK(ffcodec.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

libPlayerSDKLib这个库有问题

这个库包含在ffmpeg的库里面,

把整个ffmpeg库替换就好了。

技术分享图片

 

模拟器运行报错:ld: symbol(s) not found for architecture x86_64

标签:inf   context   模拟器   问题   sdk   arc   ref   unsigned   erro   

原文地址:https://www.cnblogs.com/tufei7/p/10252381.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!