Re: compiler can't find includes



> 
> I am having two problems with includes.
> 
> 1) When compiling gnome-libs, I get told that libgtkxmhtml in file readXP=
> M.c
> can't find X11/xpm.h  where can I get this? What should it come with on d=
> ebian
> 2.0.

This should be part of "libxpm".  Sorry, i'm not sure which package this
might be included with debian.  Sometimes libxmp's header gets installed
in /usr/X11/include/ rather than /usr/X11/include/X11, but I dont know
if this is true of debian.

> 2) When trying to compile my own gnome app, it says it can't fing the inc=
> lude
> files, ie gnome.h. They are in /opt/gnome. I have my library path pointin=
> g
> there and my /opt/gnome/bin is in the path, how do I get includes in the =
> path.

You own gnome-app?  As in not one of the included ones?

gnome-config can be used to generate link or include paths.

e.g.
gcc `gnome-config --cflags gnome` -c myapp.c
gcc `gnome-config --libs gnome` myapp.o -o myapp

(I think I have this right ...).

If you're compiling things with configure you might have to do
./configure --prefix=/opt/gnome
when you configure them.

This on the right track?

 Michael
-- 
     ///   `... thinking is an exercise to which all too few brains
    ///     are accustomed.' - First Lensman, E.E. `Doc' Smith
\\\///  
 \\\/   Michael Zucchi, B.E.                 zucchi@zedzone.mmc.com.au



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