ijkplayer编译 Android 版本的 ijkplayer ⑥ ( 进入 ijkplayer-android/android 目录 | 执行 compile-ijk.sh 脚本完成编译 )

Posted 韩曙亮

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ijkplayer编译 Android 版本的 ijkplayer ⑥ ( 进入 ijkplayer-android/android 目录 | 执行 compile-ijk.sh 脚本完成编译 )相关的知识,希望对你有一定的参考价值。

文章目录


参考 https://github.com/bilibili/ijkplayer 项目的编译过程 ;





一、进入 ijkplayer-android/android 目录



~/ijkplayer/ijkplayer-android/android/contrib/ 目录编译完 FFmpeg 之后 , 执行

cd ..

命令 , 进入到 ~/ijkplayer/ijkplayer-android/android/ 目录 ,





二、执行 compile-ijk.sh 脚本



执行

./compile-ijk.sh all

命令 , 编译 ijkplayer ;


完整编译过程 :

root@octopus:~/ijkplayer/ijkplayer-android/android# 
root@octopus:~/ijkplayer/ijkplayer-android/android# 
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);
     ^
[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 <= renderer_yuv420p.c
[armeabi-v7a] Compile thumb  : ijksdl <= renderer_yuv444p10le.c
[armeabi-v7a] Compile thumb  : ijksdl <= shader.c
[armeabi-v7a] Compile thumb  : ijksdl <= rgb.fsh.c
[armeabi-v7a] Compile thumb  : ijksdl <= yuv420p.fsh.c
[armeabi-v7a] Compile thumb  : ijksdl <= yuv444p10le.fsh.c
[armeabi-v7a] Compile thumb  : ijksdl <= mvp.vsh.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_vout_dummy.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_vout_overlay_ffmpeg.c
[armeabi-v7a] Compile thumb  : ijksdl <= image_convert.c
[armeabi-v7a] Compile thumb  : ijksdl <= android_audiotrack.c
[armeabi-v7a] Compile thumb  : ijksdl <= android_nativewindow.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_android_jni.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_aout_android_audiotrack.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_aout_android_opensles.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_codec_android_mediacodec_dummy.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_codec_android_mediacodec_internal.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_codec_android_mediacodec_java.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_codec_android_mediacodec.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijksdl_codec_android_mediadef.c
[armeabi-v7a] Compile thumb  : ijksdl <= ijkplayer编译 Android 版本的 ijkplayer ⑤ ( 执行 init-android-libyuv.sh | 执行 init-android-soundtouch.sh )

错误记录编译 Android 版本的 ijkplayer 报错 ( You must define ANDROID_NDK before starting. | 下载指定版本 NDK )

ijkplayer编译 Android 版本的 ijkplayer ② ( 切换到 k0.8.8 分支 | 执行 init-android.sh 脚本进行初始化操作 )

ijkplayer编译 Android 版本的 ijkplayer ④ ( 安装 make yasm 软件 | 执行 compile-ffmpeg.sh all 命令编译 ffmpeg )

ijkplayer编译 Android 版本的 ijkplayer ③ ( 执行 compile-ffmpeg.sh clean 命令 | 下载并配置 android-ndk-r10e )

错误记录编译 Android 版本的 ijkplayer 报错 ( ./init-android.sh: 第 37 行: cd: android/contrib/: 没有那个文件或目录 )