<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">I am trying to build Gstreamer tutorial example 5 on Andriod Studio using mac osx 10.8.5.</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><ol style="margin-right: 0px; margin-bottom: 1em; margin-left: 30px; padding-right: 0px; padding-left: 0px; border: 0px; font-size: 15px; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><li style="margin: 0px 0px 0.5em; padding: 0px; border: 0px; word-wrap: break-word;"><p style="margin-bottom: 1em; border: 0px; clear: both;">I have downloaded the tutorial from <a href="https://github.com/jaroslavas/Gstreamer-Android-example" rel="nofollow" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 89, 153); text-decoration: none; cursor: pointer;">https://github.com/jaroslavas/Gstreamer-Android-example</a></p></li><li style="margin: 0px 0px 0.5em; padding: 0px; border: 0px; word-wrap: break-word;"><p style="margin-bottom: 1em; border: 0px; clear: both;">I have downloaded the ndk "android-ndk-r11c"</p></li><li style="margin: 0px; padding: 0px; border: 0px; word-wrap: break-word;"><p style="margin-bottom: 1em; border: 0px; clear: both;">I have downloaded the Gstreamer Android library gstreamer-1.0-android-arm-1.8.0 from<a href="https://gstreamer.freedesktop.org/data/pkg/android/1.8.0/" rel="nofollow" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 89, 153); text-decoration: none; cursor: pointer;">https://gstreamer.freedesktop.org/data/pkg/android/1.8.0/</a></p></li></ol><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"> 4. I have edited local.properties - set SDK and NDK paths</p><ol start="5" style="margin-right: 0px; margin-bottom: 1em; margin-left: 30px; padding-right: 0px; padding-left: 0px; border: 0px; font-size: 15px; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><li style="margin: 0px 0px 0.5em; padding: 0px; border: 0px; word-wrap: break-word;"><p style="margin-bottom: 1em; border: 0px; clear: both;">I have edited src/main/jni/Android.mk file and set GSTREAMER_ROOT_ANDROID to the path where I extracted Gstreamer library</p></li><li style="margin: 0px 0px 0.5em; padding: 0px; border: 0px; word-wrap: break-word;"><p style="margin-bottom: 1em; border: 0px; clear: both;">I have created a gradle.properties file in order to set the flag android.useDeprecatedNdk=true</p></li><li style="margin: 0px; padding: 0px; border: 0px; word-wrap: break-word;"><p style="margin-bottom: 1em; border: 0px; clear: both;">I have added:</p><p style="margin-bottom: 1em; border: 0px; clear: both;">sourceSets.main { jni.srcDirs = [] }</p></li></ol><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">under android in order not to let Android Studio override the .mk file</p><ol start="8" style="margin-right: 0px; margin-bottom: 1em; margin-left: 30px; padding-right: 0px; padding-left: 0px; border: 0px; font-size: 15px; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><li style="margin: 0px; padding: 0px; border: 0px; word-wrap: break-word;">Run.</li></ol><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">The Gradle Console is showing several</p><pre style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(39, 39, 39); background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">/bin/bash: i: command not found
make: [genstatic_armeabi] Error 127 (ignored)
</code></pre><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Here below the complete Console log:</p><pre style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; width: auto; max-height: 600px; overflow: auto; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; word-wrap: normal; color: rgb(39, 39, 39); background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">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
</code></pre><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Any suggestion?</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Cheers!</p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></p><p style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(39, 39, 39); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; line-height: 19.5px; background-color: rgb(255, 255, 255);">Vincenzo</p> </div></body>
</html>