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

进入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 依然出现同样的错误提示。

没有zlib的开发包,你要下载

把ZLIBPREFIX的定义那里改成绝对地址 我这么改好了

nmake script/Makefile.msvc_dll
命令“nmake”无效。

头一次接触,怎么办?