Subject: Re: commit -- unix/gcc/gtk on cygwin patch.
From: Aaron Lehmann (email@example.com)
Date: Mon Mar 13 2000 - 18:08:59 CST
I was suprised to read that the GTK+/Win32 version needed an X server. I
had thought that the win32 port of GTK wan natively on windows. According
to Miguel de Icaza, "The mistake AbiWord made was to not use GTK for its
cross platform toolkit." GTK runs on BeOS, Unix, and Windows, so
theoretically it could eliminate a lot of the non-xp work.
On Mon, 13 Mar 2000, Paul Rohr wrote:
> Cross-compile hack to build the GTK version on Win32 via gcc and cygwin,
> courtesy of Tom Newton <Tom.Newton@gtl.com>.
> M src/config/abi_defs.mk
> A src/config/platforms/cygwin.mk
> A src/pkg/cygwin/Makefile
> I do have to admit that I debated for quite a while whether to apply this
> patch. Several people on the list are currently investigating what it would
> take to build the native Win32 product without using the Visual C compiler.
> The last thing I want to do is distract folks from that very useful effort.
> But considering Tom's previous efforts in the world of GPLed word
> processors, I also want to make sure that a mere lack of tools doesn't
> prevent him from adding code to AbiWord.
> So, in it goes. :-)
> Note that the Win32 build process will continue to use Visual C to spit out
> native binaries as usual -- this just provides another ("barmy", Tom calls
> it below) way to build AbiWord. I highly doubt that we'll ever release
> binaries with such a complicated set of dependencies. Still, anyone who's
> *this* determined to get AbiWord building should be encouraged.
> At 06:13 PM 3/2/00 -0000, Tom Newton wrote:
> >This is my first patch, so go easy on me. Also I don't have CVS access
> >(from this machine at work behind our firewall) so this is against the 0.7.8
> >source release.
> >It is a patch to make abiword build on the cygwin environment against the
> >gtk/unix API's using gcc. So you get a windows executable that needs an X
> >server (I use Xwin-32) and displays using the GTK toolkit...
> >Am I completely barmy? Well perhaps I am, but since I only have access to a
> >Windows platform during most of my waking hours, and I don't have Visual
> >C++, this is my only option to build abiword. It might be useful to others,
> >for example to compare the look and feel of the gtk and native windows
> >builds without moving between platforms.
> >The good news is I haven't made any source code changes. This is a
> >testament both to abiword's cross platform code and to the cygwin tools. I
> >haven't tested an awful lot of the app yet, but the basic editing seems to
> >work reasonably well.
> >Of course, to build this you need gtk and all the X libraries and libpng
> >etc. installed. I did this the easy way by retrieving Andy Piper's prebuilt
> >X binaries from ftp://ftp.xemacs.org/pub/xemacs/aux/cygwin-b20-x11.tar.bz2
> >and ftp://ftp.xemacs.org/pub/xemacs/aux/cygwin-b20-local.tar.bz2 . This
> >gives you the png libraries, the X libraries and som e other useful
> >miscellaneous bits (including cvs). You need to add glib and gtk etc. but
> >this is a matter of ./configure && make && make install (more or less).
> >To build you need to do "make ABI_OPT_CYGWIN_UNIX=1" in order to force the
> >build system not to build a native win32 version of abiword.
> >Anyway, here is the patch
This archive was generated by hypermail 2b25 : Mon Mar 13 2000 - 18:09:09 CST