<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=3>Why not use scratchbox, it would 
make your cross compiling easier.</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2007-09-20 </FONT></DIV><FONT 
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>jianjun</SPAN> 
</FONT></DIV><FONT face=Verdana color=#000080 size=2>
<HR>
</FONT>
<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> Joyious He </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2007-09-20&nbsp; 18:03:49 
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> Pankaj Sen </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> gstreamer-devel 
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> Re: [gst-devel] GStreamer 
Cross Compilation Issue </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>&nbsp;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>&nbsp;</DIV>
<DIV>&nbsp;BR<BR>Joyious<BR></DIV>
<DIV></DIV><BR>在2007-09-20,"Pankaj Sen" &lt;pankaj.sen77@gmail.com&gt; 写道:<BR>
<BLOCKQUOTE id=isReplyContent 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>Dear All,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I'm facing gstreamer cross compilation problem on ARM. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I have glib-2.12.4 in my arm target which is placed in 
  /arm/target/usr/lib directory. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I have configure using </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>./configure --host=arm-xxx --prefix=/arm/target/usr \<BR>&nbsp; 
  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>&nbsp; LDFLAGS="-L/arm/target/usr/lib -L/arm/target/usr/local/lib"</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Configure works fine and individual files are getting complied but facing 
  problem in linking. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>/bin/sh ../../libtool --tag=CC --mode=link arm-xxx-gcc&nbsp; -g -O2&nbsp; 
  -L/arm/target/usr/lib -L/arm/target/usr/local/lib -o <A 
  href="http://libgstparse.la">libgstparse.la</A>&nbsp;&nbsp; 
  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&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>
  <DIV>Can anybody give me any clue what is missing. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Content of /arm/target/usr/lib/pkgconfig/glib-2.0.pc is as 
follows:-</DIV>
  <DIV>&nbsp;</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>&nbsp;</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; COLOR: blue; LINE-HEIGHT: 15px; TEXT-DECORATION: underline" 
href="http://pro.163.com/event.ng/Type=click&amp;FlightID=96648&amp;AdID=98138&amp;TargetID=635&amp;Values=31,43,51,60,72,82,91,100,110,312,330,332,499,587,702,733,734&amp;Redirect=http://ad.cn.doubleclick.net/clk;134682177;20226578;k%3Fhttp://www.rising.com.cn/2008/trial/index.htm">瑞星2008版免费</A> 
</FONT></DIV></BODY></HTML>