Building GStreamer for Android on Windows
pankaj bansal
pankaj.bansal.jiit at gmail.com
Mon Dec 29 06:44:21 PST 2014
Hi Sebastian
I got it working. I am setting the environment variable in Android.mk
instead of System Path or in command prompt. This is weird but its working.
One thing you said system environment variable name is GSTREAMER_ROOT_ANDROID,
but I see the variable is GSTREAMER_SDK_ROOT_ANDROID in Android.mk. I have
downloaded "gstreamer-sdk-android-arm-debug-2013.6.zip" from the link given
in
http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development.
Am I doing something wrong ?
I am attaching the my Android.mk
Regards
Pankaj Bansal
On Mon, Dec 29, 2014 at 4:12 PM, Sebastian Dröge <sebastian at centricular.com>
wrote:
> On Mo, 2014-12-29 at 12:05 +0530, pankaj bansal wrote:
> > Hi
> >
> > I want to add one more thing. When I the eclipse hangs, I have to stop it
> > using end process in task manager. When I do that I get a window saying
> > "make.exe has stopped working". I thought may be the eclipse is building
> > the project or something, so I left it for 2 hours, but still it was
> hung.
>
> The best would be to try running the Android tools from the commandline
> to see why exactly it fails. Unfortunately Eclipse is not very
> explanatory when things go wrong.
>
> You would have to run
> android update project -s -p . --target android-XX
> (replace XX with the android target you want to target)
> ndk-build
> ant debug
>
> After that you should have something in the bin directory, or saw an
> error somewhere that would tell us what exactly went wrong.
>
> Also note that the environment variable is called GSTREAMER_ROOT_ANDROID
> without the SDK part.
>
> >
> > On Sun, Dec 28, 2014 at 4:02 PM, pankaj bansal <
> pankaj.bansal.jiit at gmail.com
> > > wrote:
> >
> > > Hi
> > >
> > > Thank you for replying
> > >
> > > I followed the steps you mentioned. When I start my eclipse, it simply
> > > hangs. If the variable GSTREAMER_SDK_ROOT_ANDROID is not set, then
> eclipse
> > > does not hang but it gives error when I try to compile the tutorial (as
> > > expected). But when I set the GSTREAMER_SDK_ROOT_ANDROID system
> variable,
> > > the eclipse simply hang on starting. It keeps showing "Android Content
> > > Loader : (0%)". Following is the screen shot I am attaching where the
> > > eclipse hangs. I know its something to do with the NDK, but I am not
> able
> > > to figure it out.
> > >
> > > I have set the system variable GSTREAMER_SDK_ROOT_ANDROID using
> command
> > > prompt and then start the eclipse from that command prompt
> > >
> > > I am able to run other android applications from the eclipse, so it
> works
> > > fine. I think the problem is with using the NDK.
> > > I have NDK version - android-ndk-r9d
> > >
> > > Regards
> > > Pankaj Bansal
> > >
> > >
> > > On Thu, Nov 27, 2014 at 7:56 PM, Sebastian Dröge <
> > > sebastian at centricular.com> wrote:
> > >
> > >> On Do, 2014-11-27 at 15:13 +0100, Alejandro Vázquez wrote:
> > >> > Hi !
> > >> >
> > >> > -Gstreamer autobuild when you run some of the tutorials
> > >> > -The first thing to do is try to compile any of the tutorials.
> > >> > Step:
> > >> > 1- Dowload NDK r9 (the latter does not work with GStreamer).
> > >>
> > >> That part is not entirely true. r10c works fine with 1.4.4 or newer.
> > >>
> > >> > 2- Configure eclipse (Windows/preference/android/ndk)
> > >> > 3-Import the tutorials (GStreamerSDK/share/gst-sdk)
> > >>
> > >> You can get tutorials for 1.x from here:
> > >> http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials
> > >>
> > >> > 4-define GSTREAMER_ROOT_ANDROID (your path GStreamerSDK)
> > >> > 5-Convert to C/c++ Project (Select the project->New->C/C++->Convert
> to
> > >> > C/C++. Makefile project--Android GCC)
> > >> > 6-Compile and run.
> > >>
> > >> 1.4.4 GStreamer binaries for Android can be downloaded from here:
> > >> http://gstreamer.freedesktop.org/data/pkg/android/1.4.4/
> > >>
> > >> --
> > >> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
> > >>
> > >> _______________________________________________
> > >> gstreamer-devel mailing list
> > >> 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
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
> _______________________________________________
> 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/20141229/bf29b832/attachment-0001.html>
-------------- next part --------------
ifdef BUILD_PROJECT
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := tutorial-5
LOCAL_SRC_FILES := tutorial-5.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog -landroid
include $(BUILD_SHARED_LIBRARY)
ifndef GSTREAMER_SDK_ROOT
ifndef GSTREAMER_SDK_ROOT_ANDROID
GSTREAMER_SDK_ROOT_ANDROID := D:/Tree/lgc/gstreamer-sdk-android
endif
GSTREAMER_SDK_ROOT := $(GSTREAMER_SDK_ROOT_ANDROID)
endif
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_SDK_ROOT)/share/gst-android/ndk-build/
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
G_IO_MODULES := gnutls
GSTREAMER_EXTRA_DEPS := gstreamer-interfaces-0.10 gstreamer-video-0.10
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk
endif
More information about the gstreamer-devel
mailing list