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
@8maki
Copy link

8maki commented Nov 15, 2011

Hello.
I am facing the same error while installing poppler on MacOSX 10.6.8.
Have you already solved this problem now?

@8maki
Copy link

8maki commented Nov 15, 2011

I've solved by installing libpng. Thank you.
http://ethan.tira-thompson.com/Mac_OS_X_Ports.html

@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