[Scummvm-devel] Png compilation error
Willem Jan Palenstijn
wjp at usecode.org
Sat Dec 14 15:18:02 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.
> 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.
-Willem Jan
More information about the Scummvm-devel
mailing list