You are not logged in.

#1 2009-04-07 10:45:13

whoops
Member
Registered: 2009-03-19
Posts: 891

[SOLVED]pngconf.h:328: error (building inkscape)

Hi!


When I tried to build inkscape I had the error:

In file included from /usr/include/libpng12/png.h:474,
from sp-image.cpp:44:
/usr/include/libpng12/pngconf.h:328: error: expected constructor, destructor, or type conversion before '.' token
/usr/include/libpng12/pngconf.h:329: error: '__dont__' does not name a type
make[2]: *** [sp-image.o] Error 1
make[2]: *** Waiting for unfinished jobs....

So I commented out the 2 lines in pngconf.h like this - don't really know why:

//__pngconf.h__ already includes setjmp.h;
//__dont__ include it again.;

After that building inkscape surprisingly worked fine (and the installed inkscape does too). But now i'm not sure if I should leave pngconf.h like this or not... or if it makes sense to make this change permanent somehow or something (how?).

Do I need those two lines for something else? I'm not even sure if that's 2 lines of code that use strange objects/functions to look like a sentence or if someone just forgot to comment out a comment because those are 2 sentences that look a bit like code...

Last edited by whoops (2009-05-11 16:06:47)

Offline

#2 2009-05-11 16:06:28

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [SOLVED]pngconf.h:328: error (building inkscape)

Had the same problem when I built inkscape the last few times. "fix" kept working, didn't seem to break anything. While I'm still not understanding that, I'm leaving it changed now - "entering ignore mode" => solved.

Offline

Board footer

Powered by FluxBB