Menu

Compiling on CentOS 7

Help
mov AX 13h
2016-01-26
2016-01-30
  • mov AX 13h

    mov AX 13h - 2016-01-26

    I've followed all instructions very carefully and installed all libs from your sources ... except ming won't compile. I think it is due to a change in libpng 1.5.0
    http://stackoverflow.com/questions/10507610/libpng-1-5-10-error-dereferencing-pointer-to-incomplete-type

    The error I get on make:

    pngdbl.c: In function 'pngReadFunc':
    pngdbl.c:64:34: error: dereferencing pointer to incomplete type
     { SWFInput input = (SWFInput) png->io_ptr;
                                      ^
    In file included from /usr/include/png.h:452:0,
                     from pngdbl.c:29:
    pngdbl.c: In function 'readPNG':
    pngdbl.c:130:19: error: dereferencing pointer to incomplete type
      if(setjmp(png_ptr->jmpbuf))
                       ^
    

    More information about the libpng update: libpng io_ptr not exposed patch

    It required edits in 3 lines to compile with latest libpng:

    src/blocks/pngdbl.c:64 
    from: SWFInput input = (SWFInput) png->io_ptr;
    to:   SWFInput input = (SWFInput) png_get_io_ptr(png);
    
    src/blocks/pngdbl.c:130
    from: if(setjmp(png_ptr->jmpbuf))
    to:   if(setjmp(png_jmpbuf(png_ptr)))
    
    util/png2dbl.c:94
    from: if(setjmp(png_ptr->jmpbuf))
    to:   if(setjmp(png_jmpbuf(png_ptr)))
    

    greetings

     

    Last edit: mov AX 13h 2016-01-26
  • Philip de Nier

    Philip de Nier - 2016-01-27

    Thanks for this. I'll take a look at the weekend.

    Philip

     
  • Philip de Nier

    Philip de Nier - 2016-01-30

    I've built svg2swf's libming on Ubuntu with libpng version 1.2 and with your changes and it's works fine, thanks. Not unexpected given that your linked bug report stated that the function has been available since libpng-0.88.

    I'm not sure that adding another svgswf libming patch would be very useful, particularly because libming has progressed somewhat at. The libming git history shows a fix for the issue you reported. These is also another fix that matches what I had to do when building. Hopefully the other patches I needed for svg2swf are now in libming, and otherwise another bug report or a git fork would be a better way to maintain the patches.

    Philip

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.