<div> Hi,<br><br>I've met this before when cross compile for my arm board.<br><br>it's because you did not set the GLIB_LIBS when you configure, you can just specify this as GLIB_LIB as -L/arm/target/usr/lib -lglib-2.0.<br><br>also you can try to change your glib-2.0.pc files ,change the prefix=/arm/target/usr, as the configure script use this as the default one.<br><br>i changed this two both,it seems the first one does not work.also make sure the glib-2.0.pc file is not use by your target, otherwise it will get the wrong value. </div><div> </div><div> BR<br>Joyious<br></div><div ></div><br>在2007-09-20,"Pankaj Sen" <pankaj.sen77@gmail.com> 写道:<br> <blockquote id="isReplyContent" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><div>Dear All,</div>
<div> </div>
<div>I'm facing gstreamer cross compilation problem on ARM. </div>
<div> </div>
<div>I have glib-2.12.4 in my arm target which is placed in /arm/target/usr/lib directory. </div>
<div> </div>
<div>I have configure using </div>
<div> </div>
<div>./configure --host=arm-xxx --prefix=/arm/target/usr \<br> CPPFLAGS="-I/arm/target/usr/local/include -I/arm/target/usr/include -I/arm/target/usr/include/glib-2.0/glib -I/arm/target/usr/include/glib-2.0 -I/arm/target/usr/lib/glib-
2.0/include -I/arm/target/usr/include/libxml2" \<br> LDFLAGS="-L/arm/target/usr/lib -L/arm/target/usr/local/lib"</div>
<div> </div>
<div>Configure works fine and individual files are getting complied but facing problem in linking. </div>
<div> </div>
<div>/bin/sh ../../libtool --tag=CC --mode=link arm-xxx-gcc -g -O2 -L/arm/target/usr/lib -L/arm/target/usr/local/lib -o <a href="http://libgstparse.la">libgstparse.la</a> libgstparse_la-lex._gst_parse_yy.lo libgstparse_la-
grammar.tab.lo -pthread -Wl,--export-dynamic -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0 <br>grep: /usr/lib/libglib-<a href="http://2.0.la">2.0.la</a>: No such file or directory<br>/bin/sed: can't read /usr/lib/libglib-
<a href="http://2.0.la">2.0.la</a>: No such file or directory<br>libtool: link: `/usr/lib/libglib-<a href="http://2.0.la">2.0.la</a>' is not a valid libtool archive<br>make[4]: *** [<a href="http://libgstparse.la">libgstparse.la
</a>] Error 1<br>make[4]: Leaving directory `/home/psen/download/gstreamer-0.10.4/gst/parse'<br>make[3]: *** [all-recursive] Error 1<br>make[3]: Leaving directory `/home/psen/download/gstreamer-0.10.4/gst'<br>make[2]: *** [all] Error 2
<br>make[2]: Leaving directory `/home/psen/download/gstreamer-0.10.4/gst'<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/psen/download/gstreamer-0.10.4'<br>make: *** [all] Error 2</div>
<div> </div>
<div>Can anybody give me any clue what is missing. </div>
<div> </div>
<div>Content of /arm/target/usr/lib/pkgconfig/glib-2.0.pc is as follows:-</div>
<div> </div>
<div>prefix=/usr<br>exec_prefix=${prefix}<br>libdir=${exec_prefix}/lib<br>includedir=${prefix}/include</div>
<div>
<p>glib_genmarshal=glib-genmarshal<br>gobject_query=gobject-query<br>glib_mkenums=glib-mkenums</p>
<p>Name: GLib<br>Description: C Utility Library<br>Version: 2.12.4<br>Libs: -L${libdir} -lglib-2.0<br>Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include</p>
<p> </p>
<p>Thanks ,</p>
<p>Pankaj</p></div>
</blockquote><br><!-- footer --><br>
<hr>
<font style="font-size:12px;line-height:15px;">杀70万种木马病毒,</font><a style="font-size:12px;line-height:15px; color:blue; text-decoration:underline;" href="http://pro.163.com/event.ng/Type=click&FlightID=96648&AdID=98138&TargetID=635&Values=31,43,51,60,72,82,91,100,110,312,330,332,499,587,702,733,734&Redirect=http://ad.cn.doubleclick.net/clk;134682177;20226578;k%3Fhttp://www.rising.com.cn/2008/trial/index.htm">瑞星2008版免费</a>