[Scummvm-devel] Png compilation error

Федор fedor_qd at mail.ru
Sun Dec 15 11:00:53 CET 2013


>On Sat, Dec 14, 2013 at 06:15:13PM +0400, Федор wrote:
>> 
>> You was right. Compiler find png.h in system include path but used scummvm's one. I have changeg ifdef guards and succesfully compile scummvm_base.lib.
>> #ifdef USE_PNG
>> # ifdef __SYMBIAN32__
>> # include <png/png.h>
>> # else
>> # include <png.h>
>> # endif // __SYMBIAN32__
>> #endif // USE_PNG
>
>That is not the right way to do it. Make sure you add the right include path to CPPFLAGS instead.

Hi! Now compiler uses proper include path.

>
>
>> scummvm_base.lib(png.o): In function `Graphics::PNGDecoder::loadStream(Common::SeekableReadStream&)':
>> 1387019093089 undefined reference to `png_create_info_struct' scummvm line 0 C/C++ Problem
>> etc...
>
>These remaining errors seem to suggest you aren't actually linking against libpng.

Solved.

>
>-Willem Jan
>
>------------------------------------------------------------------------------

С уважением, Федор Стрижнёв.


More information about the Scummvm-devel mailing list