Compilation cannot "see" files

Compilation cannot "see" files

Post by CyaNid » Wed, 30 May 2001 13:42:02



Hi all,

This is unusual, I'm trying to compile a program, but it keeps telling me
that these files (ie gtk.h and glib.h) does not exist. I've checked up on
those files and it does reside in my system. Why wouldn't the program
pick it up?

This is what I get when I try to compile:

.
.
.
loading cache ./config.cache
checking for glib-config... (cached) /usr/bin/glib-config
checking for GLIB - version >= 1.2.2... yes
checking for gtk-config... (cached) /usr/bin/gtk-config
checking for GTK - version >= 1.2.2... yes
checking for xmms-config... (cached) /usr/bin/xmms-config
checking for mawk... (cached) gawk
checking for XMMS - version >= 1.0.0... yes
checking for sdl-config... (cached) /usr/local/bin/sdl-config
checking for SDL - version >= 1.1.5... yes
checking for smpeg-config... (cached) /usr/local/bin/smpeg-config
checking for SMPEG_new_data in -lsmpeg... (cached) yes
checking for pthread_attr_init in -lpthread... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for pthread.h... (cached) yes
checking for inline... (cached) inline
checking for ANSI C header files... (cached) yes
checking for XvGetVideo in -lSDL... (cached) yes
checking for r00taxx in -lr00t... (cached) no
creating ./config.status
creating Makefile
creating src/Makefile

Making all in src
make[1]: Entering directory `/tmp/smpeg-xmms-0.3.4/src'
/bin/sh ../libtool --mode=compile gcc -DPACKAGE=\"smpeg-xmms\" -DVERSION=\"0.3.4\" -DHAVE_LIBSMPEG=1 -DSTDC_HEADERS=1  -I. -I.  -I/usr/include/xmms -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include -I/usr/local/include/smpeg -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT    -g -O2 -c smpeg-xmms.c
gcc -DPACKAGE=\"smpeg-xmms\" -DVERSION=\"0.3.4\" -DHAVE_LIBSMPEG=1 -DSTDC_HEADERS=1 -I. -I. -I/usr/include/xmms -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT -I/usr/local/include -I/usr/local/include/smpeg -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT -g -O2 -c smpeg-xmms.c  -fPIC -DPIC -o smpeg-xmms.lo
smpeg-xmms.c:21:21: gtk/gtk.h: No such file or directory
In file included from smpeg-xmms.c:30:
/usr/include/xmms/plugin.h:27:18: glib.h: No such file or directory
In file included from smpeg-xmms.c:31:
/usr/include/xmms/xmmsctrl.h:21:18: glib.h: No such file or directory
In file included from smpeg-xmms.c:32:
/usr/include/xmms/configfile.h:21:18: glib.h: No such file or directory
In file included from smpeg-xmms.c:33:
/usr/include/xmms/util.h:3:21: gtk/gtk.h: No such file or directory
make[1]: *** [smpeg-xmms.lo] Error 1
make[1]: Leaving directory `/tmp/smpeg-xmms-0.3.4/src'
make: *** [all-recursive] Error 1

/usr/include/glib-1.2/glib.h
/usr/include/gtk-1.2/gtk/gtk.h

---------------------

Thanks in advance, any hints of what is going on will be much
appreciated.

Regards,
CN

 
 
 

Compilation cannot "see" files

Post by Jan Schauma » Wed, 30 May 2001 01:28:24



>  In file included from smpeg-xmms.c:33:
>  /usr/include/xmms/util.h:3:21: gtk/gtk.h: No such file or directory
>  make[1]: *** [smpeg-xmms.lo] Error 1
>  make[1]: Leaving directory `/tmp/smpeg-xmms-0.3.4/src'
>  make: *** [all-recursive] Error 1

>  /usr/include/glib-1.2/glib.h
>  /usr/include/gtk-1.2/gtk/gtk.h


The program is looking for <gtk/gtk.h>, but your files are in
<gtk-1.2/gtk/gtk.h>

Move your files from /usr/include/gtk-1.2/gtk/ to /usr/include/gtk (and
similar for glib).

-Jan

--
Jan Schaumann
http://www.netmeister.org

 
 
 

Compilation cannot "see" files

Post by ángel Suárez River » Wed, 30 May 2001 06:35:12



> Hi all,

> This is unusual, I'm trying to compile a program, but it keeps telling me
> that these files (ie gtk.h and glib.h) does not exist. I've checked up on
> those files and it does reside in my system. Why wouldn't the program
> pick it up?

> This is what I get when I try to compile:

trying with: gcc `gtk-config --cflags` `gtk-config --libs` you-code.c -o
you-program -g -Wall -etc...etc...etc.
Regards

--
Algn da aprender Bash
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

 
 
 

Compilation cannot "see" files

Post by Rajarshi Guh » Wed, 30 May 2001 00:26:05



Quote:> This is unusual, I'm trying to compile a program, but it keeps telling me
> that these files (ie gtk.h and glib.h) does not exist. I've checked up on

[snip]

> make[1]: Leaving directory `/tmp/smpeg-xmms-0.3.4/src'
> make: *** [all-recursive] Error 1

> /usr/include/glib-1.2/glib.h
> /usr/include/gtk-1.2/gtk/gtk.h

Your problem lies in the last two lines. Your glib.h and gtk.h are in the
directories above (last two lines) but your source files are looking for
them in /usr/include and /usr/include/gtk respectively.
Solution: make  a soft link from /usr/include/gtk-1.2 to /usr/include/gtk
and similarly make a soft link from glib.h (wherever it is) to
/usr/include/glib.h

HTH

--
-------------------------------------------------------------
Rajarshi Guha


web: http:/www.psynet.net/jijog

 
 
 

Compilation cannot "see" files

Post by CyaNid » Fri, 01 Jun 2001 05:15:17




> Hi all,

> This is unusual, I'm trying to compile a program, but it keeps telling
> me that these files (ie gtk.h and glib.h) does not exist. I've checked
> up on those files and it does reside in my system. Why wouldn't the
> program pick it up?

> This is what I get when I try to compile:

snip

Quote:

> Thanks in advance, any hints of what is going on will be much
> appreciated.

> Regards,
> CN

Thanks for everyones' help, it nows compiles without a problem.

Regards,
CN