yangjie10930/EpMedia

重新编译发生的错误?请指明下是哪里发生的错误可以么

justinhaisheng opened this issue · 0 comments

Error:FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':joevideolib:externalNativeBuildDebug'.

Build command failed.
Error while executing process H:\dev\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\android_as_work\EpMedia\joevideolib\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\android_as_work\EpMedia\joevideolib\src\main\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=D:/android_as_work/EpMedia/joevideolib/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\android_as_work\EpMedia\joevideolib\build\intermediates\ndkBuild\debug\lib D:/android_as_work/EpMedia/joevideolib/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libffmpeg.so}
[armeabi-v7a] Compile thumb : ffmpeg <= Jni_FFmpegCmd.c
In file included from D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.h:22:0,
from D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg_thread.h:4,
from D:/android_as_work/EpMedia/joevideolib/src/main/jni/Jni_FFmpegCmd.c:3:
D:/android_as_work/EpMedia/joevideolib/src/main/jni/config.h:45:0: warning: "HAVE_NEON" redefined
#define HAVE_NEON 0
^
:0:0: note: this is the location of the previous definition
D:/android_as_work/EpMedia/joevideolib/src/main/jni/Jni_FFmpegCmd.c: In function 'ffmpeg_callback':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/Jni_FFmpegCmd.c:50:38: warning: passing argument 2 of '(*jvm)->AttachCurrentThread' from incompatible pointer type
(*jvm)->AttachCurrentThread(jvm, (void **) &env, NULL);
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/Jni_FFmpegCmd.c:50:38: note: expected 'const struct JNINativeInterface ***' but argument is of type 'void **'
D:/android_as_work/EpMedia/joevideolib/src/main/jni/Jni_FFmpegCmd.c: In function 'ffmpeg_progress':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/Jni_FFmpegCmd.c:59:38: warning: passing argument 2 of '(*jvm)->AttachCurrentThread' from incompatible pointer type
(*jvm)->AttachCurrentThread(jvm, (void **) &env, NULL);
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/Jni_FFmpegCmd.c:59:38: note: expected 'const struct JNINativeInterface ***' but argument is of type 'void **'
[armeabi-v7a] Compile thumb : ffmpeg <= cmdutils.c
In file included from D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.h:22:0,
from D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg_thread.h:4,
from D:/android_as_work/EpMedia/joevideolib/src/main/jni/cmdutils.c:32:
D:/android_as_work/EpMedia/joevideolib/src/main/jni/config.h:45:0: warning: "HAVE_NEON" redefined
#define HAVE_NEON 0
^
:0:0: note: this is the location of the previous definition
D:/android_as_work/EpMedia/joevideolib/src/main/jni/cmdutils.c: In function 'exit_program':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/cmdutils.c:144:1: warning: 'noreturn' function does return
}
^
[armeabi-v7a] Compile thumb : ffmpeg <= ffmpeg.c
In file included from D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:26:0:
D:/android_as_work/EpMedia/joevideolib/src/main/jni/config.h:45:0: warning: "HAVE_NEON" redefined
#define HAVE_NEON 0
^
:0:0: note: this is the location of the previous definition
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c: In function 'do_streamcopy':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:2098:9: warning: 'avpicture_fill' is deprecated (declared at H:\ffmpeg\ffmpeg-3.3.4/libavcodec/avcodec.h:5546) [-Wdeprecated-declarations]
int ret = avpicture_fill(&pict, opkt.data, ost->st->codecpar->format, ost->st->codecpar->width, ost->st->codecpar->height);
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c: In function 'init_output_stream':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:3484:9: warning: 'avcodec_copy_context' is deprecated (declared at H:\ffmpeg\ffmpeg-3.3.4/libavcodec/avcodec.h:4326) [-Wdeprecated-declarations]
ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx);
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:3484:9: warning: 'codec' is deprecated (declared at H:\ffmpeg\ffmpeg-3.3.4/libavformat/avformat.h:893) [-Wdeprecated-declarations]
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:3538:9: warning: 'codec' is deprecated (declared at H:\ffmpeg\ffmpeg-3.3.4/libavformat/avformat.h:893) [-Wdeprecated-declarations]
ost->st->codec->codec= ost->enc_ctx->codec;
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c: In function 'check_keyboard_interaction':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:3925:13: warning: 'codec' is deprecated (declared at H:\ffmpeg\ffmpeg-3.3.4/libavformat/avformat.h:893) [-Wdeprecated-declarations]
debug = input_streams[0]->st->codec->debug<<1;
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:3944:13: warning: 'codec' is deprecated (declared at H:\ffmpeg\ffmpeg-3.3.4/libavformat/avformat.h:893) [-Wdeprecated-declarations]
input_streams[i]->st->codec->debug = debug;
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c: In function 'sub2video_push_ref':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:229:9: warning: ignoring return value of 'av_buffersrc_add_frame_flags', declared with attribute warn_unused_result [-Wunused-result]
av_buffersrc_add_frame_flags(ist->filters[i]->filter, frame,
^
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c: In function 'sub2video_flush':
D:/android_as_work/EpMedia/joevideolib/src/main/jni/ffmpeg.c:304:9: warning: ignoring return value of 'av_buffersrc_add_frame', declared with attribute warn_unused_result [-Wunused-result]
av_buffersrc_add_frame(ist->filters[i]->filter, NULL);
^
C:\Users\haisheng\AppData\Local\Temp\ccsUnWQy.s: Assembler messages:
C:\Users\haisheng\AppData\Local\Temp\ccsUnWQy.s:436: Error: bad instruction cmovg r3,r2' C:\Users\haisheng\AppData\Local\Temp\ccsUnWQy.s:437: Error: bad instruction cmovg r1,r3'
C:\Users\haisheng\AppData\Local\Temp\ccsUnWQy.s:439: Error: bad instruction cmovl r0,r3' C:\Users\haisheng\AppData\Local\Temp\ccsUnWQy.s:441: Error: bad instruction cmovg r3,r2'
make: *** [D:/android_as_work/EpMedia/joevideolib/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/ffmpeg/ffmpeg.o] Error 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.