Native Windows Gtk+ from Cygwin
- From: Daryl Lee <dlee altaregos com>
- To: Gtk-App-Devel <gtk-app-devel-list gnome org>
- Subject: Native Windows Gtk+ from Cygwin
- Date: Fri, 09 Dec 2005 09:55:17 -0700
I've been through all the archives and Thor's excellent website, and I
still can't break the code. I'm trying to use Cygwin to build a native
Windows app using Gtk+. I gather I'm not the first to want to do that,
nor am I the only one having a hard time putting it all together.
First, the symptoms. When I run the executable froma DOS prompt, I get
an error alert: "This application as failed to start because
cygglib-2.0-0.dll was not found."
In what follows, ine breaks have been added for clarity.
Compile command in Cygwin (with gcc version 3.4.4):
gcc -Wall -mno-cygwin -mms-bitfields -o winhw hw.c \
`pkg-config --cflags --libs gtk+-2.0`
Output of `pkg-config --cflags --libs gtk+-2.0`:
-DXTHREADS -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include \
-I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 \
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include \
-L/usr/X11R6/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0\
-lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig \
-lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 \
-lintl -liconv
The program in question is Hello World from the online Gtk+ tutorial, at
http://www.gtk.org/tutorial/c58.html#SEC-HELLOWORLD. It runs perfectly
well when I compile without the -mno-cygwin and -mms-bitfields and
execute it from a Cygwin X session.
As always, I will appreciate any help, other than an unreasoned
recommendation to move over to MingW. (Not that I dislike MingW; I just
would have to install pkg-config and who knows what else.)
--
Daryl Lee
Open the Present--It's a Gift.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]