Re: include file problem



Erik Andersen said once upon a time (Thu, 29 Apr 1999):

> Quoting Dax Kelson <dkelson@inconnect.com>:
> > 
> > This is on a vanilla RedHat 6.0 box.
> > 
> > I just tried compiling up "dia" a Visio like application.
> > 
> > gcc -DHAVE_CONFIG_H -I. -I. -I..   -I/usr/X11R6/include
> > -I/usr/lib/glib/include  -g -O2 -I/usr/include/gnome-xml -c diagramdata.c
> > In file included from intl.h:7,
> >                  from diagramdata.c:21:
> > /usr/include/gnome.h:4: gnomesupport.h: No such file or directory
> > 
> 
> I think you need to adjust your build environment a bit. Hmm. (sound of 
> dia getting pulled down from CVS followed by the sound of compiling).  It 
> builds just fine on my Debian (potato) system with the latest gnome stuff. 
> 
> What does 'gnome-config gnomeui --cflags' and 'gnome-config gnomeui --libs'
> report (as that is what is used under the hood)?
> 
> [andersen@dillweed dia]$ gnome-config gnomeui --cflags
> -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/X11R6/include -I/usr/lib/glib/include
> [andersen@dillweed dia]$ gnome-config gnomeui --libs
> -rdynamic -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb -lglib -ldl
> 
>  -Erik

gnome-config gnomeui --cflags

-I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/X11R6/include -I/usr/lib/glib/include

gnome-config gnomeui --libs

-rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnomeui -lart_lgpl -lgdk_imlib
-lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd
-laudiofile -lm -ldb1 -lglib -ldl

Which looks fine to me.  

My problem was that line 4 of /usr/include/gnome.h had

#include "gnomesupport.h"

I changed it to:

#include "/usr/lib/gnome-libs/include/gnomesupport.h"

And dia compiled.  This is the first gnome app I've compiled since I
upgraded to RedHat 6.0.  I'm wondering if the gnome.h file part of the
gnome-libs rpm needs fixing.

Dax Kelson



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