LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-14-2005, 08:14 PM   #1
Feebles
LQ Newbie
 
Registered: Jul 2003
Location: Boulder, Colorado
Distribution: Mandrake
Posts: 16

Rep: Reputation: 0
GTK source install doesn't give gtk-config


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
 
Old 06-15-2005, 03:02 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I don't think gtk2 provides gtk-config. I am sure its provided by gtk+.
 
Old 06-15-2005, 12:40 PM   #3
Feebles
LQ Newbie
 
Registered: Jul 2003
Location: Boulder, Colorado
Distribution: Mandrake
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by reddazz
I don't think gtk2 provides gtk-config. I am sure its provided by gtk+.
Can you tell me where it is normally placed then? I built and installed gtk+-2.6.7 from source from the GTK site and I can't find hide nor hair of gtk-config. Is there any reason why a normal install of GTK+ wouldn't provide gtk-config? Thanks,

-Feebles
 
Old 06-15-2005, 01:21 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You seem to have missed my point. GTK2 does not provide gtk-config, it is provided by gtk+ (gtk1).
 
Old 06-15-2005, 01:51 PM   #5
Feebles
LQ Newbie
 
Registered: Jul 2003
Location: Boulder, Colorado
Distribution: Mandrake
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by reddazz
You seem to have missed my point. GTK2 does not provide gtk-config, it is provided by gtk+ (gtk1).
Oh, I see. Yes, point missed indeed. Slightly confusing when the GTK site calls them both GTK+... That would well be the source of my woes though. Thanks for the information and I'll see if I can't get this sorted out.

-Feebles
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk-config and glib-config scripts not found? Frustin Linux - General 17 12-26-2008 03:14 PM
Can I install GTK-1.x.x although GTK-2.x.x has already been install in Fedora3 ? Vincenttalk Linux - Software 4 04-13-2005 11:32 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 01:46 AM
GTK, GTK+ and MPlayer won't install ? ivan@elfak Linux - Newbie 4 02-29-2004 08:19 PM
GTK install/config, path problems greennick Linux - Software 3 09-18-2002 04:17 AM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration