GNOME Bugzilla – Bug 107623
patch for x11 on cygwin
Last modified: 2011-02-04 16:12:02 UTC
Here is a patch for compiling gtk+ for x11 on Cygwin. Changes: * configure.in: append $x_libs to GTK_EXTRA_LIBS when gdktarget is x11. Because gtkplug/gtksocket depend on libX11 directly. * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): don't call XPutImage() unless USE_SHM is defined. * gtk/queryimmodules.c: generalize SOEXT to use G_MODULE_SUFFIX rather than hardcoded .so/.dll.
Created attachment 14783 [details] [review] patch for compiling gtk+ for x11 on Cygwin
Reassigning, since the win32 component is basically for the win32 backend. - First change needs to be done a little differently, because it's going to result in the .pc file having the X11 libraries twice. - Change 2 looks right (but done somewhat differently.. no need for the g_error(), just don't even include the if () if no SHM.) - The third change needs the USE_LA_MODULES magic from Pango's configure.in and pango/querymodules.c
Fri Aug 15 12:34:04 2003 Owen Taylor <otaylor@redhat.com> Fixes for X/Cygwin builds of GTK+ (#107623, Masahiro Sakai): * configure.in (GDK_DEP_LIBS_FOR_X): Make sure that we link libgtk against X explicitely, since we make GTK+ calls for plug/socket. * gtk/queryimmodules.c: Use USE_LA_MODULES and G_MODULE_SUFFIX here. * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_image): Protect XShmPutImage with #ifdef USE_SHM.