title: Gstreamer libaray for android
body: <p>I downloaded the gstreamer and compiled it for android , I followed the instruction on this link <a href="http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions" rel="nofollow">http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions</a>.</p>
  
  <p>now After the .so libraries have been generated , I tried to use them in my project so I copied the entire gstreamer_bundle under myproject/jni directory  and tried to include the gst.h in c file in my project (#include ) , when I tried to compile using make APP= command I got many errors ,this is sample from the errors</p>
  
  <blockquote>
    <p>pps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:160:
    error: expected '=', ',', ';', 'asm' or '<strong>attribute</strong>' before
    'GstTagList'
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:177:
    error: expected ';', ',' or ')' before '*' token
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:189:
    error: expected ')' before '*' token
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:191:
    error: expected declaration specifiers before 'GType'
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:194:
    error: expected ';', ',' or ')' before '*' token
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:202:
    error: expected ')' before '*' token
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:203:
    error: expected ')' before '*' token
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:206:
    error: expected ';', ',' or ')' before '*' token
    apps/TestGST/project/jni/gstreamer_ndk_bundle/gstreamer/gst/gsttaglist.h:207:
    error: expected declaration specifiers before 'GType'</p>
  </blockquote>
  
  <p>and this is my android.mk file</p>
  
  <pre><code>LOCAL_PATH := $(call my-dir)
  
  
  #declare the prebuilt library
  
  include $(CLEAR_VARS)
  
  LOCAL_MODULE := ffmpeg-prebuilt1
  
  LOCAL_SRC_FILES := /gstreamer_ndk_bundle/libs/armeabi/libglib-2.0.so
  
  
  
  
  
  
  
  LOCAL_PRELINK_MODULE := true
  
  include $(PREBUILT_SHARED_LIBRARY)
  
  
  
  
  
  include $(CLEAR_VARS)
  
  LOCAL_MODULE    := GST_API
  LOCAL_C_INCLUDES :=$(LOCAL_PATH)/gstreamer_ndk_bundle/gstreamer  
  
  
  
  LOCAL_SRC_FILES := test_gst.c
  
  
  
  include $(BUILD_SHARED_LIBRARY)
  </code></pre>
  
  <p>The compilation for fstreamer generates the .so file to be used , but it does not generate the header file to include them in the project so Iadded the refernce to gstreamer_ndk_bundle/gstreamer  folder.
  What is the correct way to use gsteamer in android?</p>
  
  <p>This is my first project to use Native language in android ,  thanks for nay help</p>