<?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; wxWidgets</title>
	<atom:link href="https://blog.gmem.cc/tag/wxwidgets/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.gmem.cc</link>
	<description></description>
	<lastBuildDate>Fri, 03 Apr 2026 04:13:36 +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-69d141875f060618231423/] Cygwin [crayon-69d141875f067053478609/] wxWidgets 3.0.1 如果PATH环境变量中包含MSYS的bin目录，需要暂时禁用 MinGW [crayon-69d141875f06a620511847/] ActiveMQ CMS Library 3.8.3 GCC依赖库 [crayon-69d141875f06c969990264/]  GCC [crayon-69d141875f06f824474645/] MinGW 在MSYS的终端中执行： [crayon-69d141875f071528225265/] <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>
		<item>
		<title>基于Eclipse CDT的wxWidgets开发环境搭建</title>
		<link>https://blog.gmem.cc/wxwidgets-development-with-eclipse-cdt</link>
		<comments>https://blog.gmem.cc/wxwidgets-development-with-eclipse-cdt#comments</comments>
		<pubDate>Tue, 20 Jul 2010 12:56:52 +0000</pubDate>
		<dc:creator><![CDATA[Alex]]></dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[CDT]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[wxWidgets]]></category>

		<guid isPermaLink="false">http://blog.gmem.cc/?p=2028</guid>
		<description><![CDATA[<p>Eclipse CDT环境的搭建请参考：基于Eclipse CDT的C/C++开发环境搭建 wxWidgets静态链接方式工程配置 创建源码目录：Sources、Headers、Resources，分别用于存放源码、头文件、资源文件 C/C++ Build - Tool Chain Editor - Current Builder设置为：CDT internal Builder C/C++ General - Paths and Symbols配置（GNU <a class="read-more" href="https://blog.gmem.cc/wxwidgets-development-with-eclipse-cdt">[...]</a></p>
<p>The post <a rel="nofollow" href="https://blog.gmem.cc/wxwidgets-development-with-eclipse-cdt">基于Eclipse CDT的wxWidgets开发环境搭建</a> appeared first on <a rel="nofollow" href="https://blog.gmem.cc">绿色记忆</a>.</p>
]]></description>
				<content:encoded><![CDATA[<div class="wri_content_clear_both"><p>Eclipse CDT环境的搭建请参考：<a href="/eclipse-cdt-setup" target="_blank">基于Eclipse CDT的C/C++开发环境搭建</a></p>
<div class="blog_h2">wxWidgets静态链接方式工程配置</div>
<ol>
<li>创建源码目录：Sources、Headers、Resources，分别用于存放源码、头文件、资源文件</li>
<li>C/C++ Build - Tool Chain Editor - Current Builder设置为：CDT internal Builder</li>
<li>C/C++ General - Paths and Symbols配置（GNU C++）：头文件包含（Includes）：<br />
<table style="width: 100%;" border="1" cellspacing="0" cellpadding="5">
<thead>
<tr>
<td style="text-align: center;">Debug</td>
<td style="text-align: center;">Release</td>
</tr>
</thead>
<tbody>
<tr>
<td>Headers<br /> D:\CPP\tools\boost-1.55.0\include<br /> D:\CPP\tools\wxWidgets-3.0.1\include<br /> D:\CPP\tools\wxWidgets-3.0.1\lib\gcc_lib\mswud</td>
<td>Headers<br /> D:\CPP\tools\boost-1.55.0\include<br /> D:\CPP\tools\wxWidgets-3.0.1\include<br /> D:\CPP\tools\wxWidgets-3.0.1\lib\gcc_lib\mswu</td>
</tr>
</tbody>
</table>
<p>宏定义（Symbols）：</p>
<table style="width: 100%;" border="1" cellspacing="0" cellpadding="5">
<thead>
<tr>
<td style="text-align: center;">Debug</td>
<td style="text-align: center;">Release</td>
</tr>
</thead>
<tbody>
<tr>
<td>__GNUWIN32__<br /> __WXMSW__<br /> _UNICODE<br /> UNICODE</td>
<td>__GNUWIN32__<br /> __WXMSW__<br /> _UNICODE<br /> UNICODE<br /> NDEBUG</td>
</tr>
</tbody>
</table>
<p>库（Libraries）：</p>
<table style="width: 100%;" border="1" cellspacing="0" cellpadding="5">
<thead>
<tr>
<td style="text-align: center;">Debug</td>
<td style="text-align: center;">Release</td>
</tr>
</thead>
<tbody>
<tr>
<td>wxmsw30ud_stc<br /> wxmsw30ud_propgrid<br /> wxmsw30ud_ribbon<br /> wxmsw30ud_adv<br /> wxmsw30ud_core<br /> wxbase30ud<br /> wxbase30ud_net<br /> wxbase30ud_xml<br /> wxtiffd<br /> wxjpegd<br /> wxpngd<br /> wxzlibd<br /> wxregexud<br /> wxexpatd<br /> kernelB2<br /> user32<br /> gdi32<br /> comdlg32<br /> shell32<br /> comctlB2<br /> ole32<br /> oleaut32<br /> uuid<br /> rpcrt4<br /> advapi32<br /> wsock32</td>
<td>wxmsw30u_xrc<br /> wxmsw30u_richtext<br /> wxmsw30u_aui<br /> wxmsw30u_html<br /> wxmsw30u_stc<br /> wxmsw30u_propgrid<br /> wxmsw30u_ribbon<br /> wxmsw30u_adv<br /> wxmsw30u_core<br /> wxbase30u<br /> wx base 30u_ net<br /> wxbase30u_xml<br /> wxjpeg<br /> wxpng<br /> wxzlib<br /> wxexpat<br /> kernel32<br /> user32<br /> comdlg32<br /> shell32<br /> comctlB2<br /> ole32<br /> oleaut32<br /> uuid<br /> rpcrt4<br /> advapi32<br /> wsock32</td>
</tr>
</tbody>
</table>
<p>库路径（Library Path）：</p>
<table style="width: 100%;" border="1" cellspacing="0" cellpadding="5">
<thead>
<tr>
<td style="text-align: center;">Debug</td>
<td style="text-align: center;">Release</td>
</tr>
</thead>
<tbody>
<tr>
<td>D:\CPP\tools\boost-1.55.0\mingw<br /> D:\CPP\tools\wxWidgets-3.0.1\lib\gcc_lib</td>
<td>D:\CPP\tools\boost-1.55.0\mingw<br /> D:\CPP\tools\wxWidgets-3.0.1\lib\gcc_lib</td>
</tr>
</tbody>
</table>
</li>
<li>C/C++ Build - Settings - Tool Settings - MinGW C++ Linker - Miscellaneous<br />
<table style="width: 100%;" border="1" cellspacing="0" cellpadding="5">
<tbody>
<tr>
<td> Link flags</td>
<td>-Wl,--subsystem,windows -mwindows</td>
</tr>
<tr>
<td> Other objects</td>
<td>如果使用资源文件：[Debug|Release]\Sources\resources.o</td>
</tr>
</tbody>
</table>
</li>
<li>C/C++ Build - Settings - Build Steps ，如果使用资源文件，设置Pre-build setps 为：<br />
<pre class="crayon-plain-tag">wxPreBuild.bat 工程名称 [Debug|Release]</pre>
</li>
<li>如果使用资源文件，编写预构建脚本，内容如下：<a id="prebuild-script-for-rc-file"></a><br />
<pre class="crayon-plain-tag">@echo off
set ECLIPSE_PROJECTS_PATH=D:\CPP\projects\eclipse\4.3.2
set PROJECT_NAME=%1
set PROJECT_CFG=%2

mkdir %ECLIPSE_PROJECTS_PATH%\%PROJECT_NAME%\%PROJECT_CFG%\Sources
rem 主要步骤是下面这个：即编译Windows资源文件
windres %ECLIPSE_PROJECTS_PATH%/%PROJECT_NAME%/Resources/%PROJECT_NAME%.rc -o %ECLIPSE_PROJECTS_PATH%/%PROJECT_NAME%/%PROJECT_CFG%/Sources/%PROJECT_NAME%.o  -I"D:\CPP\tools\wxWidgets-3.0.1\include"</pre></p>
<p>&nbsp;</p>
</li>
</ol>
</div><p>The post <a rel="nofollow" href="https://blog.gmem.cc/wxwidgets-development-with-eclipse-cdt">基于Eclipse CDT的wxWidgets开发环境搭建</a> appeared first on <a rel="nofollow" href="https://blog.gmem.cc">绿色记忆</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.gmem.cc/wxwidgets-development-with-eclipse-cdt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
