unable to run gstreamer1.0 android apps on mac os x w/ android studio
Justin Kim
justin.joy.9to5 at gmail.com
Tue Sep 15 17:59:32 PDT 2015
Hello,
I’m not sure which version of cerbero you are using,
but I’ve seen ndk-build error like you when I used older version of cerebro.
Please, refer to this issue. your problem might be related to HOST_SED problem with ndk r10e.
https://bugzilla.gnome.org/show_bug.cgi?id=750162
Best regards.
Justin
> On Sep 16, 2015, at 3:09 AM, Daniel Marfil <danimarfil0 at gmail.com> wrote:
>
> I have made some changes,
> I have run this commands on the terminal:
>
> $android update project -p . -s --target 9
> $ndk-build
>
> And now this is the return I get from ndk-build:
>
> Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
> make: -n: Command not found
> /bin/sh: - : invalid option
> Usage: /bin/sh [GNU long option] [option] ...
> /bin/sh [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/sh: - : invalid option
> Usage: /bin/sh [GNU long option] [option] ...
> /bin/sh [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/sh: - : invalid option
> Usage: /bin/sh [GNU long option] [option] ...
> /bin/sh [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/sh: - : invalid option
> Usage: /bin/sh [GNU long option] [option] ...
> /bin/sh [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/sh: - : invalid option
> Usage: /bin/sh [GNU long option] [option] ...
> /bin/sh [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/sh: - : invalid option
> Usage: /bin/sh [GNU long option] [option] ...
> /bin/sh [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
> GStreamer : [GEN] => gst-build-armeabi/gstreamer_android.c
> /bin/sh: i: command not found
> make: [genstatic_armeabi] Error 127 (ignored)
> /bin/sh: i: command not found
> make: [genstatic_armeabi] Error 127 (ignored)
> /bin/sh: i: command not found
> make: [genstatic_armeabi] Error 127 (ignored)
> /bin/sh: i: command not found
> make: [genstatic_armeabi] Error 127 (ignored)
> GStreamer : [COMPILE] => gst-build-armeabi/gstreamer_android.c
> gst-build-armeabi/gstreamer_android.c:15:2: error: stray '@' in program
> @PLUGINS_DECLARATION@
> ^
> gst-build-armeabi/gstreamer_android.c:15:22: error: stray '@' in program
> @PLUGINS_DECLARATION@
> ^
> gst-build-armeabi/gstreamer_android.c:18:2: error: stray '@' in program
> @G_IO_MODULES_DECLARE@
> ^
> gst-build-armeabi/gstreamer_android.c:15:3: error: unknown type name 'PLUGINS_DECLARATION'
> @PLUGINS_DECLARATION@
> ^
> gst-build-armeabi/gstreamer_android.c:18:23: error: stray '@' in program
> @G_IO_MODULES_DECLARE@
> ^
> gst-build-armeabi/gstreamer_android.c:21:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
> void
> ^
> gst-build-armeabi/gstreamer_android.c:24:2: error: stray '@' in program
> @PLUGINS_REGISTRATION@
> ^
> gst-build-armeabi/gstreamer_android.c:24: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:31:2: error: stray '@' in program
> @G_IO_MODULES_LOAD@
> ^
> gst-build-armeabi/gstreamer_android.c:31:20: error: stray '@' in program
> @G_IO_MODULES_LOAD@
> ^
> gst-build-armeabi/gstreamer_android.c:31:3: error: 'G_IO_MODULES_LOAD' undeclared (first use in this function)
> @G_IO_MODULES_LOAD@
> ^
> gst-build-armeabi/gstreamer_android.c:31:3: note: each undeclared identifier is reported only once for each function it appears in
> gst-build-armeabi/gstreamer_android.c:32:1: error: expected ';' before '}' token
> }
> ^
> gst-build-armeabi/gstreamer_android.c: In function 'gst_android_init':
> gst-build-armeabi/gstreamer_android.c:437: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
>
>> El 15/9/2015, a las 14:54, Sérgio Agostinho <sergio.r.agostinho at gmail.com <mailto:sergio.r.agostinho at gmail.com>> escribió:
>>
>> If the Gstreamer.java is not showing anywhere it might also mean that your not compiling the native code prior to the Java parts. Try running ndk-build from the terminal and see if it's compiling and generating the java file.
>>
>> Cheers
>>
>> 2015-09-15 14:49 GMT+02:00 Sérgio Agostinho <sergio.r.agostinho at gmail.com <mailto:sergio.r.agostinho at gmail.com>>:
>> Hi Daniel,
>>
>> Can you dump your project folder and file structure and show your Android.mk content?
>>
>> Kind regards,
>> Sérgio
>>
>> 2015-09-15 11:08 GMT+02:00 Daniel Marfil <danimarfil0 at gmail.com <mailto:danimarfil0 at gmail.com>>:
>> Hi everyone,
>>
>> I am trying to run up-to-date 'GStreamer 1.0' tutorials (http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials <http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials>).
>>
>> I have already installed GStreamer 1.4.4 for OS X (http://gstreamer.freedesktop.org/data/pkg/osx/1.4.4/ <http://gstreamer.freedesktop.org/data/pkg/osx/1.4.4/>), and I am already using successfully the Android NDK.
>>
>> But when I try to build any of the applications from the tutorials I get the next error:
>>
>> Error:(20, 33) error: package org.freedesktop.gstreamer does not exist
>> This is happening because it is not resolving this import statement:
>>
>> import org.freedesktop.gstreamer.GStreamer;
>> I have read that this is because while building, it should make a new folder with GStreamer files, but that's not happening and I have no idea why. I have already read many solutions but none is working to me.
>>
>> My NDK version is r10e, my Gradle version is 2.2.1 and its plugin is 1.3.0. I am also using on gradle.properties the instruction:
>>
>> android.useDeprecatedNdk=true
>>
>> I have set a path variable to the GStreamer SDK, on AndroidStudio -> Preferences->Build, Execution, Deployment->Path Variables:
>>
>> GSTREAMER_ROOT_ANDROID = /Volumes/HDD/Gstreamer/gst-sdk-debug-arm GSTREAMER_SDK_ROOT_ANDROID = /Volumes/HDD/Gstreamer/gst-sdk-debug-arm
>>
>> Thank you very much for your help
>>
>> Dani
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org <mailto:gstreamer-devel at lists.freedesktop.org>
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel <http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>>
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org <mailto:gstreamer-devel at lists.freedesktop.org>
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150916/e5363ba4/attachment-0001.html>
More information about the gstreamer-devel
mailing list