{"id":209,"date":"2011-03-26T18:09:03","date_gmt":"2011-03-26T22:09:03","guid":{"rendered":"http:\/\/www.sunnychow.com\/wordpress\/?p=209"},"modified":"2012-04-12T02:39:20","modified_gmt":"2012-04-12T06:39:20","slug":"building-zlib-1-2-5-on-windows","status":"publish","type":"post","link":"https:\/\/www.sunnychow.com\/wordpress\/2011\/03\/building-zlib-1-2-5-on-windows\/","title":{"rendered":"Building zlib 1.2.5 on windows"},"content":{"rendered":"<p>To build zlib on windows I did the following:<\/p>\n<ol>\n<li>Opened up a windows cmd prompt and ran vsvars32.bat from C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\Tools (You may need to change this depending on which version of Visual Studio you may have)<\/li>\n<li>Ran nmake -f win32\/Makefile.msc.   At this point I ran into a LNK2001 error with _inflate_fast being unresolved<\/li>\n<li> Editted Makefile.msc to add the inffast.obj to the OBJS target per the hint given at here <a href=\"http:\/\/www.cppblog.com\/fwxjj\/archive\/2010\/09\/26\/127733.html\">Chinese instructions to build zlib on Windows<\/a><\/li>\n<li>Reran nmake -f win32\/Makefile.msc.  This time it worked.<\/li>\n<\/ol>\n<p>Edit: Justin in the comments pointed out a better way to resolve this issue:<\/p>\n<blockquote><p>There is a facility in the Makefile that lets you chose if you want the regular inffast, or one that was written in assembler (there is a 32-bit of 64-bit version).<br \/>\nInstead of editing the Makefile, you can instead use<br \/>\nnmame -f win32\/Makefile.msc OBJA=inffast.obj<br \/>\nor instead of using inffast.obj, you can pick on of the assembler built ones<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>To build zlib on windows I did the following: Opened up a windows cmd prompt and ran vsvars32.bat from C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\Tools (You may need to change this depending on which version of Visual Studio you may have) &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.sunnychow.com\/wordpress\/2011\/03\/building-zlib-1-2-5-on-windows\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts\/209"}],"collection":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":5,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":214,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts\/209\/revisions\/214"}],"wp:attachment":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}