PDA

View Full Version : GTK+ Development Packages



Jesdisciple
April 14th, 2009, 07:43 PM
I want to use the highest and most portable GTK+ version for development and I've been told (http://www.gtkforums.com/viewtopic.php?t=3337) that all non-commercial distros provide 2.12+, but I can't seem to find such an package. I checked my gtk-config, and I'm guessing that this actually means 2.10 like Java's 1.6 means 6?
$ gtk-config --version gtk
1.2.10

Here (http://packages.ubuntu.com/hardy/libgtk2.0-dev)'s the package I'm using, but I can't find an equivalent package with a higher version: http://www.google.com/search?hl=en&q=libgtk-2.1..2.9+site%3Apackages.ubuntu.com (As Google interprets the versions as decimals, that should cover all of them.)

Can anyone give some guidance please?

Vadi
April 14th, 2009, 08:16 PM
gtk-config?

Use pkg-config. gtk-config is from 1.2 series, long depreciated.

See http://library.gnome.org/devel/gtk-tutorial/stable/x111.html

Jesdisciple
April 14th, 2009, 08:45 PM
??? I'm not sure exactly what that's telling me, but it's not the highest GTK+ version I have installed. My best guess for how to get that didn't work:
$ pkg-config --exact-version gtk+
Must specify package names on the command line
$ pkg-config --exact-version gtk+-2.0
Must specify package names on the command line

EDIT: Never mind, someone at the GTK Forums set me straight:
$ pkg-config --modversion gtk+-2.0
2.14.4

Thanks.

Vadi
April 14th, 2009, 08:53 PM
Glad you got it.