Re: Compiling chbg: cant find gdk/gdk.h



florian.harmuth@xxxxxx wrote:
Hello all,
i try to compile chbg to run a simple slideshow with xscreensaver. My
problem is that the compiler cant find the include file gdk.h. But it
is under the nomal Path.
Any suggestions?


Regards,
flo

./configure --with-image-library=imlib2
--with-imlib2-config=/usr/local/bin/imlib2-config
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for msgfmt... (cached) msgfmt
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for X... (cached) libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for working fnmatch... (cached) yes
checking for usleep... (cached) yes
checking for setenv... (cached) yes
checking for random... (cached) yes
checking for mkstemp... (cached) yes
checking for libintl.h... (cached) yes
checking for gettext in -lc... (cached) yes
checking for Imlib2 configuration using imlib2-config script ...
Imlib2 LDFLAGS=-L/usr/local/lib -lImlib2 -L/usr/local/lib -Wl,--rpath
-Wl,/usr/local/lib -lfreetype -lz -L/usr/X11R6/lib -lX11 -lXext -ldl
-lm
Imlib2 CFLAGS=-DHAVE_IMLIB2 -I/usr/local/include
checking for gtk-config... (cached) /usr/local/bin/gtk-config
checking for inflate in -lz... (cached) yes
checking for png_write_info in -lpng... (cached) yes
checking for gnome-config... (cached) no
creating ./config.status
creating Makefile
creating src/Makefile
creating po/Makefile

-bash-2.05b# make
Making all in src
make[1]: Entering directory `/home/fhar/chbg/chbg-1.5/src'
gcc -DPACKAGE=\"chbg\" -DVERSION=\"1.5\" -DSTDC_HEADERS=1
-DHAVE_FNMATCH=1 -I. -I. -DHAVE_ENLIGHTENMENT_SUPPORT
-DHAVE_XSS_SUPPORT -DHAVE_ESETROOT_SUPPORT -DHAVE_MKSTEMP -DHAVE_RANDOM
-g -O2 -Wall -DHAVE_IMLIB2 -I/usr/local/include -DGETTEXT_NLS
-DNLS_DIR="\"/usr/local/share/locale\""
-DDEFAULT_SYS_CHBG_RC="\"/usr/local/etc/chbgrc\"" -c absimg_gdkimlib1.c
In file included from absimg_gdkimlib1.c:9:
absimg.h:12:21: gdk/gdk.h: No such file or directory
absimg.h:13:22: gdk/gdkx.h: No such file or directory
In file included from absimg_gdkimlib1.c:9:
absimg.h:67: error: syntax error before '*' token
absimg.h:70: error: syntax error before '*' token
absimg.h:70: warning: type defaults to `int' in declaration of
`absimg_render'
absimg.h:70: warning: data definition has no type or storage class
absimg.h:72: error: syntax error before '*' token
absimg.h:74: error: syntax error before '*' token
absimg.h:92: error: syntax error before "guchar"
absimg.h:94: error: syntax error before "gfloat"
make[1]: *** [absimg_gdkimlib1.o] Error 1
make[1]: Leaving directory `/home/fhar/chbg/chbg-1.5/src'
make: *** [all-recursive] Error 1
-bash-2.05b# ls /usr/local/in
include info

-bash-2.05b# ls /usr/local/include/
FlexLexer.h Imlib2.h Imlib_types.h atk-1.0 cairo
freetype2 gettext-po.h gtk-1.2 gtk-unix-print-2.0 libxml2
Imlib.h Imlib_private.h X11 autosprintf.h fontconfig
ft2build.h glib-2.0 gtk-2.0 libglade-2.0 pango-1.0
-bash-2.05b#


The configuration may have default to look in /usr/local/include and not in /usr/include, so you need to set the base directory, you see the option name if you do ./configure --help


//Aho
.



Relevant Pages

  • New C compiler and analyzer lang/cparser in ports
    ... A few days ago libFIRMand cparser were added to the ports tree. ... If you want to see, what other compilers besides GCC have to offer, this might be of interest for you. ... cparser is a C compiler providing many useful warnings and uses libFIRM for optimization and code generation. ... format.c:5: warning: argument type 'int' does not match conversion specifier '%u' at position 1 ...
    (freebsd-hackers)
  • Re: Whats the story with the "end of XP"?
    ... Support gives them access to the larger body ... The same compiler suite may be "best" in both ... In the case of ByteCraft compilers, you are truly expert in your field, you work closely and rapidly with customers if there are any issues, and you have top class testing and quality control. ... understanding the inner workings of a relatively simple compiler like GCC ...
    (comp.arch.embedded)
  • [RFC][PATCH-2.6] Clean up and merge compiler-*.h
    ... the kernel headers in include/linux to include/linux-abi. ... * Common definitions for all gcc versions go here. ... -/* Some compiler specific definitions are overwritten here ...
    (Linux-Kernel)
  • Compiling chbg: cant find gdk/gdk.h
    ... problem is that the compiler cant find the include file gdk.h. ... checking for gcc... ... checking for Imlib2 configuration using imlib2-config script ... ... absimg.h:70: warning: data definition has no type or storage class ...
    (alt.os.linux)
  • Re: LPC900/80C51 Compiler Toolchain
    ... >> supported by GCC, and so they invest. ... > if they already have their in-house compiler. ... one of the main companies in the Symbian consortium ... vendor to provide a good compiler for Atmel AVRs and eventually became ...
    (comp.arch.embedded)