bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.54k stars 8.13k forks source link

IJKMediaFramework编译成功,但是工程中用模拟器报错(demo中也一样),x86_64出错i386可以。 #2743

Open Neo4201 opened 7 years ago

Neo4201 commented 7 years ago

Undefined symbols for architecture x86_64: "_av_application_on_async_statistic", referenced from: _call_inject_statistic in IJKMediaFramework(ijkasync.o) "_av_application_on_async_read_speed", referenced from: _call_inject_async_fill_speed in IJKMediaFramework(ijkasync.o) "_ijkav_register_ijkio_protocol", referenced from: _ijkav_register_all in IJKMediaFramework(allformats.o) "_ijkav_register_async_protocol", referenced from: _ijkav_register_all in IJKMediaFramework(allformats.o) "_ijkav_register_ijktcphook_protocol", referenced from: _ijkav_register_all in IJKMediaFramework(allformats.o) "_ijkav_register_ijkhttphook_protocol", referenced from: _ijkav_register_all in IJKMediaFramework(allformats.o) "_ijkav_register_ijklongurl_protocol", referenced from: _ijkav_register_all in IJKMediaFramework(allformats.o) "_av_application_on_io_control", referenced from: _ijkurlhook_call_inject in IJKMediaFramework(ijklivehook.o) _ijkurlhook_call_inject in IJKMediaFramework(ijkurlhook.o) _ijksegment_open in IJKMediaFramework(ijksegment.o) "_ijkav_register_ijksegment_protocol", referenced from: _ijkav_register_all in IJKMediaFramework(allformats.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

yscMichael commented 4 years ago

我也遇到这个问题了。用FFmpeg4.0.1编译的,FFmpeg3.4是正常的

lucking commented 2 years ago

添加系统依赖库:libz .tbd libbz2.tbd AudioToolbox .framework AVFoundation .framework CoreVideo .framework CoreMedia .framework CFNetwork .framework OpenGLES .framework MediaPlayer .framework MobileCoreServices .framework VideoToolbox .framework SystemConfiguration .framework

11101b commented 1 year ago

请问解决了吗,我也碰到这个问题

lucking commented 1 year ago

请问解决了吗,我也碰到这个问题

解决了,我自己编译了一个,有需要的话,加我qq: 1178690076