无法打开包含文件:'pnglibconf.h':无此文件或目录 [英] Cannot open include file: 'pnglibconf.h':No such file or directory

查看:540
本文介绍了无法打开包含文件:'pnglibconf.h':无此文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在MS Visual Studio 2015社区版中构建libpng,但是在构建它时,出现了此错误(我使用cmake来编译 zlib 生成libpng的s​​oln文件ALL_BUILD.vcxproj)

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 )

无法打开包含文件:'pnglibconf.h':无此类文件或目录

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

我认为这是系统特定的错误,当我尝试在其他系统上构建此错误时,它可以正常工作(因为pnglibconfig.h与MS VS soln文件夹一起存在).
是否缺少任何先决条件? >
更新:我尝试在调试&释放模式,两者都显示相同的错误. Zlib可以很好地构建.

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.

推荐答案

如果不使用"configure",则可能需要将scripts目录中的pnglibconf.h.prebuilt复制到工作目录中的pnglibconf.h中.请参阅libpng源目录中INSTALL文件的第三部分.

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.

这篇关于无法打开包含文件:'pnglibconf.h':无此文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆