Thread: wxWindows configuration under Suse 8.2
Dear all, I am currently trying to build daily snapshots under a Suse 8.2 station. During configuration of wxWindows 2.5 cvs, I get a GTK error. Can anyone help me understand if additional packages are needed? Adam: any idea? Thanks in advance. Cheers, Jean-Michel **************************** configure:12430: checking for GTK+ - version >= 2.0.0 configure:12584: gcc -o conftest -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES conftest.c 1>&5 configure:12576:21: gtk/gtk.h: No such file or directory configure: In function `main': configure:12580: error: `gtk_major_version' undeclared (first use in this function) configure:12580: error: (Each undeclared identifier is reported only once configure:12580: error: for each function it appears in.) configure:12580: error: `gtk_minor_version' undeclared (first use in this function) configure:12580: error: `gtk_micro_version' undeclared (first use in this function) configure: failed program was: #line 12574 "configure" #include "confdefs.h" #include <gtk/gtk.h> #include <stdio.h> int main() { return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
Looks like it can't find gtk/gtk.h and then fails when using constants it expects to find in it. Is that file anywhere in the system? Regards, Dave. > -----Original Message----- > From: Jean-Michel POURE [mailto:jm.poure@freesurf.fr] > Sent: 11 June 2003 16:51 > To: pgadmin-hackers@postgresql.org > Cc: Adam H. Pendleton > Subject: [pgadmin-hackers] wxWindows configuration under Suse 8.2 > > > Dear all, > > I am currently trying to build daily snapshots under a Suse > 8.2 station. > During configuration of wxWindows 2.5 cvs, I get a GTK error. > > Can anyone help me understand if additional packages are > needed? Adam: any > idea? Thanks in advance. > > Cheers, > Jean-Michel > > **************************** > configure:12430: checking for GTK+ - version >= 2.0.0 > configure:12584: gcc -o conftest -D_FILE_OFFSET_BITS=64 > -D_LARGE_FILES > conftest.c 1>&5 > configure:12576:21: gtk/gtk.h: No such file or directory > configure: In function `main': > configure:12580: error: `gtk_major_version' undeclared (first > use in this > function) > configure:12580: error: (Each undeclared identifier is > reported only once > configure:12580: error: for each function it appears in.) > configure:12580: error: `gtk_minor_version' undeclared (first > use in this > function) > configure:12580: error: `gtk_micro_version' undeclared (first > use in this > function) > configure: failed program was: > #line 12574 "configure" > #include "confdefs.h" > > #include <gtk/gtk.h> > #include <stdio.h> > > int main() { > return ((gtk_major_version) || (gtk_minor_version) || > (gtk_micro_version)); > > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >
Jean-Michel POURE wrote: >**************************** >configure:12430: checking for GTK+ - version >= 2.0.0 >configure:12584: gcc -o conftest -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES >conftest.c 1>&5 >configure:12576:21: gtk/gtk.h: No such file or directory >configure: In function `main': >configure:12580: error: `gtk_major_version' undeclared (first use in this >function) >configure:12580: error: (Each undeclared identifier is reported only once >configure:12580: error: for each function it appears in.) >configure:12580: error: `gtk_minor_version' undeclared (first use in this >function) >configure:12580: error: `gtk_micro_version' undeclared (first use in this >function) >configure: failed program was: >#line 12574 "configure" >#include "confdefs.h" > >#include <gtk/gtk.h> >#include <stdio.h> > >int main() { > return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); > > > Your missing the GTK2 header files. You need to install the GTK-devel package (if SuSE has one) or install GTK2. On Redhat this would indicate a missing gtk2-devel RPM, but I don't know if SuSE has such a package. ahp
On Wednesday 11 June 2003 18:55, Adam H. Pendleton wrote: > Your missing the GTK2 header files. You need to install the GTK-devel > package (if SuSE has one) or install GTK2. On Redhat this would > indicate a missing gtk2-devel RPM, but I don't know if SuSE has such a > package. That's the point: all these packages are installed. Seems that their packages miss the config file. Cheers, Jean-Michel POURE
Jean-Michel POURE wrote: > >That's the point: all these packages are installed. Seems that their packages >miss the config file. Cheers, Jean-Michel POURE > > > Okay, so what is the location of gtk/gtk.h on your system? ahp
On Wednesday 11 June 2003 19:06, Adam H. Pendleton wrote: > Okay, so what is the location of gtk/gtk.h on your system? I am running the ./configure script again. gtk2 and gtk2-devel are installed, but not other packages like glib, etc.. Any idea? Cheers, Jean-Michel ************************************************** checking for GTK+ - version >= 2.0.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+ is incorrectly installed. configure: error: Please check that gtk-config is in path, the directory where GTK+ libraries are installed (returned by 'gtk-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and GTK+ is version 1.2.3 or above. ************************************************** gtk-config --libs -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm ************************************************** config.log | #define wxUSE_LIBTIFF 1 | /* end confdefs.h. */ | | #include <gtk/gtk.h> | #include <stdio.h> | | int | main () | { | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | ; | return 0; | } configure:20334: error: Please check that gtk-config is in path, the directory where GTK+ libraries are installed (returned by 'gtk-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and GTK+ is version 1.2.3 or above. ***************** echo$PATH /usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/kde3/bin I tried to add export PATH=$PATH:/usr/lib:/usr/X11R6/lib without result. Seems like a library missing. ******************* rm -f conf.gtktest fi fi if test -z "$wx_cv_lib_gtk"; then wx_cv_lib_gtk=none else wx_cv_cflags_gtk=$GTK_CFLAGS wx_cv_libs_gtk=$GTK_LIBS fi fi if test "$gtk_version_cached" = 1; then echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 echo "${ECHO_T}$wx_cv_lib_gtk" >&6 fi case "$wx_cv_lib_gtk" in 2.0) WXGTK20=1 TOOLKIT_VERSION=2 ;; 1.2.7) WXGTK127=1 WXGTK12=1 ;; 1.2.3) WXGTK12=1 => Line 20334 ;; *) { { echo "$as_me:$LINENO: error: Please check that gtk-config is in path, the directory where GTK+ libraries are installed (returned by 'gtk-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and GTK+ is version 1.2.3 or above.
Jean-Michel POURE wrote: >On Wednesday 11 June 2003 19:06, Adam H. Pendleton wrote: > > >>Okay, so what is the location of gtk/gtk.h on your system? >> >> > >I am running the ./configure script again. gtk2 and gtk2-devel are installed, >but not other packages like glib, etc.. > >Any idea? > > On my SuSE 8.1 system, there was no gtk2-devel at all, SuSE missed to put it on disk. Consequently, I downloaded all freshly from the net: gtk+2.2.1, atk-1.2.0, pango-1.2.1, libpng-1.2.5, glib-2.2.1 and had no problem any more after I removed the older versions which are installed in non-standard locations by SuSE (AFAIR it was /usr/lib instead of /usr/local/lib). Regards, Andreas
On Wednesday 11 June 2003 22:41, you wrote: > On my SuSE 8.1 system, there was no gtk2-devel at all, SuSE missed to > put it on disk. Consequently, I downloaded all freshly from the net: > gtk+2.2.1, atk-1.2.0, pango-1.2.1, libpng-1.2.5, glib-2.2.1 and had no > problem any more after I removed the older versions which are installed > in non-standard locations by SuSE (AFAIR it was /usr/lib instead of > /usr/local/lib). Where did you download the updates? Isn't SUSE 8.2 the lastest version ? What is atk ? Cheers, Jean-Michel
Jean-Michel POURE wrote: >>gtk+2.2.1, atk-1.2.0, pango-1.2.1, libpng-1.2.5, glib-2.2.1 and had no >>problem any more after I removed the older versions which are installed >>in non-standard locations by SuSE (AFAIR it was /usr/lib instead of >>/usr/local/lib). >> >> > >Where did you download the updates? > I downloaded all from the official websites, starting at www.gtk.org descending into the dependencies. >Isn't SUSE 8.2 the lastest version ? > I think so. >What is atk ? > ATK is the Accessability Toolkit, a sub project of gtk just as pango is. Regards, Andreas