bin/bash: i: command not found when building Gstreamer example 5 on Android Studio

Vincenzo Di Giovambattista mingenz at hotmail.com
Mon Apr 11 14:08:36 UTC 2016


I am trying to build Gstreamer tutorial example 5 on Andriod Studio using mac osx 10.8.5.
I have downloaded the tutorial from https://github.com/jaroslavas/Gstreamer-Android-exampleI have downloaded the ndk "android-ndk-r11c"I have downloaded the Gstreamer Android library gstreamer-1.0-android-arm-1.8.0 fromhttps://gstreamer.freedesktop.org/data/pkg/android/1.8.0/   4.   I have edited local.properties - set SDK and NDK pathsI have edited src/main/jni/Android.mk file and set GSTREAMER_ROOT_ANDROID to the path where I extracted Gstreamer libraryI have created a gradle.properties file in order to set the flag android.useDeprecatedNdk=trueI have added:sourceSets.main { jni.srcDirs = [] }under android in order not to let Android Studio override the .mk fileRun.The Gradle Console is showing several/bin/bash: i: command not found
make: [genstatic_armeabi] Error 127 (ignored)
Here below the complete Console log:bin/bash: - : invalid option
Usage:  /bin/bash [GNU long option] [option] ...
    /bin/bash [GNU long option] [option] script-file ...
GNU long options:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --protected
    --rcfile
    --restricted
    --verbose
    --version
    --wordexp
Shell options:
    -irsD or -c command or -O shopt_option      (invocation only)
    -abefhkmnptuvxBCHP or -o option
/bin/bash: - : invalid option
Usage:  /bin/bash [GNU long option] [option] ...
    /bin/bash [GNU long option] [option] script-file ...
GNU long options:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --protected
    --rcfile
    --restricted
    --verbose
    --version
    --wordexp

......

GStreamer      : [GEN] => gst-build-armeabi/gstreamer_android.c

/bin/bash: i: command not found
make: [genstatic_armeabi] Error 127 (ignored)
/bin/bash: i: command not found
make: [genstatic_armeabi] Error 127 (ignored)
/bin/bash: i: command not found
make: [genstatic_armeabi] Error 127 (ignored)
/bin/bash: i: command not found
make: [genstatic_armeabi] Error 127 (ignored)

GStreamer      : [COMPILE] => gst-build-armeabi/gstreamer_android.c

gst-build-armeabi/gstreamer_android.c:17:2: error: stray '@' in program
  @PLUGINS_DECLARATION@
  ^
gst-build-armeabi/gstreamer_android.c:17:22: error: stray '@' in program
  @PLUGINS_DECLARATION@
                      ^
gst-build-armeabi/gstreamer_android.c:20:2: error: stray '@' in program
  @G_IO_MODULES_DECLARE@
  ^
gst-build-armeabi/gstreamer_android.c:17:3: error: unknown type name 'PLUGINS_DECLARATION'
  @PLUGINS_DECLARATION@
   ^
gst-build-armeabi/gstreamer_android.c:20:23: error: stray '@' in program
  @G_IO_MODULES_DECLARE@
                       ^
gst-build-armeabi/gstreamer_android.c:23:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
 void
 ^
gst-build-armeabi/gstreamer_android.c:26:2: error: stray '@' in program
  @PLUGINS_REGISTRATION@
  ^
gst-build-armeabi/gstreamer_android.c:26:23: error: stray '@' in program
  @PLUGINS_REGISTRATION@
                       ^
gst-build-armeabi/gstreamer_android.c: In function 'gst_android_load_gio_modules':
gst-build-armeabi/gstreamer_android.c:33:2: error: stray '@' in program
  @G_IO_MODULES_LOAD@
  ^
gst-build-armeabi/gstreamer_android.c:33:20: error: stray '@' in program
  @G_IO_MODULES_LOAD@
                    ^
gst-build-armeabi/gstreamer_android.c:33:3: error: 'G_IO_MODULES_LOAD' undeclared (first use in this function)
  @G_IO_MODULES_LOAD@
   ^
gst-build-armeabi/gstreamer_android.c:33:3: note: each undeclared identifier is reported only once for each function it appears in
gst-build-armeabi/gstreamer_android.c:34:1: error: expected ';' before '}' token
 }
 ^
gst-build-armeabi/gstreamer_android.c: In function 'gst_android_init':
gst-build-armeabi/gstreamer_android.c:497:3: error: implicit declaration of function 'gst_android_register_static_plugins' [-Werror=implicit-function-declaration]
   gst_android_register_static_plugins ();
   ^
cc1: all warnings being treated as errors
make: *** [gst-build-armeabi/gstreamer_android.o] Error 1

:app:ndkBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:ndkBuild'.
> Process 'command '/Users/vincenzodigiovambattista/AndroidStudioProjects/android-ndk-r11c/ndk-build'' finished with non-zero exit value 2
Any suggestion?
Cheers!
Vincenzo 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-android/attachments/20160411/d84ae07b/attachment.html>


More information about the gstreamer-android mailing list