[Scummvm-devel] Png compilation error
Always yours, Fedor.
fedor_qd at mail.ru
Fri Dec 13 20:05:18 CET 2013
Hi! I try to compile ScummVM with Png support for Symbian and get many errors.
Headers present in System and User include path.
I am using GCCE 4.4.1 from Mentor Graphics and S60_5th_Edition_SDK_v1.0.
I build libpng.lib succefully from libpng-1.6.7 source.
I attach png headers used for compilation scummvm_base.mmp.
Building without Png support succesful.
Here console log :
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp: At global scope:
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:60: error: variable or field 'pngError' declared void
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:60: error: 'png_structp' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:60: error: 'png_const_charp' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:64: error: variable or field 'pngWarning' declared void
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:64: error: 'png_structp' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:64: error: 'png_const_charp' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:69: error: variable or field 'pngReadFromStream' declared void
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:69: error: 'png_structp' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:69: error: 'png_bytep' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:69: error: 'png_size_t' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp: In member function 'virtual bool Graphics::PNGDecoder::loadStream(Common::SeekableReadStream&)':
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:105: error: 'png_structp' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:105: error: expected ';' before 'pngPtr'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:106: error: 'pngPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:110: error: 'png_infop' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:110: error: expected ';' before 'infoPtr'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:111: error: 'infoPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:112: error: 'pngPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:112: error: 'png_destroy_read_struct' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:116: error: expected ';' before 'endInfo'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:117: error: 'endInfo' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:118: error: 'pngPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:118: error: 'infoPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:118: error: 'png_destroy_read_struct' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:123: error: 'pngPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:123: error: 'pngError' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:123: error: 'pngWarning' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:123: error: 'png_set_error_fn' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:126: error: 'pngReadFromStream' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:126: error: 'png_set_read_fn' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:127: error: 'PNG_CRC_DEFAULT' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:127: error: 'PNG_CRC_WARN_USE' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:127: error: 'png_set_crc_action' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:129: error: 'png_set_sig_bytes' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:132: error: 'infoPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:132: error: 'png_read_info' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:136: error: 'png_uint_32' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:136: error: expected ';' before 'w'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:137: error: 'w' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:137: error: 'h' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:137: error: 'png_get_IHDR' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:147: error: 'PNG_COLOR_TYPE_PALETTE' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:147: error: 'PNG_INFO_tRNS' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:147: error: 'png_get_valid' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:149: error: 'png_colorp' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:149: error: expected ';' before 'palette'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:150: error: 'palette' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:150: error: 'png_get_PLTE' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:151: error: 'PNG_INFO_PLTE' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:152: error: 'png_destroy_read_struct' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:164: error: 'png_set_packing' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:166: error: 'PNG_COLOR_MASK_ALPHA' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:169: error: 'png_set_expand' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:177: error: 'png_set_strip_16' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:179: error: 'png_set_expand' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:180: error: 'PNG_COLOR_TYPE_GRAY' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:181: error: 'PNG_COLOR_TYPE_GRAY_ALPHA' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:182: error: 'png_set_gray_to_rgb' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:186: error: 'png_set_bgr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:187: error: 'png_set_swap_alpha' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:188: error: 'PNG_COLOR_TYPE_RGB_ALPHA' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:189: error: 'PNG_FILLER_BEFORE' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:189: error: 'png_set_filler' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:198: error: 'png_set_interlace_handling' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:199: error: 'png_read_update_info' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:204: error: 'PNG_INTERLACE_NONE' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:207: error: 'png_bytep' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:207: error: 'png_read_row' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:214: error: 'png_bytep' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:214: error: 'rowPtr' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:214: error: expected type-specifier before 'png_bytep'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:214: error: expected ';' before 'png_bytep'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:221: error: expected ';' before '_outputSurface'
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:224: error: 'png_read_image' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:227: error: type '<type error>' argument given to 'delete', expected pointer
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:231: error: 'png_read_end' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:234: error: 'endInfo' was not declared in this scope
/Symbian/Projects/SDL/scummvm/graphics/decoders/png.cpp:234: error: 'png_destroy_read_struct' was not declared in this scope
make.exe: *** [\Symbian\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Projects\SDL\scummvm\backends\platform\symbian\S60v3\SCUMMVM_BASE\GCCE\UREL\png.o] Error 1
=== make failed with error code 2 ===
***Stopping. Check the Problems view or Console output for errors.
С уважением, Фёдор.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: png.zip
Type: application/mspowerpoint
Size: 48148 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20131213/d36371f0/attachment.bin>
More information about the Scummvm-devel
mailing list