cassiexuan
DS小馒头
2015-01-05 03:07

libharu在vs2010中编译生成libhpdf.lib的具体步骤是什么??

  • libharu

进入libharu文件夹,在vs2010的命令行下执行: nmake script/Makefile.msvc_dll

错误:hpdf_streams.c
src\hpdf_streams.c(21) : fatal error C1083: Cannot open include file: 'zlib.h':
No such file or directory

办法:将Makefile.msvc_dll里面的“CFLAGS=/MD -nologo -O2 -Iinclude -Iwin32\include -I"$(PNG_PREFIX)"\include -I"$(ZLIB_PREFIX)"\include -DHPDF_DLL_MAKE"修改为”CFLAGS=/MD -nologo -O2 -Iinclude -Iwin32\include -I"$(PNG_PREFIX)" -I"$(ZLIB_PREFIX)" -DHPDF_DLL_MAKE“

然后再执行nmake script/Makefile.msvc_dll 依然出现同样的错误提示。

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答