> -----Original Message----- > From: Tor Lillqvist [mailto:tml@xxxxxx]: > > Are you tring to build a Cygwin version of GTK+ (one that uses the > Cygwin runtime), or a native Win32 GTK+ (that uses just the Microsoft > C runtime and the Win32 system libraries)? > > For the latter, you could be using the -mno-cygwin flag to Cygwin's > gcc, which kinda works, or preferrably a real cross-compilation > environment from Cygwin to Win32. > > Cygwin ships a Cygwin version of GTK+ with the X11 backend and all its > dependencies. So presumably you either want to build also a Cygwin > GTK+ but with the win32 (i.e. GDI) backend, or a native Win32 GTK+ > (with the win32 backend). > > If the latter, I strongly recommend using mingw and MSYS instead of > Cygwin as a development environment. It is way too easy to end up with > a confusing mess if one doesn't really know what one is doing when > using Cygwin. I mean mixing up Cygwin headers and libraries with > non-Cygwin ones. I'm actually trying to build a standalone Win32 GDK library that I can drop into the current GTK installation to look at fixing a bug in it. I should have -mno-cygwin set but don't at this point because I was initially just trying to just get something to compile, and so I started with your suggestion from the README.win32 on what to pass to configure. Quite why the "-L/target/lib" is still in there, I'm not quite sure. I initially ran configure with exactly what you gave in README.win32 verbatim, then changed some of the options to get it to work with the latest cygwin, and changed "/target/lib" to "c:/GTK/lib", ending up using this: CC='gcc -march=pentium' CPPFLAGS='-I/cygdrive/c/GTK/include' CFLAGS='-O2' LDFLAGS='-L/cygdrive/c/GTK/lib' ./configure --disable-static --prefix=/cygdrive/c/GTK --with-gdktarget=win32 --with-wintab=/src/wtkit126 --with-ie55=/src/workshop/ie55_lib --host=i386-pc-mingw32 So the "-L/target/lib" must be a hold-over from the first configure run. Probably I should clean everything and start again. I wasn't sure about those references to "/src" either so just left them in as-is for now. I've had other problems trying to build this with CygWin too (e.g. "c:/" in dependencies which the latest CygWin make does not allow, and "/cygdrive/c" in the environment which the version of pkg-config that ships with the Win32 GTK does not like. So I'll try to start again with MinGW & MSYS and see how that goes. Thanks Tor, Ian _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list