On Wed, 2002-12-11 at 22:41, Owen Taylor wrote: > Since my set of cross-compilation environments is rather > limited (I have a partially working linux to mingw32 > environment), I'd appreciate it if people would try out > the changes so we can make sure that it actually is > functional for GLib-2.2.0. I run Debian Sid, with the ming32 package installed. With prebuilt libiconv and gettext sitting in ~/tmp/Wasteland/win32-root/..., the following command configured glib: CPPFLAGS=-I/home/users/ross/tmp/Wasteland/win32-root/include/ LDFLAGS=-L/home/users/ross/tmp/Wasteland/win32-root/lib/ ./autogen.sh --cache-file=win32.cache --host=i586-mingw32msvc I specified the host instead of target, as that way it uses the ming32- prefixed gcc tools. There may be another way to do this though, I am not a cross-compiling expert. Many thanks everyone for getting Glib to cross-compile cleanly. In the future I'll be building up to gtkmm for Windows (hopefully cross-compiling from linux), so this is a great start. Would it be possible to include win32.cache in the tarball? /me watches it build Dammit, the glib/build/win32/compile-resource expects "windres" to exist, but for me its called i586-mingw32msvc-windres. I can hack around this now, but do not know enough to fix this correctly. Obviously configure knows what the prefix is for the tools, and should supply that as a variable. Now I'm getting: make[3]: Entering directory `/home/users/ross/Programming/gnome2-cvs/glib/glib' ../build/win32/lt-compile-resource glib.rc glib-win32res.lo Using zero as build number /bin/sh ../libtool --mode=link i586-mingw32msvc-gcc -g -O2 -mms-bitfields -Wall -L/home/users/ross/tmp/Wasteland/win32-root/lib/ -o libglib-2.0.la -rpath /usr/local/lib -version-info 103:1:103 -export-dynamic -no-undefined -export-symbols glib.def garray.lo gasyncqueue.lo gbacktrace.lo gbsearcharray.lo gcache.lo gcompletion.lo gconvert.lo gdataset.lo gdate.lo gdir.lo gerror.lo gfileutils.lo ghash.lo ghook.lo giochannel.lo glist.lo gmain.lo gmarkup.lo gmem.lo gmessages.lo gnode.lo gpattern.lo gprimes.lo gqsort.lo gqueue.lo grel.lo grand.lo gscanner.lo gshell.lo gslist.lo gstrfuncs.lo gstring.lo gthread.lo gthreadpool.lo gtimer.lo gtree.lo guniprop.lo gutf8.lo gunibreak.lo gunicollate.lo gunidecomp.lo gutils.lo gprintf.lo libcharset/libcharset.la trio/libtrio.la giowin32.lo gspawn-win 32.lo gwin32.lo glib-win32res.lo -liconv -lwsock32 : command not found : command not found : command not found: : command not found: : command not found: : command not found: : command not found: : command not found: 'xtracting exported symbol list from ` test -f .libs/impgen.c || \ sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \ *\// { s/^# //;s/^# *$//; p; }" -e d < ../libtool > .libs/impgen.c test -f .libs/impgen.exe || (cd .libs && \ if test "x" != "x" ; then -o impgen impgen.c ; \ else i586-mingw32msvc-gcc -o impgen impgen.c ; fi) -deflibs/bs/impgen /home/users/ross/tmp/Wasteland/win32-root/lib//.libs/ Can not open image .libs/impgen make[3]: *** [libglib-2.0.la] Error 1 Dammit. Regards, Ross -- Ross Burton mail: ross burtonini com jabber: ross nerdfest org www: http://www.burtonini.com./ PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
Attachment:
signature.asc
Description: This is a digitally signed message part