Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ghost opened this issue Sep 20, 2018 · 2 comments
Open

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

ghost opened this issue Sep 20, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2018

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
Copy link

RyanHurst commented Oct 6, 2018

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

@sdroege
Copy link

sdroege commented Oct 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants