<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=AGG%3AWindows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg</id>
	<title>AGG:Windows平台编译Agg - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=AGG%3AWindows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;action=history"/>
	<updated>2026-06-03T02:00:45Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=921&amp;oldid=prev</id>
		<title>2015年4月16日 (四) 01:44 imported&gt;Soleverlee</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=921&amp;oldid=prev"/>
		<updated>2015-04-16T01:44:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2015年4月16日 (四) 01:44的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l42&quot;&gt;第42行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第42行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;这里把platform_support作为自己工程的代码加进去编译，同时编译的时候，需要指定-m32选项编译为32位程序，并链接gdi32库。运行效果如下：&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;这里把platform_support作为自己工程的代码加进去编译，同时编译的时候，需要指定-m32选项编译为32位程序，并链接gdi32库。运行效果如下：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Agg-HelloWorld.png|600px]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Agg-HelloWorld.png|600px]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Linux/Unix&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Graphics&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff:1.41:old-920:rev-921:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=920&amp;oldid=prev</id>
		<title>imported&gt;Soleverlee：​Soleverlee移动页面GCC:Windows平台编译Agg至AGG:Windows平台编译Agg，不留重定向</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=920&amp;oldid=prev"/>
		<updated>2015-04-16T01:44:21Z</updated>

		<summary type="html">&lt;p&gt;Soleverlee移动页面&lt;a href=&quot;/index.php?title=GCC:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;GCC:Windows平台编译Agg（页面不存在）&quot;&gt;GCC:Windows平台编译Agg&lt;/a&gt;至&lt;a href=&quot;/AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&quot; title=&quot;AGG:Windows平台编译Agg&quot;&gt;AGG:Windows平台编译Agg&lt;/a&gt;，不留重定向&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2015年4月16日 (四) 01:44的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki_db:diff:1.41:old-919:rev-920 --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=919&amp;oldid=prev</id>
		<title>2015年3月19日 (四) 09:28 imported&gt;Soleverlee</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=919&amp;oldid=prev"/>
		<updated>2015-03-19T09:28:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2015年3月19日 (四) 09:28的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot;&gt;第41行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第41行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;这里把platform_support作为自己工程的代码加进去编译，同时编译的时候，需要指定-m32选项编译为32位程序，并链接gdi32库。运行效果如下：&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;这里把platform_support作为自己工程的代码加进去编译，同时编译的时候，需要指定-m32选项编译为32位程序，并链接gdi32库。运行效果如下：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Agg-HelloWorld.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jpg&lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;x128px&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:Agg-HelloWorld.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;png&lt;/ins&gt;|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;600px&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linux/Unix]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linux/Unix]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff:1.41:old-918:rev-919:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=918&amp;oldid=prev</id>
		<title>imported&gt;Soleverlee：​Windows平台下使用GCC编译Agg图形库</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=AGG:Windows%E5%B9%B3%E5%8F%B0%E7%BC%96%E8%AF%91Agg&amp;diff=918&amp;oldid=prev"/>
		<updated>2015-03-19T09:26:41Z</updated>

		<summary type="html">&lt;p&gt;Windows平台下使用GCC编译Agg图形库&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;本文记录用TDM64-GCC（MingGW的变种）编译Agg2.5的过程。操作系统win8.1 64位，编译器TDM64-gcc。&lt;br /&gt;
&lt;br /&gt;
首先，TDM64-GCC只提供了一套编译环境，还有一些posix命令没有提供，例如ls,rm等，简单的办法就是装Git，有一个选项，会提供这些工具。解压agg2.5，将Makefile.in.MINGW32_NT-5.1复制一份，重命名为Makefile.in.MINGW32_NT-6.1，然后，直接编译就可以过：&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd agg-2.5&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
因为是64位编译器，编译后，后面的platform_support又不能编译了，所以最好加上-m32的编译选项。修改src/Makefile，在CXXFLAGS后加上-m32：&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
CXXFLAGS= $(AGGCXXFLAGS) -I../include -L./ -m32&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
重新编译一遍：&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd agg-2.5&lt;br /&gt;
make clean&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
这样编译后，src下会得到libagg.a，新建一个目录，把include拷贝进去，另外建一个lib目录，把libagg.a放进去。&lt;br /&gt;
&lt;br /&gt;
下面我们编译一个例子试试：&lt;br /&gt;
&lt;br /&gt;
拷贝examples下的bezier_div.cpp出来，以及src/platform_support/win32下的两个cpp文件出来，新建一个Makefile:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
OBJS = bezier_div.cpp agg_win32_bmp.cpp agg_platform_support.cpp&lt;br /&gt;
&lt;br /&gt;
CC = g++&lt;br /&gt;
COMPILER_FLAGS = -w -m32&lt;br /&gt;
LINKER_FLAGS = -lagg -lgdi32&lt;br /&gt;
&lt;br /&gt;
HEADERS = -I./agg/include&lt;br /&gt;
LIBS = -L./agg/lib &lt;br /&gt;
&lt;br /&gt;
OBJ_NAME = agg.exe&lt;br /&gt;
&lt;br /&gt;
all    :$(OBJS)&lt;br /&gt;
    $(CC) $(OBJS) $(COMPILER_FLAGS) $(HEADERS) $(LIBS) $(LINKER_FLAGS) -o $(OBJ_NAME)&lt;br /&gt;
&lt;br /&gt;
clean:&lt;br /&gt;
    rm -f *.o *.exe&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
这里把platform_support作为自己工程的代码加进去编译，同时编译的时候，需要指定-m32选项编译为32位程序，并链接gdi32库。运行效果如下：&lt;br /&gt;
[[Image:Agg-HelloWorld.jpg|x128px]]&lt;br /&gt;
[[Category:Linux/Unix]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
</feed>