I was running into these kinds of errors and finally figured out what I was doing wrong.<br>
<br>
For
me the problem was that even though I had downloaded the Gingerbread
API, I hadn't noticed the API number is actually 10. There is no API 9
to download in the Android SDK manager so I was running into all sorts
of compile problems with the libraries. This also made it so that the
setup.sh script would not be able to properly identify the target ID and
it couldn't update the project.<br>
<br>
Anyway, that fixed that, but now I'm running into another problem.
It can complete the first step of the compile (ndk-build
gstreamer-aggregate-configure) but on the second step (ndk-build) it
gives me this error message:<br>
<br>
Compile arm : gstomx <= gstomx_conf.c<br>
/home/intel/Downloads/
<div id=":24">gstreamer_ndk_bundle/jni/../gst-openmax/omx/gstomx_conf.c:2: error: expected expression before ';' token<br>make: *** [/home/intel/Downloads/gstreamer_ndk_bundle/obj/local/armeabi/objs-debug/gstomx/gstomx_conf.o] Error 1<br>
<br>Now, inspecting the file gstomx_conf.c, the contents are the following:<br><br>const char *default_config =<br>;<br><br>I
have no idea what's going on at this point. Why that default_config
pointer is empty. I'm not very familiar with gstreamer in general.<br>
<br>Anyway, any help would be appreciated.<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Today's Topics:<br>
<br>
1. Re: Problem in Building the gstreamer with the NDK (Stefan Sauer)<br>
<br><br>---------- Forwarded message ----------<br>From: Stefan Sauer <<a href="mailto:ensonic@hora-obscura.de" target="_blank">ensonic@hora-obscura.de</a>><br>To: <a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a><br>
Date: Mon, 14 Nov 2011 22:37:24 +0100<br>Subject: Re: Problem in Building the gstreamer with the NDK<br>
<div bgcolor="#ffffff">
On 11/14/2011 10:00 PM, s.rawat wrote:
<blockquote type="cite">
<div>Earlier I wrote : </div>
<div><br>
</div>
<div><br>
</div>
<div><span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">I downloaded
the latest glb - 2.28.8 (from here--> </span><a href="http://ftp.gnome.org/pub/gnome/sources/glib/2.28/" style="color:rgb(17, 85, 204);font-family:arial,sans-serif;font-size:13px" target="_blank">http://ftp.gnome.org/pub/gnome/sources/glib/2.28/</a><span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">), untarred
and </span><br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">installed it
according to INSTALL and included the $HOME/temp/bin to the
PATH.</span><br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
<br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">I didnt get the
error of glib-schema which was getting earlier.</span><br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
<br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">But now I am
running into this error -> </span><br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
<br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">///home/softy/gst-ndk/</span><span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">gstreamer_ndk_bundle/jni/../</span><span style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">glib/gobject/gsignal.h:29:30:
error: </span><font style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px" size="2"><b>gobject/gmarshal.h:
No such file or directory<br>
make: ***
[/home/softy/gst-ndk/gstreamer_ndk_bundle/obj/local/armeabi/objs-debug/audio-example/audio-example.o]
Error 1</b></font><br style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px">
</div>
<div><font style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px" size="2"><b><br>
</b></font></div>
<div><font style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px" size="2"><b><br>
</b></font></div>
<div><font style="color:rgb(34, 34, 34);font-family:arial,sans-serif;font-size:13px" size="2"><b>I have reinstalled the Glib and
the above error is no longer coming, but now I am getting
this error on doing ./setup.sh</b></font></div>
<div><br>
</div>
<div><i>Install : libgstaudioconvert.so =>
libs/armeabi/libgstaudioconvert.so</i></div>
<div><i>Compile arm : gstaudioflinger <=
gstaudioflingersink.c</i></div>
<div><i>Compile++ arm : gstaudioflinger <= GstAndroid.cpp</i></div>
<div><i>cc1plus: warning: command line option
"-Wdeclaration-after-statement" is valid for C/ObjC but not
for C++</i></div>
<div><i>SharedLibrary : libgstaudioflinger.so</i></div>
<div><i>/home/softy/Downloads/android-ndk-r6b/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld:
cannot find -lmedia</i></div>
<div><i>collect2: ld returned 1 exit status</i></div>
<div><i>make: ***
[/root/gstreamer_ndk_bundle/obj/local/armeabi/libgstaudioflinger.so]
Error 1</i></div>
<div>root@softy-laptop:~/gstreamer_ndk_bundle# vi log.txt <br>
</div>
</blockquote>
<br>
have you copied the libs from your device ("things you will need" on
the wiki)?<br>
<br>
Stefan<br>
<blockquote type="cite">
<div><br>
</div>
<div>PLz find attached the logs.</div>
<div><br>
</div>
<div>Rgds,</div>
<div>Saurabh</div>
<div><br>
</div>
"..pain is temporary.....quitting lasts forever......"<br>
<br>
<pre><fieldset></fieldset>
_______________________________________________
gstreamer-android mailing list
<a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a></blockquote></div></div>