lifuhua666666 发表于 2012-11-08 09:48

编译inkscape遇见错误,求高人指点。(libpng15相关)

makeall-recursive
make: Entering directory `/home/me/inkscape/install/inkscape-0.48.3.1'
Making all in src
make: Entering directory `/home/me/inkscape/install/inkscape-0.48.3.1/src'
CXX    helper/png-write.o
helper/png-write.cpp: In function ‘bool sp_png_write_rgba_striped(SPDocument*, const gchar*, long unsigned int, long unsigned int, double, double, int (*)(const guchar**, int, int, void*), void*)’:
helper/png-write.cpp:169: error: invalid use of incomplete type ‘struct png_struct_def’
/usr/local/include/libpng15/png.h:857: error: forward declaration of ‘struct png_struct_def’
make: *** Error 1
make: Leaving directory `/home/me/inkscape/install/inkscape-0.48.3.1/src'
make: *** Error 1
make: Leaving directory `/home/me/inkscape/install/inkscape-0.48.3.1'
make: *** Error 2

lifuhua666666 发表于 2012-11-08 10:38

可能和libpng库的版本有关系(猜的),为了编译通过,
暂时将/usr/local/include/libpng15/png.h:中857行 的
typedef struct png_struct_def png_struct
改为
typedef struct png_struct_def
{
      __jmp_buf_tag*jmpbuf;
} png_struct;

现编译通过,但估计会影响程序功能,哪位高人路过请帮忙真正解决之,谢谢。
页: [1]
查看完整版本: 编译inkscape遇见错误,求高人指点。(libpng15相关)