LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-12-2002, 11:52 AM   #1
SekurityWizard
LQ Newbie
 
Registered: Sep 2002
Location: USA, Earth
Distribution: Mandrake 9.0/RC2
Posts: 3

Rep: Reputation: 0
Unhappy Why is my `make` not finding my gtk.h files?!


I've posted this to just about every other list, so I'll post it here too. What gives!? I downloaded, untarred, compiled and sucessfully installed gtk+1.2.10 and glib-1.2.10 and they apparently installed without problems. I can do gtk-config --libs --cflags --version and it gives all the correct answers. I've just about lost my mind. I have the files in the /usr/include/gtk-1.2/gtk/gtk.h path...but I get a error from a makefile I'm trying to execute says "gtk/gtk.h: No such file or directory". I've done the customary updatedb and everything else I can think of.

HELP? I seem to notice that there are LOTS of people having this problem here....maybe we can get an answer?...
 
Old 10-12-2002, 12:24 PM   #2
SekurityWizard
LQ Newbie
 
Registered: Sep 2002
Location: USA, Earth
Distribution: Mandrake 9.0/RC2
Posts: 3

Original Poster
Rep: Reputation: 0
(follow-up)

OK, so I took my gtk and gfk directories and moved them into /usr/include/<gtk, gdk>. I then edited my ld.so.conf to include those paths, and re-did ldconfig. I also re-ran updatedb as ROOT. NOW I don't get the gtk/gtk.h errors anymore, BUT, I get approx 5,400 lines of this kind of stuff:

cc -O3 -funroll-loops -fomit-frame-pointer -pipe -DHAVE_CONFIG_H `libnet-config --defines` -c main.c -o main.o
In file included from /usr/include/gdk/gdk.h:31,
from /usr/include/gtk/gtk.h:31,
from gtk_main.h:37,
from firepack.h:41,
from firewalk.h:38,
from main.c:39:
/usr/include/gdk/gdktypes.h:33:18: glib.h: No such file or directory
In file included from /usr/include/gdk/gdk.h:31,
from /usr/include/gtk/gtk.h:31,
from gtk_main.h:37,
from firepack.h:41,
from firewalk.h:38,
from main.c:39:
/usr/include/gdk/gdktypes.h:52: parse error before "GdkAtom"
/usr/include/gdk/gdktypes.h:98: parse error before "gpointer"
/usr/include/gdk/gdktypes.h:103: parse error before "GdkWChar"
In file included from /usr/include/gdk/gdk.h:31,
from /usr/include/gtk/gtk.h:31,
from gtk_main.h:37,
from firepack.h:41,
from firewalk.h:38,
from main.c:39:
/usr/include/gdk/gdktypes.h:694: parse error before "data"
/usr/include/gdk/gdktypes.h:698: parse error before "data"
/usr/include/gdk/gdktypes.h:759: parse error before "gulong"
/usr/include/gdk/gdktypes.h:761: parse error before "green"
/usr/include/gdk/gdktypes.h:762: parse error before "blue"
/usr/include/gdk/gdktypes.h:770: parse error before "gint"
/usr/include/gdk/gdktypes.h:772: parse error before '}' token
/usr/include/gdk/gdktypes.h:789: parse error before "gint"
/usr/include/gdk/gdktypes.h:791: parse error before "colormap_size"
/usr/include/gdk/gdktypes.h:792: parse error before "bits_per_rgb"
/usr/include/gdk/gdktypes.h:794: parse error before "red_mask"
/usr/include/gdk/gdktypes.h:795: parse error before "red_shift"
/usr/include/gdk/gdktypes.h:796: parse error before "red_prec"
/usr/include/gdk/gdktypes.h:798: parse error before "green_mask"
/usr/include/gdk/gdktypes.h:799: parse error before "green_shift"


What in Sam Hill is going on?!

Yes, before you even ask, glib is sitting in /usr/lib/glib...arg
 
Old 10-12-2002, 12:31 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
ldconfig will update your library directory path, updatedb have nothing to do with your gtk lib...
-First, what's the program you want to install?
-Second, are you sure you have all correct library required by your progs, or you do you have an old version version of gtk laying somewhere on your system?
 
Old 10-12-2002, 12:43 PM   #4
SekurityWizard
LQ Newbie
 
Registered: Sep 2002
Location: USA, Earth
Distribution: Mandrake 9.0/RC2
Posts: 3

Original Poster
Rep: Reputation: 0
Reply from the frustrated one

I'm trying to compile Firewalk from www.packetfactory.net. The developer doesn't specify which version of GTK it needs, but I have 1.2.10 installed properly as far as I know.

I'm not sure - I think I'm just missing something. I have a recent copy of glib - could that be it? Is there a newer one?...how do I know which version I have?

ARG.
 
  


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 keeps finding the wrong version of glib slzckboy Linux - Software 5 10-21-2005 08:26 AM
gtk+-2.0.8 not finding pango for some reason. prismra Linux - Software 3 08-20-2005 04:00 PM
Installing or finding GTK+2.0 chrisjasp Mandriva 1 04-11-2005 04:39 PM
Finding files brentos Linux - General 3 03-22-2004 08:24 PM
finding out the make/model of an old ISA card acid2000 Linux - Hardware 3 10-16-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration