aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: configure says theres smth wrong with my gtk 1.2?  (Read 2477 times)

jones

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
configure says theres smth wrong with my gtk 1.2?
« on: November 16, 2004, 09:36:18 AM »

hi!
during configure i get this message:

Quote
checking for curl >= 7.9.5... yes (version 7.11.0)
checking for gdlib-config... /usr/local/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.22)
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.4.2... yes (version 2.4.2)
checking for wxbase-2.4-config... /usr/bin/wxbase-2.4-config
checking for wxWidgets base version >= 2.4.2... yes (version 2.4.2)
checking if wxWidgets was linked with GTK2... no
checking for gtk-config... /opt/gnome/bin/gtk-config

checking for GTK - version >= 1.2.0... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /opt/gnome/bin/gtk-config

checking if wxWidgets version >=2.5.0 ... no
crypto check disabled, using embedded libs

at the end of configure it says:

Quote
Libraries aMule will use to build:
                                       wxWidgets          2.4.2
                                       GTK                1.2.10

i didn't touch the gtk installation (i.e. moving it or smth.)
the config.log (available here: config.log)  shows a lot errors while trying to compile the gtk test.

Quote
configure:9779: checking for GTK - version >= 1.2.0
configure:9886: gcc -o conftest   -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I/usr/X11R6/include   conftest.c -L/opt/gnome/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm  >&5
In file included from /opt/gnome/include/gtk-1.2/gdk/gdk.h:31,
                 from /opt/gnome/include/gtk-1.2/gtk/gtk.h:31,
                 from configure:9875:
/opt/gnome/include/gtk-1.2/gdk/gdktypes.h:33:18: glib.h: No such file or directory
In file included from /opt/gnome/include/gtk-1.2/gdk/gdk.h:31,
                 from /opt/gnome/include/gtk-1.2/gtk/gtk.h:31,
                 from configure:9875:
/opt/gnome/include/gtk-1.2/gdk/gdktypes.h:52: error: parse error before "GdkAtom"
/opt/gnome/include/gtk-1.2/gdk/gdktypes.h:52: warning: data definition has no type or storage class
/opt/gnome/include/gtk-1.2/gdk/gdktypes.h:98: error: parse error before "gpointer"
/opt/gnome/include/gtk-1.2/gdk/gdktypes.h:103: error: parse error before "GdkWChar"
... goes on and on ...

/opt/gnome/include/gtk-1.2/gdk/gdktypes.h:33:18: glib.h: No such file or directory ???
i use suse 9.1 and the rpm manager yast tells me glib is installed. is there a glib-devel which i need too or smth?

make ends with:

Quote
listctrl.cpp:89:25: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden
In file included from listctrl.cpp:90:
/usr/include/wx/gtk/win_gtk.h:18:21: gdk/gdk.h: Datei oder Verzeichnis nicht gefunden
/usr/include/wx/gtk/win_gtk.h:19:22: gdk/gdkx.h: Datei oder Verzeichnis nicht gefunden
/usr/include/wx/gtk/win_gtk.h:20:30: gtk/gtkcontainer.h: Datei oder Verzeichnis nicht gefunden
/usr/include/wx/gtk/win_gtk.h:21:31: gtk/gtkadjustment.h: Datei oder Verzeichnis nicht gefunden
/usr/include/wx/gtk/win_gtk.h:23:29: gtk/gtkfeatures.h: Datei oder Verzeichnis nicht gefunden
In file included from listctrl.cpp:90:
/usr/include/wx/gtk/win_gtk.h:54: error: 'GtkContainer' is used as a type, but
   is not defined as a type.
/usr/include/wx/gtk/win_gtk.h:55: error: syntax error before `*' token
/usr/include/wx/gtk/win_gtk.h:66: error: 'GdkVisibilityState' is used as a
   type, but is not defined as a type.
/usr/include/wx/gtk/win_gtk.h:71: error: 'gboolean' is used as a type, but is
   not defined as a type.
/usr/include/wx/gtk/win_gtk.h:72: error: 'gboolean' is used as a type, but is
   not defined as a type.
/usr/include/wx/gtk/win_gtk.h:73: error: 'gboolean' is used as a type, but is
   not defined as a type.
/usr/include/wx/gtk/win_gtk.h:78: error: 'GtkContainerClass' is used as a type,
   but is not defined as a type.
/usr/include/wx/gtk/win_gtk.h:92: error: type specifier omitted for parameter `
   gboolean'
/usr/include/wx/gtk/win_gtk.h:92: error: syntax error before `)' token
/usr/include/wx/gtk/win_gtk.h:95: error: type specifier omitted for parameter `
   gboolean'
/usr/include/wx/gtk/win_gtk.h:95: error: syntax error before `)' token
/usr/include/wx/gtk/win_gtk.h:98: error: type specifier omitted for parameter `
   gboolean'
/usr/include/wx/gtk/win_gtk.h:98: error: syntax error before `)' token
listctrl.cpp: In member function `void wxODListHeaderWindow::DoDrawRect(wxDC*,
   int, int, int, int)':
listctrl.cpp:1953: error: `GtkStateType' undeclared (first use this function)
listctrl.cpp:1953: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
listctrl.cpp:1953: error: syntax error before `=' token
listctrl.cpp:1958: error: invalid use of undefined type `struct _GtkWidget'
/usr/include/wx/defs.h:2079: error: forward declaration of `struct _GtkWidget'
listctrl.cpp:1958: error: syntax error before `)' token
listctrl.cpp:1958: error: `GTK_CHECK_CAST' undeclared (first use this function)
listctrl.cpp:1959: error: `state' undeclared (first use this function)
listctrl.cpp:1959: error: `GTK_SHADOW_OUT' undeclared (first use this function)
listctrl.cpp:1960: error: `GdkRectangle' undeclared (first use this function)
listctrl.cpp:1960: error: syntax error before `)' token
make[4]: *** [amule-listctrl.o] Fehler 1
make[4]: Leaving directory `/home/jones/aMule-2.0.0rc7/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/jones/aMule-2.0.0rc7/src'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/home/jones/aMule-2.0.0rc7/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/jones/aMule-2.0.0rc7'
make: *** [all] Fehler 2

help! anyone?

cheers,

jones
« Last Edit: November 16, 2004, 09:39:06 AM by jones »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: configure says theres smth wrong with my gtk 1.2?
« Reply #1 on: November 16, 2004, 10:30:41 AM »

what distro you got?

try to install gtk+ devel.... that most often solves this issue

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

jones

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: configure says theres smth wrong with my gtk 1.2?
« Reply #2 on: November 16, 2004, 12:30:29 PM »

i use suse 9.1 professional.
it comes with gtk2 packages.

i've installed gtk-1.2.10-877.i586.rpm and gtk-devel-1.2.10-877.i586.rpm manually using rpm -Uhv ....
due to dependencies i had to install glib-devel-1.2.10-324.i586.rpm too.

cheers,

jones
Logged

jones

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: configure says theres smth wrong with my gtk 1.2?
« Reply #3 on: November 16, 2004, 02:54:43 PM »

i found the problem...

the system already had glib-1.2-586.i586.rpm installed.
gtk 1.2 dependencies needed glib-devel too.
i installed  glib-devel-1.2.10-324.i586.rpm while glib-devel-1.2.10-586.i586.rpm was needed to match the already installed glib.

no more errors during ./configure. :)

cheers,

jones
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: configure says theres smth wrong with my gtk 1.2?
« Reply #4 on: November 16, 2004, 04:41:18 PM »

thanks for reporting!
now, have a happy aMule experience! ;=)
Greetings.
Logged