centricular / android_rtsp_example

Example application using RTSP on android, with a gradle build system
19 stars 9 forks source link

gst-build-armeabi-v7a/gstreamer_android.c error #1

Open ghost opened 6 years ago

ghost commented 6 years ago

hi, I'm getting this error. How do I edit it?

> Build command failed.

Error while executing process C:\Users\Samsung\AppData\Local\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\Rtsp\android_rtsp_example-master\app\jni\Android.mk NDK_APPLICATION_MK=D:\Rtsp\android_rtsp_example-master\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=D:/Rtsp/android_rtsp_example-master/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\Rtsp\android_rtsp_example-master\app\build\intermediates\ndkBuild\debug\lib NDK_APPLICATION_MK=jni/Application.mk GSTREAMER_JAVA_SRC_DIR=src GSTREAMER_ROOT_ANDROID=D:/Rtsp/gstreamer/android GSTREAMER_ASSETS_DIR=src/assets D:/Rtsp/android_rtsp_example-master/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/librtsp-example.so} [armeabi-v7a] Compile thumb : rtsp-example <= rtsp-example.c GStreamer : [GEN] => gst-build-armeabi-v7a/gstreamer_android.c GStreamer : [COMPILE] => gst-build-armeabi-v7a/gstreamer_android.c clang.exe: error: unsupported option '-fpic' for target 'x86_64-w64-windows-gnu' make: *** [gst-build-armeabi-v7a/gstreamer_android.o] Error 1

RyanHurst commented 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.

BUILD FAILED in 9s 7 actionable tasks: 3 executed, 4 up-to-date

sdroege commented 6 years ago

See https://bugzilla.gnome.org/show_bug.cgi?id=759737