1

I'm trying to build libpng in MS Visual studio 2015 community edition but when i built it, i got this error (i used cmake to compile libpng along with compiled zlib to produce libpng's soln file ALL_BUILD.vcxproj )

Cannot open include file: 'pnglibconf.h':No such file or directory

I think this a system specific error,when i try to build this on other system it works fine(because pnglibconfig.h was present with MS VS soln folder).
Is there any prerequisites that is missing?

Update: I tried building libpng in both debug & release mode, both are showing the same error. Zlib builds fine.

Suraksha Ajith
  • 872
  • 2
  • 12
  • 23

2 Answers2

0

Try to add the folder where the png lib headers are to your include list in the VS project settings

0

If you aren't using "configure", you may need to copy pnglibconf.h.prebuilt from the scripts directory to pnglibconf.h in your working directory. See Section III of the INSTALL file in your libpng source directory.

Glenn Randers-Pehrson
  • 11,940
  • 3
  • 37
  • 61