Checking gtk version

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
I want to compile this program called GTKRadiant on Debian Sarge v3.1 r0, but I'm having trouble. I'm going per these instructions: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk/COMPILING

So I downloaded the SVN trunk of GTKRadiant and made sure I had gcc3,scons=0.96,python>=2.3.0,svn>=1.1 as it says under environment requirements.

  • Linux/OSX(using X-windows)
    ==========================

    environment:
    - gcc3 (preferably)
    - scons = 0.96 (radiant is built with scons rather than make)
    - python >= 2.3.0 (scons requires python, some build steps use python)
    - svn >= 1.1 (some build steps use svn)

gcc --version worked, scons --version worked, python worked, svn --version worked.

Alright now I come to this part where I need gtk+ 2.4. How do I check my gtk+ version?? Much less all the others?

  • dependencies:
    - gtk+ >= 2.4.0 (requires glib, atk, pango, iconv, etc)
    - gtkglext >= 1.0.0 (requires opengl)
    - libxml2 >= 2.0.0
    - zlib >= 1.2.0 (for archivezip module)
    - libpng >= 1.2.0 (for imagepng module)
    - libmhash = 0.9.0 (for q3map2)
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
OK, apparently I only had 2.0.

I am trying to compile gtk+ 2.8. How should I go about doing this? I downloaded glib,atk,pango, etc. as well.

I did ./configure, make, make install on glib-2.8.6 (latest version)
Then ./configure on gtk+-2.8.17 (latest version) fails with this:

Any ideas??
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
You don't want to compile your own. Thats all there realy is to it.

The easy way to have done this would be to upgrade your Gnome install to a newer version. Debian has unofficial 'backports' for people that want to use the latest Gnome or KDE stuff without having to upgrade to Testing or Unstable. Also it's possible to recompile testing or unstable packages for stable. It's actually pretty easy, although on Gnome it would be very difficult due to the size of the thing.

But your GTK libraries are newer then GTK 2.0 anyways, if your using Debian Sarge. You have to becarefull with the naming conventions and whatnot.

to see what actual version your dealing with you have to go:
apt-cache show libgtk2.0-0

For the specific bit of important information you can go:
apt-cache show libgtk2.0-0 |grep Version
and that gets you:
Version: 2.6.4-3.1

What you need is probably the packagename-dev files.

Those aren't typically installed by default, but you need the dev packages installed in order to compile the software against this or that library version.

To get rid of anything you accidently installed (if you installed anything yet) check out the /usr/local directories.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You'd be much better off upgrading to etch or sid than trying to compile a handful of libraries yourself. According to packages.debian.org GTK 2.8.x is in both of them.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
I managed to do this without recompiling everything actually. It turns out I did have an adequate gtk2+ version but the compile still failed with some linking error so I decided to give up on compiling the whole thing myself.

This should be enough for anybody who wants to install GtkRadiant 1.4 and the latest GtkRadiant 1.5 on Debian or Ubuntu: