Menu

#5 won't build with libpng 1.5

None
closed
Max Horn
None
1
2016-01-08
2013-08-06
No

Compilation of sng currently fails in Cygwin, with multiple errors like this:

/cygdrive/c/Users/andrex/Home/dev/cygwin/sng/sng-1.0.5-1/src/sng-1.0.5/sngc.c:545:23: error: dereferencing pointer to incomplete type
  if (width != info_ptr->width && height != info_ptr->height)
                       ^

and

/cygdrive/c/Users/andrex/Home/dev/cygwin/sng/sng-1.0.5-1/src/sng-1.0.5/sngd.c:953:38: error: PNG_HAVE_IDAT undeclared (first use in this function)
  if (after_idat != !!(up->location & PNG_HAVE_IDAT))
                                      ^

These appear to be caused by dependencies on libpng 1.2, which seems to be deprecated. Anyway libpng 1.2 is no longer available in Cygwin, so sng will no longer build there.

Discussion

  • Max Horn

    Max Horn - 2013-08-08

    I made a version of sng that works with current libpng, you can find its code here: https://github.com/fingolfin/sng/tree/modern-libpng

    I also emailed esr about it, so perhaps this can be integrated into sng soon.

     

    Last edit: Max Horn 2013-08-08
  • Eric S. Raymond

    Eric S. Raymond - 2016-01-08
    • assigned_to: Max Horn
    • Group: -->
     
  • Eric S. Raymond

    Eric S. Raymond - 2016-01-08
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB