Re: gtk 1.2 to 2.0



You need to change some of the flags to gcc.  The online tutorial shows
`pkg-config --cflags gtk+-2.0' (for the .c to .o compile) and
`pkg-config --libs gtk+-2.0` for the .o to binary part of the compile.  If
you're doing a one step compile, both of these can be on the line together,
like so:

gcc -Wall -g hello-gtk.c -o hello-gtk `pkg-config --cflags gtk+-2.0`
`pkg-config --libs gtk+-2.0`

Note that the OLDER `gtk-config --cflags` will not work with gtk 2.0, and
you must change your Makefile.

Rich

--Wait a minute, didn't I just join this list so I could get help with gtk?
:)
----- Original Message -----
From: "Pablo Fischer" <exilion yifan net>
Cc: <gtk-app-devel-list gnome org>
Sent: Saturday, July 20, 2002 12:03 AM
Subject: Re: gtk 1.2 to 2.0


Mm.. I installed:
libgtk+2.0_0-devel-2.0.5-3mdk

and I get this:
[unmada pablo GtK]$ gcc -Wall -g pixmap1.c -o pixmap `pkg-config
--cflags gtk+-2.0` `pkg-config --libs gtk+-2.0`
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

Also.. I have:
[unmada pablo GtK]$ cp /usr/include/gt
gtk-1.2  gtk-2.0

(gtk 1.2 and 2.0).
Why cant I compile my gtk2 apps?

Paul Fischer.




Also:

libgtk+mdk0.1_6-0.1.6-11mdk
libgtkhtml2_0-2.0.0-2mdk
gtk-themes-1.0-8mdk
gtk-engines2-1.9.0-8mdk
libgtkxmhtml1-1.4.1.4-5mdk
libgtkmm1.2-1.2.8-2mdk
libgtk+1.2-devel-1.2.10-25mdk
libgtk+2.0_0-devel-2.0.5-4mdk
libgtk+1.2-1.2.10-25mdk
gtk-engines-0.12-2mdk
libgtk+2.0_0-2.0.5-3mdk
gtkhtml-1.0.1-4mdk
gtk+mdk-0.1.6-11mdk
nautilus-gtkhtml-0.3.2-3mdk
libgtkglarea5-1.2.3-2mdk
gtkdialogs-1.2-2mdk
pygtk-glarea-0.6.9-1mdk
rep-gtk-gnome-0.15-4mdk
pygtk-0.6.9-1mdk
gtk-gnutella-0.12-5mdk
libgtkhtml20-1.0.1-4mdk
rep-gtk-0.15-4mdk
libgtk+-x11-2.0_0-2.0.5-3mdk
pygtk-libglade-0.6.9-1mdk
gtk+2.0-2.0.5-3mdk

:(.. and cant compile gtk2 apps.

Paul






_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





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