importing gstreamer editing services on android

Roi Bareket roi at slidely.com
Fri Jun 27 16:32:23 PDT 2014


Hi Everyone,
I'm trying to create an android application that will edit movies.
i tried to do the most basic thing using the latest build provided for
android
* GStreamer SDK 2013.6 (Congo) for Android ARM (Release, tar.bz2)
<http://cdn.gstreamer.com/android/arm/gstreamer-sdk-android-arm-release-2013.6.tar.bz2>

i took tutorial 1 for android
and added:
Header: #include<ges/ges,h>
FunctionCall: ges_init()

and got the build failed.

what am i doing wrong?
should i also change the Android.mk?

the error i'm getting is:

bareket at bareket:~/Desktop/tutorials/android-tutorial-1/jni$ ndk-build
GStreamer      : [GEN] => gst-build/gstreamer_android.c
GStreamer      : [COMPILE] => gst-build/gstreamer_android.c
GStreamer      : [LINK] => gst-build/libgstreamer_android.so
[armeabi] Prebuilt       : libgstreamer_android.so <= gst-build/
[armeabi] Install        : libgstreamer_android.so => libs/armeabi/
libgstreamer_android.so
[armeabi] SharedLibrary  : libtutorial-1.so
/home/bareket/apps/android-ndk-r9d/toolchains/arm-linux-androideabi-4.6/
prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi
/4.6/../../../../arm-linux-androideabi/bin/ld: /home/bareket
/Desktop/tutorials/android-tutorial-1/obj/local/armeabi/objs/tutorial-1/tutorial-1.o:
in function gst_native_get_gstreamer_info:/home/bareket
/Desktop/tutorials/android-tutorial-1/jni/tutorial-1.c:13: error: undefined
reference to 'ges_init'
collect2: ld returned 1 exit status
make: *** [/home/bareket/Desktop/tutorials/android-tutorial-1/obj/local/
armeabi/libtutorial-1.so] Error 1


Android.mk:

LOCAL_PATH := $(call my-dir)
GSTREAMER_SDK_ROOT := /home/bareket/apps/gstreamer-sdk
-android-arm-release-2013.6
GSTREAMER_NDK_BUILD_PATH  := $(GSTREAMER_SDK_ROOT)/share/gst-android/ndk
-build/

include $(CLEAR_VARS)
LOCAL_MODULE    := tutorial-1
LOCAL_SRC_FILES := tutorial-1.c
LOCAL_SHARED_LIBRARIES := gstreamer_android
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)

GSTREAMER_PLUGINS         := coreelements
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer.mk


tutorial-1.c:

#include <gst/gst.h>
#include <ges/ges.h>

jstring gst_native_get_gstreamer_info (JNIEnv* env, jobject thiz) {

  gst_init(NULL, NULL);
  ges_init();

  char *version_utf8 = gst_version_string();
  jstring *version_jstring = (*env)->NewStringUTF(env, version_utf8);
  g_free (version_utf8);
  return version_jstring;
}
:
:


I'll be glad if someone could help me with that.
Thanks.
Roi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140628/94929db8/attachment.html>


More information about the gstreamer-android mailing list