Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not compile the code #3

Open
waters222 opened this issue Dec 5, 2014 · 0 comments
Open

Can not compile the code #3

waters222 opened this issue Dec 5, 2014 · 0 comments

Comments

@waters222
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant