<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dipplum.com &#187; zlib</title>
	<atom:link href="http://dipplum.com/tag/zlib/feed/" rel="self" type="application/rss+xml" />
	<link>http://dipplum.com</link>
	<description>Be  the change you wanna see in the world</description>
	<lastBuildDate>Sat, 12 Nov 2011 07:38:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Visual C++ 2008编译libpng</title>
		<link>http://dipplum.com/2009/11/09/visualc-compile-libpng/</link>
		<comments>http://dipplum.com/2009/11/09/visualc-compile-libpng/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 05:23:39 +0000</pubDate>
		<dc:creator>li</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[libpng]]></category>
		<category><![CDATA[visualc]]></category>
		<category><![CDATA[win32]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://dipplum.com/2009/11/09/visualc-compile-libpng/</guid>
		<description><![CDATA[1. 主页 http://www.libpng.org/pub/png/libpng.html 2. 最新稳定版本 1.2.40 &#160;&#160;&#160; 源码下载 http://download.sourceforge.net/libpng/lpng1240.zip 3. 编译依赖 &#160;&#160;&#160; 依赖zlib。要求名为zlib的目录位于和libpng源码平级的目录下。libpng会自行编译zlib的源码，而zlib 1.2.3版本中的汇编代码在VC 2008下编译存在问题，参见zlib的编译说明。 4. 编译方法 &#160;&#160;&#160; 打开源码中的projects\vc71\libpng.sln工程文件。编译DLL ASM Release和LIB ASM Release就可以了。会得到libpng.lib、libpng13.lib、libpng13.dll。 5. 注意 &#160;&#160;&#160; ligpng会编译自己的zlib1.dll和zlib.lib，不知道编译参数和zlib自己的工程文件是否一样，也不知道和zlib工程文件编译出的dll和lib会不会冲突。这个问题留待考察。]]></description>
			<content:encoded><![CDATA[<p>1. 主页 <a href="http://www.libpng.org/pub/png/libpng.html">http://www.libpng.org/pub/png/libpng.html</a></p>
<p>2. 最新稳定版本 1.2.40</p>
<p>&#160;&#160;&#160; 源码下载 <a href="http://download.sourceforge.net/libpng/lpng1240.zip">http://download.sourceforge.net/libpng/lpng1240.zip</a></p>
<p>3. 编译依赖</p>
<p>&#160;&#160;&#160; 依赖zlib。要求名为zlib的目录位于和libpng源码平级的目录下。libpng会自行编译zlib的源码，而zlib 1.2.3版本中的汇编代码在VC 2008下编译存在问题，参见<a href="http://dipplum.com/2009/11/08/visualc-compile-zlib/" target="_blank">zlib的编译说明</a>。</p>
<p>4. 编译方法</p>
<p>&#160;&#160;&#160; 打开源码中的projects\vc71\libpng.sln工程文件。编译DLL ASM Release和LIB ASM Release就可以了。会得到libpng.lib、libpng13.lib、libpng13.dll。</p>
<p>5. 注意</p>
<p>&#160;&#160;&#160; ligpng会编译自己的zlib1.dll和zlib.lib，不知道编译参数和zlib自己的工程文件是否一样，也不知道和zlib工程文件编译出的dll和lib会不会冲突。这个问题留待考察。</p>
]]></content:encoded>
			<wfw:commentRss>http://dipplum.com/2009/11/09/visualc-compile-libpng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual C++ 2008编译zlib</title>
		<link>http://dipplum.com/2009/11/08/visualc-compile-zlib/</link>
		<comments>http://dipplum.com/2009/11/08/visualc-compile-zlib/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 10:27:46 +0000</pubDate>
		<dc:creator>li</dc:creator>
				<category><![CDATA[开源软件]]></category>
		<category><![CDATA[asm]]></category>
		<category><![CDATA[visualc]]></category>
		<category><![CDATA[win32]]></category>
		<category><![CDATA[zlib]]></category>

		<guid isPermaLink="false">http://dipplum.com/2009/11/08/visualc-compile-zlib/</guid>
		<description><![CDATA[记录下Visual C++ 2008编译zlib的过程，以备不时之需。 1. 项目主页 http://www.zlib.net/ 2. 当前最新稳定版本 1.2.3，2005年7月发布 源码下载 http://www.zlib.net/zlib123.zip 3. VC编译方法 解压后，打开项目文件projects\visualc6\zlib.dsw，新版本的VC会提示要做工程格式转换。一般只编译其中zlib项目的DLL Release和LIB Release就好了。 4. Bug 如果想编译zlib的DLL ASM Release和LIB ASM Release，会出现下面的错误： contrib\masmx86\inffas32.asm&#40;647&#41; : error A2070:invalid instruction operands contrib\masmx86\inffas32.asm&#40;649&#41; : error A2070:invalid instruction operands contrib\masmx86\inffas32.asm&#40;663&#41; : error A2070:invalid instruction operands contrib\masmx86\inffas32.asm&#40;720&#41; : error A2070:invalid instruction operands 这是因为VC2008的MASM语法更严格了，导致之前的代码语法检查不过。参照这里的说明，把inffas32.asm改好就OK了。或者下载我改好的]]></description>
			<content:encoded><![CDATA[<p>记录下Visual C++ 2008编译zlib的过程，以备不时之需。</p>
<p>1. 项目主页 <a href="http://www.zlib.net/">http://www.zlib.net/</a></p>
<p>2. 当前最新稳定版本 1.2.3，2005年7月发布</p>
<p>源码下载 <a href="http://www.zlib.net/zlib123.zip">http://www.zlib.net/zlib123.zip</a></p>
<p>3. VC编译方法</p>
<p>解压后，打开项目文件projects\visualc6\zlib.dsw，新版本的VC会提示要做工程格式转换。一般只编译其中zlib项目的DLL Release和LIB Release就好了。</p>
<p>4. Bug</p>
<p>如果想编译zlib的DLL ASM Release和LIB ASM Release，会出现下面的错误：</p>

<div class="wp_syntax"><div class="code"><pre class="asm" style="font-family:monospace;">contrib\masmx86\inffas32<span style="color: #339933;">.</span>asm<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">647</span><span style="color: #009900; font-weight: bold;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">error</span> A2070<span style="color: #339933;">:</span>invalid instruction operands
contrib\masmx86\inffas32<span style="color: #339933;">.</span>asm<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">649</span><span style="color: #009900; font-weight: bold;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">error</span> A2070<span style="color: #339933;">:</span>invalid instruction operands
contrib\masmx86\inffas32<span style="color: #339933;">.</span>asm<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">663</span><span style="color: #009900; font-weight: bold;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">error</span> A2070<span style="color: #339933;">:</span>invalid instruction operands
contrib\masmx86\inffas32<span style="color: #339933;">.</span>asm<span style="color: #009900; font-weight: bold;">&#40;</span><span style="color: #0000ff;">720</span><span style="color: #009900; font-weight: bold;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">error</span> A2070<span style="color: #339933;">:</span>invalid instruction operands</pre></div></div>

<p>这是因为VC2008的MASM语法更严格了，导致之前的代码语法检查不过。参照<a href="http://www.achacha.org/vc2008_zlib123/">这里</a>的说明，把inffas32.asm改好就OK了。或者下载我<a href="http://dipplum.com/download/6/">改好的</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dipplum.com/2009/11/08/visualc-compile-zlib/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

