Building Glib and Pango on Cygwin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm working on fixing up the current version of Glib to build on
Cygwin.  I've taken the current CVS and some older patches and
reworked them.  These have now been incorporated, and it is now
possible to check out and build Glib on Cygwin.

An "autotooled" copy of the source (probably the same as yesterday's
glib 2.4.1 release) is available here:
http://www.whinlatter.uklinux.net/gtk/glib.tar.bz2

If you build like this:
  ./configure -C --prefix=/usr --enable-threads --with-libiconv --enable-shared --disable-static
  make
  make check

you'll see that it builds fine, but one check (tests/child-test) fails.
The bug report for this failure is here:

http://bugzilla.gnome.org/show_bug.cgi?id=138425

I'm afraid I know too little about Windows (and Cygwin) internals to be
able to debug this one, so I would greatly appreciate any help anyone
could offer in fixing it.

Threading is deliberately disabled for cygwin targets, even with
--enable-threads. since I couldn't get it working.  Is POSIX threading
possible with cygwin, or broken?


Once Glib is installed, it's possible to build Pango.  I've provided a
slightly-patched copy here:

http://www.whinlatter.uklinux.net/gtk/pango.tar.bz2

I can't get the X11-related modules to link.  If you build with

  ./configure --prefix=/usr
  make

you'll see it fail with undefined symbols during linking.  I've not been
able to get it to link.  This might be a libtool bug, but I'm not
experienced enough with DLLs to know the finer points about linking.
I've added -no-undefined, but it seems to "lose" the library
dependencies during linking.  The same command works on GNU/Linux.

The problem possibly this line in pango/Makefile.am:

  libpangox_1_0_la_LIBADD = libpango-$(PANGO_API_VERSION).la $(INCLUDED_X_MODULES) $(X_LIBS) $(X_EXTRA_LIBS)

This tries to link with libpango-$(VER).la, but while it links
libpango-$(VER).dll.a correctly, it doesn't include any of the libraries
this was linked against!  I'm quite convinced this is libtool rather
than Pango at issue.  Can anyone comment on this? (I'd provide the error
messages, but I can't see a "script" equivalent for Cygwin.)


Many thanks,
Roger

-- 
Roger Leigh

                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux