[gst-devel] GStreamer Cross Compilation Issue

Joyious He joyious at 163.com
Thu Sep 20 12:01:58 CEST 2007


 Hi,
I've met this before when cross compile for my arm board.
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.
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.
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.  BR
Joyious
在2007-09-20,"Pankaj Sen" <pankaj.sen77 at gmail.com> 写道:
Dear All, I'm facing gstreamer cross compilation problem on ARM. I have glib-2.12.4 in my arm target which is placed in /arm/target/usr/lib directory. I have configure using ./configure --host=arm-xxx --prefix=/arm/target/usr \
  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" \
  LDFLAGS="-L/arm/target/usr/lib -L/arm/target/usr/local/lib" Configure works fine and individual files are getting complied but facing problem in linking. /bin/sh ../../libtool --tag=CC --mode=link arm-xxx-gcc  -g -O2  -L/arm/target/usr/lib -L/arm/target/usr/local/lib -olibgstparse.la   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   
grep: /usr/lib/libglib-2.0.la: No such file or directory
/bin/sed: can't read /usr/lib/libglib-2.0.la: No such file or directory
libtool: link: `/usr/lib/libglib-2.0.la' is not a valid libtool archive
make[4]: *** [libgstparse.la] Error 1
make[4]: Leaving directory `/home/psen/download/gstreamer-0.10.4/gst/parse'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/psen/download/gstreamer-0.10.4/gst'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/psen/download/gstreamer-0.10.4/gst'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/psen/download/gstreamer-0.10.4'
make: *** [all] Error 2 Can anybody give me any clue what is missing. Content of /arm/target/usr/lib/pkgconfig/glib-2.0.pc is as follows:- prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums
Name: GLib
Description: C Utility Library
Version: 2.12.4
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
 
Thanks ,
Pankaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20070920/12fdd1df/attachment.htm>


More information about the gstreamer-devel mailing list