commit -- unix/gcc/gtk on cygwin patch.


Subject: commit -- unix/gcc/gtk on cygwin patch.
From: Paul Rohr (paul@abisource.com)
Date: Mon Mar 13 2000 - 16:54:32 CST


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.

Enjoy!

Paul

At 06:13 PM 3/2/00 -0000, Tom Newton wrote:
>All,
>
>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).
>YMMV.
>
>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
>
>cheers
>Tom



This archive was generated by hypermail 2b25 : Mon Mar 13 2000 - 16:49:00 CST