-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Package: libgtk2
Version: 2.12.6
I am running OpenSuSE 10.2 where Gnome is installed in "/opt/gnome".
I am cross compiling for the AVR32 architecture using the buildroot
system (buildroot.uclibc.org) which installs Gnome in "/usr"
When cross compiling libgtk2 the make will use glib-genmarshal
and other gnome applications as part of the build.
This needs to be the host version of glib-genmarshal.
When cross compiling,
PKG_CONFIG_PATH is set to "$(STAGING_DIR)/usr/lib/pkgconfig"
which refers to the target version of gnome.
The configure script of libgtk2 will find the location of
glib-genmarshal by
Line 24044:
if test x"$no_glib" = x ; then
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
I.E: it is using the target information to determine the location
of applications on the host.
If the host does not have gnome installed in the same location
as the target, the gnome applications will not be found.
$(STAGING_DIR)/usr/lib/pkgconfig/glib-2.0.pc contains:
++++++++++++++++++++++++++++++++++++++++
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
glib_genmarshal=
gobject_query=/usr/bin/gobject-query
glib_mkenums=/usr/bin/glib-mkenums
Name: GLib
Description: C Utility Library
Version: 2.15.4
Libs: -L${libdir} -lglib-2.0 -lintl
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
- -----------------------------------------
The result is that libgtk2 tries to use /usr/bin/glib-genmarshal
(which is where the target glib-genmarshal will end up)
instead of /opt/gnome/bin/glib-genmarshal where it is located on
OpenSuSE 10.2.
If you supply GLIB_GENMARSHAL=/opt/gnome/bin/glib-genmarshal
this gets overridden by the configure statement.
I.E: has no effect.
==============================
Suggested fix:
A simple fix would be to test if GLIB_GENMARSHAL has a value
and use this, instead of always setting GLIB_GENMARSHAL
to the pkg-config query regardless of the value of GLIB_GENMARSHAL.
The same things goes for gobject-query and glib-mkenums.
Don't use the target information for things that need
to run on the host.
Best Regards
Ulf Samuelsson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIcpmqAyRRH5cXxqwRArVcAJwMBPPMZH3smTPWxejH7DFse+zQfgCguwtd
MRM6eWmBNg8MpLjfhnfqTs4=
=60QI
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]