How to tell if GTK 2 is on a machine

I'm looking to build wxPython/wxWidgets on a test machine running RH8. I've gone through this build process a few times before, so I'm familiar with the quirks involved in building wx. I get through the configure step without error, with the --enable-gtk2 option specified. But when I try to run 'make', it craps out with the message:

../src/generic/splash.cpp: In constructor `wxSplashScreen::wxSplashScreen(const
    wxBitmap&, long int, int, wxWindow*, int, const wxPoint&, const wxSize&,
    long int)':
../src/generic/splash.cpp:60: `GDK_WINDOW_TYPE_HINT_SPLASHSCREEN' undeclared
    (first use this function)

  The offending line appears wrapped as follows:

#ifdef __WXGTK20__
     gtk_window_set_type_hint(GTK_WINDOW(m_widget),
                              GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
#endif

  So I'm guessing that there is a problem with GTK2.0. How can I tell?

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://dabodev.com/

Ed Leafe:

So I'm guessing that there is a problem with GTK2.0. How can I tell?

   You can tell the installed version of GTK+ 2 with

pkg-config --modversion gtk+-2.0

   Neil

I ran that and got:

$ pkg-config --modversion gtk+-2.0
2.0.6

  Just on a hunch, I tried starting from scratch, leaving out the --enable-gtk2 option in the configure command. Unfortunately, the make command failed on exactly the same line:

./bk-deps g++ -c -o advdll_splash.o -D__WXGTK__ -I../src/regex -DWXUSINGDLL -DWXMAKINGDLL_ADV -fPIC -DPIC -D__WXDEBUG__ -Ilib/wx/include/gtk2ud-2.5 -I../include -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/Xft2 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -O0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/SDL -D_REENTRANT -Wall ../src/generic/splash.cpp
../src/generic/splash.cpp: In constructor `wxSplashScreen::wxSplashScreen(const
    wxBitmap&, long int, int, wxWindow*, int, const wxPoint&, const wxSize&,
    long int)':
../src/generic/splash.cpp:60: `GDK_WINDOW_TYPE_HINT_SPLASHSCREEN' undeclared
    (first use this function)
../src/generic/splash.cpp:60: (Each undeclared identifier is reported only once
    for each function it appears in.)
make: *** [advdll_splash.o] Error 1

  Anyone know why this splashscreen code is not able to be built?

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://dabodev.com/

···

On Aug 22, 2004, at 5:52 PM, Neil Hodgson wrote:

   You can tell the installed version of GTK+ 2 with

pkg-config --modversion gtk+-2.0

Ed Leafe wrote:

   You can tell the installed version of GTK+ 2 with

pkg-config --modversion gtk+-2.0

    I ran that and got:

$ pkg-config --modversion gtk+-2.0
2.0.6

You may need at least 2.2.x

    Just on a hunch, I tried starting from scratch, leaving out the --enable-gtk2 option in the configure command. Unfortunately, the make command failed on exactly the same line:

Was it truly from scratch or was the configure cache file still around? Try using --disable-gtk2.

···

On Aug 22, 2004, at 5:52 PM, Neil Hodgson wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

OK, so what's the best way to upgrade? I looked at the gtk.org site, and it seems that there are a bunch of other dependent files that also have to be upgraded. RedHat's up2date said everything is current, which I guess is correct for RH8.

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://dabodev.com/

···

On Aug 23, 2004, at 6:55 PM, Robin Dunn wrote:

pkg-config --modversion gtk+-2.0

    I ran that and got:
$ pkg-config --modversion gtk+-2.0
2.0.6

You may need at least 2.2.x

Ed Leafe wrote:

···

On Aug 23, 2004, at 6:55 PM, Robin Dunn wrote:

pkg-config --modversion gtk+-2.0

    I ran that and got:
$ pkg-config --modversion gtk+-2.0
2.0.6

You may need at least 2.2.x

    OK, so what's the best way to upgrade? I looked at the gtk.org site, and it seems that there are a bunch of other dependent files that also have to be upgraded. RedHat's up2date said everything is current, which I guess is correct for RH8.

Can you upgrade to RH9 or Fedora? Otherwise you can build GTK and all the dependent libs, installing them to /usr/local or some other prefix, and then make sure that wxGTK's configure uses those versions.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!