Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 4 Jul 2003 08:29:43 +0200 (MEST) From: "S. L." To: cygwin AT cygwin DOT com MIME-Version: 1.0 Subject: gtk2 on cygwin ( --with-gdktarget=win32, only ) X-Priority: 3 (Normal) X-Authenticated-Sender: #0006551723 AT gmx DOT net X-Authenticated-IP: [194.102.244.61] Message-ID: <24168.1057300183@www28.gmx.net> X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit (After my -- much too enthusiastic ? -- intrusion over a thread in this mail list, and an appropriate meeting of the meannes (SIC!), here it is.) Actually, the patches for having this done are present around since some time, some at http://cygnome.sourceforge.net/ some others at http://web.sfc.keio.ac.jp/~s01397ms/cygwin/ Well, applying this patches isn't enough, there's a little trick (as in http://cygnome2.sourceforge.net/test-patches/README ): after patching and configuring the sources, one must cp /usr/autotool/devel/bin/libtool . in the build directory. As those from sourceforge emphasize the cygwin/xfree86, I didn't pay too much attention there. But glib2, atk & pango compile OTB, although pango is somehow relatable with X. No problem. Gtk2+ doesn't really need a patch to compile. For the win32 backend, you only have to specify the "--with-gdktarget=win32 --with-x=no" to configure. But there is a problem when compiling the .dll.a for the cyggtk[...].dll. I dunno why other dll builds don't face, it but I needed to add a -Wl,--export-all-symbols flag to the linking flags (I did it by adding to the libgtk_win32_2_0_la_LIBADD). Without it, the resulting dll.a contained no symbols. And you can enjoy the gtk-demo.exe, after. Well, when it comes to applications the things become some harder, as those already win32 targeted, are _WIN32 targeterd, in fact. So to have them compile one must either to balance __CYGWIN__ with _WIN32 defines (i.e. "#ifdef _WIN32" -> "#if defined(_WIN32) && !defined(__CYGWIN__) " ) or contact the authors or other developers. SLao -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/