问题
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.
回答1:
Try to add the folder where the png lib headers are to your include list in the VS project settings
回答2:
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.
来源:https://stackoverflow.com/questions/40650059/cannot-open-include-file-pnglibconf-hno-such-file-or-directory