problems trying to compile libpng-1.5.28
Jack Ostroff
ostroffjh at frontier.com
Mon Mar 6 22:59:26 UTC 2017
I've been struggling with this for a while now. During the compile
phase, I get the following errors:
------------------
[14/29] Building C object CMakeFiles/png.dir/pngread.c.obj
FAILED: CMakeFiles/png.dir/pngread.c.obj
R:\mingw\bin\gcc.exe -DPNG_BUILD_DLL -IR:/include -I.
-IR:/build/win32libs/libpng/work/libpng-1.5.28 -O2 -g -DNDEBUG -MD -MT
CMakeFiles/png.dir/pngread.c.obj -MF CMakeFiles\png.dir\pngread.c.obj.d
-o CMakeFiles/png
.dir/pngread.c.obj -c
R:\build\win32libs\libpng\work\libpng-1.5.28\pngread.c
R:\build\win32libs\libpng\work\libpng-1.5.28\pngread.c: In function
'png_create_read_struct_2':
R:\build\win32libs\libpng\work\libpng-1.5.28\pngread.c:67:30: error:
'PNG_USER_WIDTH_MAX' undeclared (first use in this function)
png_ptr->user_width_max = PNG_USER_WIDTH_MAX;
^
R:\build\win32libs\libpng\work\libpng-1.5.28\pngread.c:67:30: note: each
undeclared identifier is reported only once for each function it appears in
R:\build\win32libs\libpng\work\libpng-1.5.28\pngread.c:68:31: error:
'PNG_USER_HEIGHT_MAX' undeclared (first use in this function)
png_ptr->user_height_max = PNG_USER_HEIGHT_MAX;
^
R:\build\win32libs\libpng\work\libpng-1.5.28\pngread.c:71:36: error:
'PNG_USER_CHUNK_CACHE_MAX' undeclared (first use in this function)
png_ptr->user_chunk_cache_max = PNG_USER_CHUNK_CACHE_MAX;
^
R:\build\win32libs\libpng\work\libpng-1.5.28\pngread.c:74:37: error:
'PNG_USER_CHUNK_MALLOC_MAX' undeclared (first use in this function)
png_ptr->user_chunk_malloc_max = PNG_USER_CHUNK_MALLOC_MAX;
^
[15/29] Building C object CMakeFiles/png.dir/pngmem.c.obj
[16/29] Building C object CMakeFiles/png.dir/pngpread.c.obj
------------------
The source file pngusr.dfa implies that changing the last few lines in
that file will set those variables - but it appears something other than
just editing that file is necessary. I cannot tell if it requires
moving one or more files up from the scripts directory, or running
autogen.sh in the source directory - which I can't figure out how to do
anyway.
I would have expected some default values to have been set, but it
appears not. I may try to bring this up separately with the libpng
developers, and I'll report back if I get anywhere with that.
Thanks for any other suggestions.
Jack
More information about the Kde-windows
mailing list