Problem compiling GTK--0.9.19



I have two problems in trying to compile GTK--0.9.19:

1) I have GTK+1.0.6 installed under /usr and GTK+1.1.2 installed under
/usr/local, so to force GTK-- to compile against GTK+1.0.6, I used the
command:

  ./configure --with-gtk-prefix=/usr

This generated the following error:

  checking for gtk-config... /usr/bin/gtk-config
  checking for GTK - version >= 1.0.0... *** GTK+ header files (version
  1.1.2) do not match
  *** library (version 1.0.6)
  no
  configure: error: Cannot find proper gtk version

and from the config.log file:

  configure:1314: checking for gtk-config
  configure:1345: checking for GTK - version >= 1.0.0
  configure:1446: gcc -o conftest -g -O2 -I/usr/lib/glib/include
  -I/usr/X11R6/include   conftest.c  -L/usr/lib -L/usr/X11R6/lib -lgtk
  -lgdk -lglib -lXext -lX11 -lm 1>&5
  configure: failed program was:
  #line 1368 "configure"

  <snip>

I managed to get around this by temporarily renaming the
/usr/local/include/gtk directory and then the configure script worked as
required. My question is what is the correct way of getting around this
problem (instead of renaming the GTK+1.1.2 include directory)?

2) When trying to compile GTK--, the following error was generated by
make (on RedHat 5.1):

  c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I. -I. -I./.. -I..
  -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -c -fPIC -DPIC
  menu.cc
  ./../menu.gen_h: In method `void Gtk_Menu::set_accelerator_table(class
  Gtk_AcceleratorTable *)':
  ./../menu.gen_h:189: `class Gtk_AcceleratorTable' has no member named
  `gtkacceleratortable'
  ./../menu.gen_h: In method `void Gtk_Menu::set_accelerator_table(const
  class Gtk_AcceleratorTable &)':
  ./../menu.gen_h:195: `class Gtk_AcceleratorTable' has no member named
  `gtkacceleratortable'
  make[4]: *** [menu.lo] Error 1
  make[4]: Leaving directory `/root/devel/Gtk---0.9.19/src/gtk--'
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory `/root/devel/Gtk---0.9.19/src'
  make[2]: *** [all-recursive-am] Error 2
  make[2]: Leaving directory `/root/devel/Gtk---0.9.19/src'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/root/devel/Gtk---0.9.19'
  make: *** [all-recursive-am] Error 2

Is this a result of the procedure detailed in (1) or do I need to edit
something?

Many thanks in advance,

Dave	:+)



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