Open ghost opened 6 years ago
I ran into this after updating my ndk. It would seem that gstreamer is incompatible with the newest ndk. It would work before updating ndk, then stopped working after updating ndk. Verified on two separate machines. verified with 1.14.1 and 1.14.3
Executing tasks: [:app:assembleDebug]
External native generate JSON debug: building json with force flag false External native generate JSON debug: starting JSON generation External native generate JSON debug: using platform version 16 for ABI X86 and min SDK version 15 External native generate JSON debug: JSON 'C:\Users\Ryan\work\android_rtsp_example\app.externalNativeBuild\ndkBuild\debug\x86\android_gradle_build.json' was up-to-date External native generate JSON debug: using platform version 16 for ABI ARMEABI_V7A and min SDK version 15 External native generate JSON debug: JSON 'C:\Users\Ryan\work\android_rtsp_example\app.externalNativeBuild\ndkBuild\debug\armeabi-v7a\android_gradle_build.json' was up-to-date External native generate JSON debug: using platform version 21 for ABI ARM64_V8A and min SDK version 15 External native generate JSON debug: JSON 'C:\Users\Ryan\work\android_rtsp_example\app.externalNativeBuild\ndkBuild\debug\arm64-v8a\android_gradle_build.json' was up-to-date External native generate JSON debug: JSON generation completed without problems :app:buildInfoDebugLoader :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateJsonModelDebug UP-TO-DATE :app:externalNativeBuildDebug Build rtsp-example arm64-v8a GStreamer : [GEN] => gst-build-arm64-v8a/gstreamer_android.c GStreamer : [COMPILE] => gst-build-arm64-v8a/gstreamer_android.c clang.exe: error: unsupported option '-fpic' for target 'x86_64-w64-windows-gnu' make: *** [gst-build-arm64-v8a/gstreamer_android.o] Error 1 :app:externalNativeBuildDebug FAILED :app:buildInfoGeneratorDebug
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:externalNativeBuildDebug'.
Build command failed. Error while executing process C:\Users\Ryan\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Ryan\work\android_rtsp_example\app\jni\Android.mk NDK_APPLICATION_MK=C:\Users\Ryan\work\android_rtsp_example\app\jni\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:/Users/Ryan/work/android_rtsp_example/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=C:\Users\Ryan\work\android_rtsp_example\app\build\intermediates\ndkBuild\debug\lib NDK_APPLICATION_MK=jni/Application.mk GSTREAMER_JAVA_SRC_DIR=src GSTREAMER_ROOT_ANDROID=C:/Users/Ryan/work/gstreamer-1.0-android-universal-1.14.1 GSTREAMER_ASSETS_DIR=src/assets C:/Users/Ryan/work/android_rtsp_example/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/librtsp-example.so} GStreamer : [GEN] => gst-build-arm64-v8a/gstreamer_android.c GStreamer : [COMPILE] => gst-build-arm64-v8a/gstreamer_android.c clang.exe: error: unsupported option '-fpic' for target 'x86_64-w64-windows-gnu' make: *** [gst-build-arm64-v8a/gstreamer_android.o] Error 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 9s 7 actionable tasks: 3 executed, 4 up-to-date
hi, I'm getting this error. How do I edit it?
> Build command failed.