Re: pkg-config

"J. Ali Harlow" <[email protected]> Tue, 29 Apr 2003 12:52:46 +0100
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
On 2003.04.29 12:46 Sven Luther wrote:
> On Tue, Apr 29, 2003 at 10:47:57AM +0100, J. Ali Harlow wrote:

> That said, why do we really need to patch pkg-config ? We could simply
> call it either with the
> 
>   --define-variable=VARIABLENAME=VARIABLEVALUE
>   
> argument to modify the prefix, or using the PKG_CONFIG_PATH env variable
> to point at the .pc files location ? Yep it seems to work :

Shrug. I find it simpler and I prefer not to have to put --define-variable...
into all my application makefiles (I do define PKG_CONFIG_PATH in the
makefiles, so it wouldn't actually make any real difference).

[big snip]

> > I can cross-compile Gtk+ 2.2.1 with three patches now (I haven't
> > yet got around to submitting these but you can have copies if
> > you want them).
> 
> Yes, please.

So attached.

> > Last time I tried to cross-compile Glib I failed,
> > but I know that Owen has put a lot of work into improving the
> > situation since then so things may well have moved on. I haven't
> > tried to cross-compile any of the lower libraries yet.
> 
> Which lower libraries ? libicon and libintl ?

Yup. The full list for Gtk+ 2.2.1 is Gtk+, Glib, atk, pango,
libintl, libiconv and freetype.

-- 
Ali Harlow                              Email: [email protected]
Research programmer                     Tel:   (020) 7040 4348
Applied Vision Research Centre          Intl: +44 20 7040 4348
City University                         Fax:   (020) 7040 5515
London                                  Intl: +44 20 7040 5515

  ----------

--- ../gtk+-2.2.1/build/win32/compile-resource	Sun Sep 16 22:15:45 2002
+++ ./build/win32/compile-resource	Wed Apr 23 15:36:23 2003
@@ -38,7 +38,7 @@
     fi
 
     m4 -DBUILDNUMBER=$buildnumber <$rcfile >$$.rc &&
-	windres $$.rc $resfile &&
+	${WINDRES-windres} $$.rc $resfile &&
 	rm $$.rc
 else
     # Return failure

  ----------

--- ../gtk+-2.2.1/gdk-pixbuf/Makefile.am	Mon Jan 27 22:47:12 2003
+++ ./gdk-pixbuf/Makefile.am	Wed Apr 23 17:33:26 2003
@@ -434,11 +434,13 @@
 	  echo "***" ; \
 	fi
 
-if CROSS_COMPILING
-else
 all-local: gdk-pixbuf.loaders
-endif
 
+if CROSS_COMPILING
+gdk-pixbuf.loaders:
+	echo "Cross-compiling; will use only static modules for uninstalled example programs."; \
+	touch gdk-pixbuf.loaders
+else
 gdk-pixbuf.loaders: $(loader_LTLIBRARIES) gdk-pixbuf-query-loaders
 	LOADERS=`echo libpixbufloader-*.la` ; \
 	if test "x$$LOADERS" != 'xlibpixbufloader-*.la' ; then \
@@ -448,6 +450,7 @@
           echo "No dynamic modules found; will use only static modules for uninstalled example programs."; \
 	  touch gdk-pixbuf.loaders; \
 	fi
+endif
 
 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
 

  ----------

--- ../gtk+-2.2.1/tests/testmultidisplay.c	Mon Oct 14 00:22:33 2002
+++ ./tests/testmultidisplay.c	Wed Apr 23 17:18:36 2003
@@ -1,4 +1,4 @@
-#include <strings.h>
+#include <string.h>
 #include <gtk/gtk.h>
 #include <gtk/gtkstock.h>
 #include <gdk/gdk.h>


[Non-text portions of this message have been removed]