Skip to content

Instantly share code, notes, and snippets.

@kailashbuki
Created September 27, 2011 11:05
Show Gist options
  • Save kailashbuki/1244823 to your computer and use it in GitHub Desktop.
Save kailashbuki/1244823 to your computer and use it in GitHub Desktop.
poppler error
In file included from poppler-image.cpp:26:
../goo/PNGWriter.h:23:17: error: png.h: No such file or directory
In file included from poppler-image.cpp:26:
../goo/PNGWriter.h:53: error: 'png_structp' does not name a type
../goo/PNGWriter.h:54: error: 'png_infop' does not name a type
make[2]: *** [libpoppler_cpp_la-poppler-image.lo] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1
@kailashbuki
Copy link
Author

Sorry 8maki, i was out for a while. I had solved the problem by installing libpng as you did.

@FlaviuSim
Copy link

MacOS already comes with libpng, yet I still have this problem.
~/Downloads/poppler-0.18.2: brew install libpng Error: No available formula for libpng Apple distributes libpng with OS X, you can find it in /usr/X11/lib. However not all build scripts look here, so you may need to call ENV.x11 in your formula's install function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment