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

会有一股神秘感。 提交于 2019-12-08 03:23:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!