Aloha,
Having some minor troubles with a GTK soruce install (good experience with Linux, none with GTK). I grabbed the latest GTK source from
ftp://ftp.gtk.org/pub/gtk/v2.6/, installed the dependencies and then GTK itself. That all went fine, I can even the GTK demos and tests, but the seemingly important gtk-config script is painfully absent post-install. It's not in any of the normal places, nor can updatedb && locate find it.
I know that some distros include a gtk-devel package that has gtk-config, but I would like to have the latest version of GTK. And it doesn't seem like there's a devel package or source anywhere on their site at all.
The ultimate point of this is to build Driftnet (
http://www.ex-parrot.com/~chris/driftnet/). Currently, it crashes thusly and I assume it's because of the absent gtk-config. If I've misdiagnosed this and it's a different problem, please let me know. And of course, thanks for any assistance rendered.
-Feebles
[root@localhost driftnet-0.1.6]# make
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' -o endian endian.c
/bin/sh: line 1: gtk-config: command not found
./endian > endianness
makedepend -- -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -- audio.c mpeghdr.c gif.c img.c jpeg.c png.c driftnet.c image.c display.c playaudio.c connection.c media.c
/bin/sh: line 1: gtk-config: command not found
makedepend: warning: /usr/include/gnu/stubs.h: non-portable whitespace encountered at line 7
makedepend: warning: display.c, line 14: cannot find include file "gtk/gtk.h"
not in /usr/include/pcap/gtk/gtk.h
not in /usr/local/lib/gcc-include/gtk/gtk.h
not in /usr/include/gtk/gtk.h
not in /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/include/gtk/gtk.h
makedepend: warning: display.c, line 15: cannot find include file "gdk/gdk.h"
not in /usr/include/pcap/gdk/gdk.h
not in /usr/local/lib/gcc-include/gdk/gdk.h
not in /usr/include/gdk/gdk.h
not in /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/include/gdk/gdk.h
makedepend: warning: display.c, line 16: cannot find include file "gdk/gdkx.h"
not in /usr/include/pcap/gdk/gdkx.h
not in /usr/local/lib/gcc-include/gdk/gdkx.h
not in /usr/include/gdk/gdkx.h
not in /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/include/gdk/gdkx.h
touch depend
rm -f Makefile.bak
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o audio.o audio.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o mpeghdr.o mpeghdr.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o gif.o gif.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o img.o img.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o jpeg.o jpeg.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o png.o png.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o driftnet.o driftnet.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o image.o image.c
/bin/sh: line 1: gtk-config: command not found
cc -g -Wall -I/usr/include/pcap -D_BSD_SOURCE `gtk-config --cflags` -DDRIFTNET_VERSION='"0.1.6"' `cat endianness` -c -o display.o display.c
/bin/sh: line 1: gtk-config: command not found
display.c:14:21: gtk/gtk.h: No such file or directory
display.c:15:21: gdk/gdk.h: No such file or directory
display.c:16:22: gdk/gdkx.h: No such file or directory
display.c:34: error: syntax error before '*' token
display.c:34: warning: type defaults to `int' in declaration of `window'
display.c:34: warning: type defaults to `int' in declaration of `darea'
display.c:34: warning: data definition has no type or storage class
display.c:35: error: syntax error before '*' token
display.c:35: warning: type defaults to `int' in declaration of `drawable'
display.c:35: warning: data definition has no type or storage class
display.c:48: error: syntax error before "delete_event"
display.c:48: error: syntax error before '*' token
display.c:48: warning: return type defaults to `int'
display.c: In function `delete_event':
display.c:51: error: `FALSE' undeclared (first use in this function)
display.c:51: error: (Each undeclared identifier is reported only once
display.c:51: error: for each function it appears in.)
display.c: In function `update_window':
display.c:104: error: `GdkGC' undeclared (first use in this function)
display.c:104: error: `gc' undeclared (first use in this function)
display.c:105: warning: implicit declaration of function `gdk_gc_new'
display.c:106: warning: implicit declaration of function `gdk_draw_rgb_32_image'
display.c:106: error: `GDK_RGB_DITHER_NORMAL' undeclared (first use in this function)
display.c:106: error: `guchar' undeclared (first use in this function)
display.c:106: error: syntax error before ')' token
display.c:107: warning: implicit declaration of function `gdk_gc_destroy'
display.c: At top level:
display.c:173: error: syntax error before '*' token
display.c: In function `expose_event':
display.c:174: error: request for member `window' in something not a structure or union
display.c:175: warning: implicit declaration of function `gdk_window_get_size'
display.c: At top level:
display.c:184: error: syntax error before '*' token
display.c: In function `configure_event':
display.c:185: error: request for member `window' in something not a structure or union
display.c: At top level:
display.c:249: error: syntax error before '*' token
display.c: In function `button_press_event':
display.c:250: error: `event' undeclared (first use in this function)
display.c: At top level:
display.c:254: error: syntax error before '*' token
display.c: In function `button_release_event':
display.c:257: error: `event' undeclared (first use in this function)
display.c:261: warning: implicit declaration of function `gdk_draw_rectangle'
display.c:261: error: request for member `style' in something not a structure or union
display.c:262: warning: implicit declaration of function `gdk_flush'
display.c:264: warning: implicit declaration of function `nanosleep'
display.c:265: error: request for member `style' in something not a structure or union
display.c: At top level:
display.c:269: error: syntax error before '*' token
display.c: In function `destroy':
display.c:270: warning: implicit declaration of function `gtk_main_quit'
display.c: At top level:
display.c:297: error: syntax error before "pipe_event"
display.c:297: error: syntax error before "chan"
display.c:297: warning: return type defaults to `int'
display.c: In function `pipe_event':
display.c:373: error: `TRUE' undeclared (first use in this function)
display.c: In function `dodisplay':
display.c:377: error: `GIOChannel' undeclared (first use in this function)
display.c:377: error: syntax error before "chan"
display.c:381: error: syntax error before '=' token
display.c:382: warning: implicit declaration of function `g_io_add_watch'
display.c:382: error: syntax error before "chan"
display.c:389: warning: implicit declaration of function `gtk_init'
display.c:390: warning: implicit declaration of function `gdk_rgb_init'
display.c:392: warning: implicit declaration of function `gtk_widget_set_default_colormap'
display.c:392: warning: implicit declaration of function `gdk_rgb_get_cmap'
display.c:393: warning: implicit declaration of function `gtk_widget_set_default_visual'
display.c:393: warning: implicit declaration of function `gdk_rgb_get_visual'
display.c:396: warning: implicit declaration of function `gtk_window_new'
display.c:396: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
display.c:396: warning: assignment makes pointer from integer without a cast
display.c:397: warning: implicit declaration of function `gtk_widget_set_usize'
display.c:399: warning: implicit declaration of function `gtk_drawing_area_new'
display.c:399: warning: assignment makes pointer from integer without a cast
display.c:400: warning: implicit declaration of function `gtk_container_add'
display.c:400: warning: implicit declaration of function `GTK_CONTAINER'
display.c:401: warning: implicit declaration of function `gtk_widget_set_events'
display.c:401: error: `GDK_EXPOSURE_MASK' undeclared (first use in this function)
display.c:401: error: `GDK_BUTTON_PRESS_MASK' undeclared (first use in this function)
display.c:401: error: `GDK_BUTTON_RELEASE_MASK' undeclared (first use in this function)
display.c:403: warning: implicit declaration of function `gtk_signal_connect'
display.c:403: warning: implicit declaration of function `GTK_OBJECT'
display.c:403: warning: implicit declaration of function `GTK_SIGNAL_FUNC'
display.c:413: warning: implicit declaration of function `gtk_widget_show_all'
display.c:415: warning: implicit declaration of function `gtk_main'
make: *** [display.o] Error 1