Re: ./autogen.sh: Can't find gdk_imlib and tiff :(



Claudemir Todo Bom writes:
> Hi!
> 
> I've downloaded from the daily snapshots the following archives
> 
> gnome-common
> gnome-libs
> gnome-devel
> gnome
> imlib
> gtk+
> 
> I've compiled with success the gtk+ and imlib, when I tried to run
> ./autogen.sh from gnome-libs, it tell me that I don't have gdk_imlib,
> but it is in /usr/local/lib/, It worked with the old version (1.2), but
> with 1.3 and 1.4 autogen.sh give me these errors.
> 
> The same happens with tiff, but libtiff.* is in /usr/local/lib/.
> 
> I've hacked the configure.in to always accept gdk_imlib and tiff, but I
> think that this is the wrong way to make it works!
> 
> Can somebody help me? (or fix the source)
My shared tiff library needs to be linked with libjpeg und libz. 
The test for libtiff fails because of teh missing libraries and as a
result the test for libglib fails because it needs libtiff

I fixed this  with the following patch

gnome-cvs/gnome-libs> diff -c2 configure.in*       
*** configure.in         Mon May 11 10:00:39 1998
--- configure.in.local   Fri May  8 08:50:39 1998
***************
*** 69,73 ****
  AC_CHECK_LIB(jpeg, jpeg_abort, [JPEG_LIBS="-ljpeg"; AC_DEFINE(HAVE_LIBJPEG)])
  AC_CHECK_LIB(png, png_get_valid, [PNG_LIBS="-lpng"; AC_DEFINE(HAVE_LIBPNG)], , $Z_LIBS)
! AC_CHECK_LIB(tiff, main, [TIFF_LIBS="-ltiff"; AC_DEFINE(HAVE_LIBTIFF)])
  AC_CHECK_LIB(gif, main, [GIF_LIBS="-lgif"; AC_DEFINE(HAVE_LIBGIF)], ,$GTK_LIBS $X_LIBS $x_libs)
  AC_CHECK_LIB(gdk_imlib, main, [
--- 69,73 ----
  AC_CHECK_LIB(jpeg, jpeg_abort, [JPEG_LIBS="-ljpeg"; AC_DEFINE(HAVE_LIBJPEG)])
  AC_CHECK_LIB(png, png_get_valid, [PNG_LIBS="-lpng"; AC_DEFINE(HAVE_LIBPNG)], , $Z_LIBS)
! AC_CHECK_LIB(tiff, main, [TIFF_LIBS="-ltiff"; AC_DEFINE(HAVE_LIBTIFF)], ,$JPEG_LIBS $Z_LIBS)
  AC_CHECK_LIB(gif, main, [GIF_LIBS="-lgif"; AC_DEFINE(HAVE_LIBGIF)], ,$GTK_LIBS $X_LIBS $x_libs)
  AC_CHECK_LIB(gdk_imlib, main, [

I worked for me.
> 
> Best Regards (and sorry by my bad english)
> --
> Claudemir Todo Bom <allgood@conection.com.br>
>                    <http://www.geocities.com/SiliconValley/8459>
> Interests/Experiences: Linux, Networks, Netware, Programming
> PGP KEY: email 'Subject: get pgp key' with *your* key on body
> 
> 
> --
>          To unsubscribe: mail gnome-list-request@gnome.org with
>                        "unsubscribe" as the Subject.

-- 
Walter Mueller
Universitaet Mannheim		email: walt@pi4.informatik.uni-mannheim.de
Praktische Informatik IV	tel  : +49 621 292 5056
L15,16 Raum 413			fax  : +49 621 292 5745
68131 Mannheim



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