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