We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 174 - png.h not found
Summary: png.h not found
Status: RESOLVED FIXED
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-22 12:16 UTC by Samuel Owens
Modified: 2006-05-02 18:29 UTC (History)
1 user (show)

See Also:


Attachments
config log for error diagnostic (34.66 KB, application/octet-stream)
2006-05-02 18:29 UTC, Samuel Owens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Owens 2006-03-22 12:16:57 UTC
After successfully compiling SDL 1.2.9, I tried to compile SDL_image 1.2.4, but after successfully configuring, when I try to run make, I get this error:
--------------------------------------------------------------------------------
IMG_png.c:72:17: error: png.h: No such file or directory
IMG_png.c: In function 'IMG_isPNG':
IMG_png.c:86: error: 'png_size_t' undeclared (first use in this function)
IMG_png.c:86: error: (Each undeclared identifier is reported only once
IMG_png.c:86: error: for each function it appears in.)
IMG_png.c:86: error: syntax error before numeric constant
IMG_png.c: At top level:
IMG_png.c:90: error: syntax error before 'ctx'
IMG_png.c: In function 'png_read_data':
IMG_png.c:94: error: 'ctx' undeclared (first use in this function)
IMG_png.c:95: error: 'area' undeclared (first use in this function)
IMG_png.c:95: error: 'size' undeclared (first use in this function)
IMG_png.c: In function 'IMG_LoadPNG_RW':
IMG_png.c:100: error: 'png_structp' undeclared (first use in this function)
IMG_png.c:100: error: syntax error before 'png_ptr'
IMG_png.c:101: error: 'png_infop' undeclared (first use in this function)
IMG_png.c:102: error: 'png_uint_32' undeclared (first use in this function)
IMG_png.c:109: error: 'png_bytep' undeclared (first use in this function)
IMG_png.c:109: error: syntax error before 'volatile'
IMG_png.c:112: error: 'png_color_16' undeclared (first use in this function)
IMG_png.c:112: error: 'transv' undeclared (first use in this function)
IMG_png.c:120: error: 'png_ptr' undeclared (first use in this function)
IMG_png.c:120: error: 'info_ptr' undeclared (first use in this function)
IMG_png.c:120: error: 'row_pointers' undeclared (first use in this function)
IMG_png.c:123: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
IMG_png.c:151: error: 'width' undeclared (first use in this function)
IMG_png.c:151: error: 'height' undeclared (first use in this function)
IMG_png.c:163: error: 'PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
IMG_png.c:169: error: 'PNG_INFO_tRNS' undeclared (first use in this function)
IMG_png.c:174: error: 'PNG_COLOR_TYPE_PALETTE' undeclared (first use in this function)
IMG_png.c:195: error: 'PNG_COLOR_TYPE_GRAY_ALPHA' undeclared (first use in this function)
IMG_png.c:237: error: syntax error before ')' token
IMG_png.c:246: error: syntax error before 'Uint8'
IMG_png.c:281: error: 'png_infopp' undeclared (first use in this function)
IMG_png.c:281: error: syntax error before numeric constant
make: *** [IMG_png.lo] Error 1
-------------------------------------------------------------------------------
I don't know why that file isn't there in the "stable" source code.  Especially since I compiled SDL, & SDL_image successfully on my machine at home (I'm on Computer Science lab computer now) last night
Comment 1 Samuel Owens 2006-03-22 12:23:08 UTC
When I tried the CVS build, I get the same error.
Comment 2 Christian Walther 2006-03-25 04:24:37 UTC
Looks like you don't have libpng? Although I'd expect configure to complain in that case...
Comment 3 Sam Lantinga 2006-04-12 10:29:09 UTC
What platform are you running on?
If it's a UNIX platform, what's the output of: sh configure
Comment 4 Sam Lantinga 2006-05-01 05:19:14 UTC
I think this may be fixed in subversion.
You can check out a snapshot here:
http://www.libsdl.org/tmp/SDL_image-1.2.5.tar.gz

Please reopen this bug if it's not fixed, and include the output of config.log
Comment 5 Samuel Owens 2006-05-02 18:29:05 UTC
Created attachment 109 [details]
config log for error diagnostic

same problem I'm afraid.
config.log is attached