Re: PNG problem



On Sun, 25 Oct 1998 spam@turian.student.harvard.edu wrote:
> I recently somehow broke my png support. I then removed the RPM and
> reinstalled libpng-1.0.1-1 (also later tried libpng-1.0.1-3 and
> libpng-1.0.2-1). Anyway, when recompiling imlib, I get the following
> error:
> 
> checking for png_read_info in -lpng... yes
> checking for png.h... yes
> checking for png_structp in png.h... no
> configure: warning: *** Native PNG support will not be built (PNG library is too old) ***
> 
> Strange, since I have png_structp in png.h. Whatever, I edit configure
> so that it ignores the error and compiles in PNG support. Then I run
> into the following compile error:
> 
> save.c: In function `gdk_imlib_save_image':
> save.c:342: `PNG_INTERLACE_NONE' undeclared (first use in this function)
> save.c:342: (Each undeclared identifier is reported only once
> save.c:342: for each function it appears in.)
> save.c:343: `PNG_COMPRESSION_TYPE_BASE' undeclared (first use in this function)
> save.c:343: `PNG_FILTER_TYPE_BASE' undeclared (first use in this function)
> make: *** [save.lo] Error 1
> 
> Strange, these values are defined in my png.h file. hrm
> Any ideas? Thanks
> 
> 		Joseph

Sounds like you have two png.h's knocking around your system.
Try `locate png.h', or just using `find -name png.h'.

Michael Hudson
Jesus College
Cambridge
mwh21@cam.ac.uk





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