You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I tried to compile the source code on my system, however it keeps give me error;
The error is realted to libPNG
opt/local/include/png.h:2049:27: note: 'png_get_compression_type' declared here
PNG_EXPORT(121, png_byte, png_get_compression_type, (png_const_structrp png_ptr,
^
/opt/local/include/pngconf.h:333:31: note: expanded from macro 'PNG_EXPORT'
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/opt/local/include/pngconf.h:323:50: note: expanded from macro 'PNG_EXPORTA'
PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args),
^
/opt/local/include/pngconf.h:309:70: note: expanded from macro 'PNG_FUNCTION'
define PNG_FUNCTION(type, name, args, attributes) attributes type name args
^
src/PNGWriter.cpp:545:38: error: cannot initialize a parameter of type 'png_const_inforp' (aka 'const png_info_def *') with an lvalue of type 'int'
png_set_compressor_type(png, PNG_WRITER_USE_ZOPFLI);
^~~~~~~~~~~~~~~~~~~~~
/opt/local/include/png.h:2050:22: note: passing argument to parameter 'info_ptr' here
png_const_inforp info_ptr));
^
/opt/local/include/pngconf.h:333:37: note: expanded from macro 'PNG_EXPORT'
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/opt/local/include/pngconf.h:323:63: note: expanded from macro 'PNG_EXPORTA'
PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args),
^
/opt/local/include/pngconf.h:116:27: note: expanded from macro 'PNGARG'
define PNGARG(arglist) arglist
^
/opt/local/include/pngconf.h:309:75: note: expanded from macro 'PNG_FUNCTION'
define PNG_FUNCTION(type, name, args, attributes) attributes type name args
The text was updated successfully, but these errors were encountered:
Hi.
I tried to compile the source code on my system, however it keeps give me error;
The error is realted to libPNG
opt/local/include/png.h:2049:27: note: 'png_get_compression_type' declared here
PNG_EXPORT(121, png_byte, png_get_compression_type, (png_const_structrp png_ptr,
^
/opt/local/include/pngconf.h:333:31: note: expanded from macro 'PNG_EXPORT'
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/opt/local/include/pngconf.h:323:50: note: expanded from macro 'PNG_EXPORTA'
PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args),
^
/opt/local/include/pngconf.h:309:70: note: expanded from macro 'PNG_FUNCTION'
define PNG_FUNCTION(type, name, args, attributes) attributes type name args
src/PNGWriter.cpp:545:38: error: cannot initialize a parameter of type 'png_const_inforp' (aka 'const png_info_def *') with an lvalue of type 'int'
png_set_compressor_type(png, PNG_WRITER_USE_ZOPFLI);
^~~~~~~~~~~~~~~~~~~~~
/opt/local/include/png.h:2050:22: note: passing argument to parameter 'info_ptr' here
png_const_inforp info_ptr));
^
/opt/local/include/pngconf.h:333:37: note: expanded from macro 'PNG_EXPORT'
PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
^
/opt/local/include/pngconf.h:323:63: note: expanded from macro 'PNG_EXPORTA'
PNG_FUNCTION(PNG_EXPORT_TYPE(type),(PNGAPI name),PNGARG(args),
^
/opt/local/include/pngconf.h:116:27: note: expanded from macro 'PNGARG'
define PNGARG(arglist) arglist
/opt/local/include/pngconf.h:309:75: note: expanded from macro 'PNG_FUNCTION'
define PNG_FUNCTION(type, name, args, attributes) attributes type name args
The text was updated successfully, but these errors were encountered: