错误记录编译 ijkplayer 报错 (fatal error: libyuv.h: No such file or directory #include “libyuv.h“ )
Posted 韩曙亮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误记录编译 ijkplayer 报错 (fatal error: libyuv.h: No such file or directory #include “libyuv.h“ )相关的知识,希望对你有一定的参考价值。
文章目录
参考 https://github.com/bilibili/ijkplayer 项目的编译过程 ;
一、报错信息
在编译完 ffmpeg 之后 , 执行
./compile-ijk.sh all
命令 , 编译 ijkplayer ;
这也是最后一条命令 ;
执行后报错 :
root@octopus:~/ijkplayer/ijkplayer-android/android# ./compile-ijk.sh all
profiler build: NO
[armeabi-v7a] Prebuilt : libijkffmpeg.so <= /root/ijkplayer/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/output/
[armeabi-v7a] Compile thumb : ijkplayer <= ff_cmdutils.c
[armeabi-v7a] Compile thumb : ijkplayer <= ff_ffplay.c
[armeabi-v7a] Compile thumb : ijkplayer <= ff_ffpipeline.c
[armeabi-v7a] Compile thumb : ijkplayer <= ff_ffpipenode.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkmeta.c
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c: In function 'convert_image':
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c:526:5: warning: 'avcodec_encode_video2' is deprecated (declared at /root/ijkplayer/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/output/include/libavcodec/avcodec.h:5509) [-Wdeprecated-declarations]
ret = avcodec_encode_video2(img_info->frame_img_codec_ctx, &avpkt, dst_frame, &got_packet);
^
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c: In function 'stream_close':
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c:1041:9: warning: implicit declaration of function 'ijk_soundtouch_destroy' [-Wimplicit-function-declaration]
ijk_soundtouch_destroy(is->handle);
^
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c: In function 'audio_decode_frame':
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c:2589:13: warning: implicit declaration of function 'ijk_soundtouch_translate' [-Wimplicit-function-declaration]
int ret_len = ijk_soundtouch_translate(is->handle, is->audio_new_buf, (float)(ffp->pf_playback_rate), (float)(1.0f/ffp->pf_playback_rate),
^
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c: In function 'stream_open':
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c:3655:9: warning: implicit declaration of function 'ijk_soundtouch_create' [-Wimplicit-function-declaration]
is->handle = ijk_soundtouch_create();
^
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/ff_ffplay.c:3655:20: warning: assignment makes pointer from integer without a cast
is->handle = ijk_soundtouch_create();
^
[armeabi-v7a] Compile thumb : ijkplayer <= ijkplayer.c
[armeabi-v7a] Compile thumb : ijkplayer <= ffpipeline_ffplay.c
[armeabi-v7a] Compile thumb : ijkplayer <= ffpipenode_ffplay_vdec.c
[armeabi-v7a] Compile thumb : ijkplayer <= ffmpeg_api_jni.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkplayer_android.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkplayer_jni.c
[armeabi-v7a] Compile thumb : ijkplayer <= ffpipeline_android.c
[armeabi-v7a] Compile thumb : ijkplayer <= ffpipenode_android_mediacodec_vdec.c
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/android/pipeline/ffpipenode_android_mediacodec_vdec.c: In function 'feed_input_buffer2':
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/android/pipeline/ffpipenode_android_mediacodec_vdec.c:509:9: warning: 'av_packet_split_side_data' is deprecated (declared at /root/ijkplayer/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/output/include/libavcodec/avcodec.h:4707) [-Wdeprecated-declarations]
av_packet_split_side_data(&pkt);
^
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/android/pipeline/ffpipenode_android_mediacodec_vdec.c:550:17: warning: 'avcodec_decode_video2' is deprecated (declared at /root/ijkplayer/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/output/include/libavcodec/avcodec.h:4994) [-Wdeprecated-declarations]
change_ret = avcodec_decode_video2(new_avctx, frame, &got_picture, avpkt);
^
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/android/pipeline/ffpipenode_android_mediacodec_vdec.c: In function 'feed_input_buffer':
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/android/pipeline/ffpipenode_android_mediacodec_vdec.c:757:9: warning: 'av_packet_split_side_data' is deprecated (declared at /root/ijkplayer/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/output/include/libavcodec/avcodec.h:4707) [-Wdeprecated-declarations]
av_packet_split_side_data(&pkt);
^
/root/ijkplayer/ijkplayer-android/android/ijkplayer/ijkplayer-armv7a/src/main/jni/ijkmedia/ijkplayer/android/pipeline/ffpipenode_android_mediacodec_vdec.c:797:17: warning: 'avcodec_decode_video2' is deprecated (declared at /root/ijkplayer/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/output/include/libavcodec/avcodec.h:4994) [-Wdeprecated-declarations]
change_ret = avcodec_decode_video2(new_avctx, frame, &got_picture, avpkt);
^
[armeabi-v7a] Compile thumb : ijkplayer <= allformats.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijklivehook.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkmediadatasource.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkio.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkiomanager.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkiocache.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkioffio.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkioandroidio.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkioprotocol.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkioapplication.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkiourlhook.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkasync.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkurlhook.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijklongurl.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijksegment.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkdict.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkutils.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkthreadpool.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijktree.c
[armeabi-v7a] Compile thumb : ijkplayer <= ijkfifo.c
[armeabi-v7a] Compile++ thumb: ijkplayer <= ijkstl.cpp
cc1plus: warning: command line option '-std=c99' is valid for C/ObjC but not for C++
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_aout.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_audio.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_egl.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_error.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_mutex.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_stdinc.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_thread.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_timer.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_vout.c
[armeabi-v7a] Compile thumb : ijksdl <= ijksdl_extra_log.c
[armeabi-v7a] Compile thumb : ijksdl <= color.c
[armeabi-v7a] Compile thumb : ijksdl <= common.c
[armeabi-v7a] Compile thumb : ijksdl <= renderer.c
[armeabi-v7a] Compile thumb : ijksdl <= renderer_rgb.c
[armeabi-v7a] Compile thumb : ijksdl 错误记录编译 Android 版本的 ijkplayer 报错 ( You must define ANDROID_NDK before starting. | 下载指定版本 NDK )
错误记录编译 Android 版本的 ijkplayer 报错 ( ./init-android.sh: 第 37 行: cd: android/contrib/: 没有那个文件或目录 )
错误记录Android 应用导入 ijkplayer 报错 ( uses-sdk:minSdkVersion 19 cannot be smaller than version 21 decl )
错误记录Ubuntu 安装软件报错 ( 下列软件包有未满足的依赖关系:E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。 )
错误记录Android 应用执行报错 ( java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[ )