<?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>绿色记忆 &#187; BOOST</title>
	<atom:link href="https://blog.gmem.cc/tag/boost/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.gmem.cc</link>
	<description></description>
	<lastBuildDate>Mon, 06 Apr 2026 02:15:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.14</generator>
	<item>
		<title>常用C++库的编译步骤记录</title>
		<link>https://blog.gmem.cc/compile-step-of-frequently-used-cpp-lib</link>
		<comments>https://blog.gmem.cc/compile-step-of-frequently-used-cpp-lib#comments</comments>
		<pubDate>Sat, 22 Feb 2014 09:09:24 +0000</pubDate>
		<dc:creator><![CDATA[Alex]]></dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[ActiveMQ]]></category>
		<category><![CDATA[BOOST]]></category>
		<category><![CDATA[wxWidgets]]></category>

		<guid isPermaLink="false">http://blog.gmem.cc/?p=2013</guid>
		<description><![CDATA[<p>BOOST 1.55.0 MinGW [crayon-69d3823887a56080730944/] Cygwin [crayon-69d3823887a5c426476207/] wxWidgets 3.0.1 如果PATH环境变量中包含MSYS的bin目录，需要暂时禁用 MinGW [crayon-69d3823887a5f974444082/] ActiveMQ CMS Library 3.8.3 GCC依赖库 [crayon-69d3823887a61455481281/]  GCC [crayon-69d3823887a64312228980/] MinGW 在MSYS的终端中执行： [crayon-69d3823887a66517606504/] <a class="read-more" href="https://blog.gmem.cc/compile-step-of-frequently-used-cpp-lib">[...]</a></p>
<p>The post <a rel="nofollow" href="https://blog.gmem.cc/compile-step-of-frequently-used-cpp-lib">常用C++库的编译步骤记录</a> appeared first on <a rel="nofollow" href="https://blog.gmem.cc">绿色记忆</a>.</p>
]]></description>
				<content:encoded><![CDATA[<div class="wri_content_clear_both"><div class="blog_h2"><span class="graybg">BOOST 1.55.0</span></div>
<div><strong>MinGW</strong></div>
<pre class="crayon-plain-tag">CD D:\CPP\tools\boost-1.55.0\tools\build\v2
build.bat mingw
CD D:\CPP\tools\boost-1.55.0
REM 下面是静态链接的多线程支持版本，根据需要调整
bjam --build-type=complete toolset=gcc address-model=32 variant=debug,release threading=multi link=static</pre>
<div><strong>Cygwin</strong></div>
<pre class="crayon-plain-tag">#在Cygwin Terminal中执行
./bjam --layout=versioned --build-type=complete toolset=gcc address-model=32 variant=debug,release threading=multi link=static</pre>
<div class="blog_h2"><span class="graybg">wxWidgets 3.0.1</span></div>
<div>如果PATH环境变量中包含MSYS的bin目录，需要暂时禁用</div>
<div><strong>MinGW</strong></div>
<pre class="crayon-plain-tag">mingw32-make -f makefile.gcc UNICODE=1 SHARED=0 BUILD=release clean
mingw32-make -f makefile.gcc UNICODE=1 SHARED=0 BUILD=debug</pre>
<div class="blog_h2"><span class="graybg">ActiveMQ CMS Library 3.8.3</span></div>
<div><strong>GCC依赖库</strong></div>
<pre class="crayon-plain-tag">#CPPUnit，单元测试支持，该库会安装到：/usr/local/bin/cppunit-config
cd /usr/src/cppunit-1.12.0
./configure CFLAGS="-O2 -s -mms-bitfields -march=i686" CXXFLAGS="-O2 -s -mms-bitfields -march=i686" --disable-shared
make &amp;&amp; make install
#XML解析依赖
cd /usr/src/expat-2.0.0
./configure CFLAGS="-O2 -s -mms-bitfields -march=i686" CXXFLAGS="-O2 -s -mms-bitfields -march=i686"
make &amp;&amp; make install
#Apache Portable Runtime，注意：-O0 -g3 用于调试，生产环境的版本注意调整
cd /usr/src/apr-1.5.1
./buildconf
./configure CFLAGS="-O0 -g3 -s -mms-bitfields -march=i686" CXXFLAGS="-O0 -g3 -s -mms-bitfields -march=i686"
make &amp;&amp; make install

cd /usr/src/apr-util-1.5.3
./buildconf  --with-apr=../apr-1.5.1
./configure CFLAGS="-O0 -g3 -s -mms-bitfields -march=i686" CXXFLAGS="-O0 -g3 -s -mms-bitfields -march=i686"  --with-apr=/usr/local/apr/bin/apr-1-config
make &amp;&amp; make install

cd /usr/src/apr-iconv-1.2.1
./buildconf  --with-apr=../apr-1.5.1
./configure CFLAGS="-O0 -g3 -s -mms-bitfields -march=i686" CXXFLAGS="-O0 -g3 -s -mms-bitfields -march=i686"  --with-apr=/usr/local/apr/bin/apr-1-config
make &amp;&amp; make install</pre>
<div><strong> GCC</strong></div>
<pre class="crayon-plain-tag">cd /usr/src/activemq-cpp-library-3.8.3
./autogen.sh
./configure CFLAGS="-O0 -g3 -s -mms-bitfields -march=i686" CXXFLAGS="-O0 -g3 -s -mms-bitfields  -std=gnu++0x -march=i686" --with-apr=/usr/local/apr/bin/apr-1-config
make &amp;&amp; make install</pre>
<p><strong>MinGW</strong></p>
<div>在MSYS的终端中执行：</div>
<pre class="crayon-plain-tag">./configure CFLAGS="-O0 -g3 -s -mms-bitfields -march=i686 -DHAVE_WINSOCK2_H" CXXFLAGS="-O0 -g3 -s -mms-bitfields  -std=gnu++0x -march=i686 -DHAVE_WINSOCK2_H" --with-apr=/usr/local/apr/bin/apr-1-config</pre>
<div><strong>Cygwin</strong></div>
<div class="blog_h3">
<pre class="crayon-plain-tag">./autogen.sh
./configure  CXXFLAGS="-O0 -mms-bitfields -std=gnu++0x"
make &amp;&amp; make install</pre>
</div>
<div class="blog_h2"><span class="graybg">Google Test 1.7.0</span></div>
<div><strong>MinGW</strong></div>
<pre class="crayon-plain-tag">./configure --with-pthreads=no
make
#编辑的静态库位于lib/.lib目录下</pre>
<div><strong>Cygwin</strong></div>
<pre class="crayon-plain-tag">./configure
make</pre>
<p>&nbsp;</p>
</div><p>The post <a rel="nofollow" href="https://blog.gmem.cc/compile-step-of-frequently-used-cpp-lib">常用C++库的编译步骤记录</a> appeared first on <a rel="nofollow" href="https://blog.gmem.cc">绿色记忆</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.gmem.cc/compile-step-of-frequently-used-cpp-lib/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
