<?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>Enjoy Life! - Liang Qi &#187; Qt</title>
	<atom:link href="http://qihome.org/qiliang/tag/qt/feed/" rel="self" type="application/rss+xml" />
	<link>http://qihome.org/qiliang</link>
	<description></description>
	<lastBuildDate>Wed, 01 Feb 2012 09:02:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Clang Static Analyzer with Qt</title>
		<link>http://qihome.org/qiliang/2011/08/08/clang-static-analyzer-with-qt/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=clang-static-analyzer-with-qt</link>
		<comments>http://qihome.org/qiliang/2011/08/08/clang-static-analyzer-with-qt/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 13:34:46 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[CLANG]]></category>
		<category><![CDATA[LLVM]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10767</guid>
		<description><![CDATA[1. OS: Snow Leopard 64bit 2. Qt: 4.8 cd ~/qt git clone git://gitorious.org/qt/qt.git work cd work git checkout -b origin/4.8 4.8 cp -rf mkspecs/unsupported/macx-clang mkspecs/unsupported/macx-checker Note: a patch for mkspecs/unsupported/macx-checker/qmake.conf: http://pastebin.com/u7mnkhue 3. Clang Static Analyzer: checker-256 cd ~/dev/packages wget http://clang-analyzer.llvm.org/checker/checker-256.tar.bz2 &#8230; <a href="http://qihome.org/qiliang/2011/08/08/clang-static-analyzer-with-qt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>1. OS: Snow Leopard 64bit</p>
<p>2. Qt: 4.8  </p>
<p>cd ~/qt<br />
git clone git://gitorious.org/qt/qt.git work<br />
cd work<br />
git checkout -b origin/4.8 4.8<br />
cp -rf mkspecs/unsupported/macx-clang mkspecs/unsupported/macx-checker</p>
<p>Note: a patch for mkspecs/unsupported/macx-checker/qmake.conf: <a href="http://pastebin.com/u7mnkhue">http://pastebin.com/u7mnkhue</a></p>
<p>3. <a href="">Clang Static Analyzer</a>: <a href="http://clang-analyzer.llvm.org/checker/checker-256.tar.bz2">checker-256</a> </p>
<p>cd ~/dev/packages<br />
wget http://clang-analyzer.llvm.org/checker/checker-256.tar.bz2<br />
tar zxvf checker-256.tar.bz2<br />
cd checker-256<br />
rm bin/clang<br />
rm bin/clang++<br />
cd /usr/local/bin<br />
ln -s /Users/liangqi/dev/packages/checker-256/bin/clang-3.0 clang<br />
ln -s /Users/liangqi/dev/packages/checker-256/bin/clang-3.0 clang++</p>
<p>4. Build</p>
<p>cd ~/build<br />
mkdir qt-48-clang<br />
cd qt-48-clang<br />
export PATH=/usr/local/bin:/Users/liangqi/dev/packages/checker-256:$PATH<br />
/Users/liangqi/qt/work/configure -platform unsupported/macx-checker -nokia-developer -no-webkit -no-qt3support -no-declarative -no-xmlpatterns -no-script -no-scripttools -no-phonon -no-multimedia -nomake tools -nomake demos -nomake examples -fast -verbose -no-framework<br />
scan-build make</p>
<p>5. Output</p>
<p>In the end of the output, you will find a command like &#8220;scan-build: Run &#8216;scan-view /var/folders/QB/QBTpJfK+HfqtpmxTOms2nU+++TI/-Tmp-/scan-build-2011-07-20-3&#8242; to examine bug reports.&#8221;, do it!</p>
<p>NOTE: the above way doesn&#8217;t work with checker-257!</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2011/08/08/clang-static-analyzer-with-qt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run autotests in Qt for Symbian on Linux and Mac?</title>
		<link>http://qihome.org/qiliang/2011/07/27/how-to-run-autotests-in-qt-for-symbian-on-linux-and-mac/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-run-autotests-in-qt-for-symbian-on-linux-and-mac</link>
		<comments>http://qihome.org/qiliang/2011/07/27/how-to-run-autotests-in-qt-for-symbian-on-linux-and-mac/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 15:38:06 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[NOKIA]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[SYMBIAN]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10763</guid>
		<description><![CDATA[Here is the official article for it, Installing Qt for the Symbian platform using Linux (experimental). The basic idea is same on Linux and Mac OS X. 1. For phone, you need to install Application TRK S60 5.0/Symbian^1 &#8211; s60_5_0_app_trk_3_2_7.sisx &#8230; <a href="http://qihome.org/qiliang/2011/07/27/how-to-run-autotests-in-qt-for-symbian-on-linux-and-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is the official article for it, <a href="http://doc.qt.nokia.com/4.7/install-symbian-linux.html">Installing Qt for the Symbian platform using Linux (experimental)</a>.</p>
<p>The basic idea is same on Linux and Mac OS X.</p>
<p>1. For phone, you need to install <a href="http://tools.ext.nokia.com/trk/">Application TRK</a></p>
<p>S60 5.0/Symbian^1 &#8211; <a href="http://tools.ext.nokia.com/trk/s60_5_0_app_trk_3_2_7.sisx">s60_5_0_app_trk_3_2_7.sisx</a><br />
Symbian^3 &#8211; <a href="http://tools.ext.nokia.com/trk/s60_tb_9_2_app_trk_3_2_8.sisx">s60_tb_9_2_app_trk_3_2_8.sisx</a></p>
<p>2. Use usb cable to connect your phone and computer, Linux or Mac OS X. Remember to set to &#8220;PC Suite&#8221; mode or &#8220;Nokia Ovi Suite&#8221; mode on your phone. Then launch your Application TRK via &#8220;RnD Tools&#8221;-&gt;&#8221;TRK&#8221;.</p>
<p>3. About the device name for your phone on computer</p>
<p>For Linux, see more details in <a href="http://doc.qt.nokia.com/4.7/install-symbian-linux.html#configuring-the-usb-serial-driver-on-the-linux-system">Configuring the USB Serial Driver on the Linux System</a>. After that, you will find /dev/ttyUSBx and maybe another /dev/ttyUSBy, better to &#8220;sudo chmod 777 /dev/ttyUSB*&#8221; for them(some Linux distribution do not give the access to normal users for it, like Ubuntu).</p>
<p>For Mac, you could find sth like /dev/cu.usbmodemfaXx and /dev/cu.usbmodemfaXy.</p>
<p>4. To build runonphone, you need to have libusb installed.</p>
<p>For Linux, just follow that documentation, &#8220;sudo apt-get install libusb-dev&#8221; should be ok for Debian/Ubuntu.</p>
<p>For Mac, &#8220;sudo brew install libusb-compat&#8221; works for me.</p>
<p>5. Build runonphone, use the qmake in your desktop Qt.</p>
<p>cd ~/qt/qt/tools/runonphone<br />
/usr/bin/qmake<br />
make</p>
<p>6. Build and run your autotests, please check previous blog for the EPOCROOT and PATH environments settings.</p>
<p>cd qt/qt/tests/auto/qdatetime<br />
~/build/s3_gcce/bin/qmake  -spec ~/qt/qt/mkspecs/symbian-gcce -o Makefile ~/qt/qt/tests/auto/qdatetime/qdatetime.pro<br />
make sis<br />
~/qt/qt/tools/runonphone/runonphone -p /dev/cu.usbmodemfa44 &#8211;sis ~/qt/qt/tests/auto/qdatetime/qdatetime.sis qdatetime.exe </p>
<p>NOTE: Here the /dev/cu.usbmodemfa44 is the device on Mac for me. And for Linux, the device is sth like /dev/ttyUSB1.</p>
<p>Enjoy it!</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2011/07/27/how-to-run-autotests-in-qt-for-symbian-on-linux-and-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build Qt 4.7 with Symbian^3 on Linux and Mac OS X</title>
		<link>http://qihome.org/qiliang/2011/07/27/build-qt-4-7-with-symbian3-on-linux-and-mac-os-x/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-qt-4-7-with-symbian3-on-linux-and-mac-os-x</link>
		<comments>http://qihome.org/qiliang/2011/07/27/build-qt-4-7-with-symbian3-on-linux-and-mac-os-x/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 14:31:19 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[NOKIA]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[SYMBIAN]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10756</guid>
		<description><![CDATA[Similar steps as previous blog. Here I will only mention the difference between them: 1. Qt 4.7, please wait a while for the merging of 7c499bcfbf7f9c52b3d6523fea8396bd4ab7252e. git checkout -b 4.7 origin/4.7 2. You could enable the webkit which is inside &#8230; <a href="http://qihome.org/qiliang/2011/07/27/build-qt-4-7-with-symbian3-on-linux-and-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Similar steps as <a href="http://www.qiliang.net/blog/2011/07/build-qt-4-8-with-symbian3-on-linux-and-mac-os-x.html">previous blog</a>.</p>
<p>Here I will only mention the difference between them:</p>
<p>1. Qt 4.7, please wait a while for the merging of 7c499bcfbf7f9c52b3d6523fea8396bd4ab7252e.</p>
<p>git checkout -b 4.7 origin/4.7</p>
<p>2. You could enable the webkit which is inside of 4.7, then the configure line should be like:</p>
<p>~/qt/qt/configure -developer-build -opensource -confirm-license -xplatform symbian-gcce -webkit -fast -silent -nomake examples -nomake demos -nomake tools -nomake tests -qtlibinfix _liang</p>
<p>And for QtWebKit package:</p>
<p>cd ~/build/s3_gcce/src/3rdparty/webkit/WebCore<br />
make sis<br />
copy ~/build/s3_gcce/lib/QtWebKit_liang.sis toyourphone</p>
<p>For the demo browser application:</p>
<p>cd ~/qt/work/demos/embedded/anomaly<br />
make sis<br />
copy anomaly.sis toyourphone</p>
<p>3. Install the above Qt_liang.sis, QtWebKit_liang.sis, analogclock.sis and anomaly.sis, and enjoy them.</p>
<p>Launch it at &#8220;QtExamples&#8221;-&gt;&#8221;analogclock&#8221;.<br />
Launch it at &#8220;QtDemos&#8221;-&gt;&#8221;anomaly&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2011/07/27/build-qt-4-7-with-symbian3-on-linux-and-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build Qt 4.8 with Symbian^3 on Linux and Mac OS X</title>
		<link>http://qihome.org/qiliang/2011/07/27/build-qt-4-8-with-symbian3-on-linux-and-mac-os-x/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-qt-4-8-with-symbian3-on-linux-and-mac-os-x</link>
		<comments>http://qihome.org/qiliang/2011/07/27/build-qt-4-8-with-symbian3-on-linux-and-mac-os-x/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 22:21:59 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[NOKIA]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[SYMBIAN]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10745</guid>
		<description><![CDATA[Build Qt 4.8 with Symbian^3 on Linux and Mac OS X Kudos to Kristian Amlie and Thomas Zander for the &#8220;make file build system&#8221;. 1. OS: Linux &#8211; mine is 2.6.38-8-generic x86_64 Mac OS X &#8211; mine is 10.6.8 64bit &#8230; <a href="http://qihome.org/qiliang/2011/07/27/build-qt-4-8-with-symbian3-on-linux-and-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Build Qt 4.8 with Symbian^3 on Linux and Mac OS X</p>
<p>Kudos to <a href="http://labs.qt.nokia.com/author/kamlie/">Kristian Amlie</a> and <a href="http://labs.qt.nokia.com/author/tzander/">Thomas Zander</a> for the &#8220;make file build system&#8221;.</p>
<p>1. OS: </p>
<p>Linux &#8211; mine is 2.6.38-8-generic x86_64<br />
Mac OS X &#8211; mine is 10.6.8 64bit</p>
<p>2. Symbian^3</p>
<p><strong>NOTE</strong>: Looks like Qt is still not the 1st-priority citizen in the Symbian^3 SDKs world, the reason why I say like that is <a href="https://bugreports.qt.nokia.com/browse/QTQAINFRA-52">this task</a>, it means that you cannot use any version of Symbian^3 (public) SDKs to build Qt libraries from source. Details in <a href="https://bugreports.qt.nokia.com/browse/QTQAINFRA-52?focusedCommentId=156729&amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-156729">the comment</a>. Then we use the Symbian^3 PDK 3.0.4 for now. I am not sure how long this mirror service will be available there, you&#8217;d better backup those files by yourself.</p>
<p><a href="http://www.symlab.org/pdk/">Symbian^3 PDK 3.0.4</a></p>
<p>Please download binaries_armv5_lib.7z.zip, binaries_armv5_udeb.7z.zip, binaries_armv5_urel.7z.zip, binaries_epoc.7z.zip, binaries_epoc_sdk.7z.zip, binaries_prebuilt.7z.zip, tools_epoc.7z.zip at least.</p>
<p>cd ~<br />
mkdir -p symbian-sdks/pdk304<br />
cd symbian-sdks/pdk304<br />
7z x abovefiles<br />
export EPOCROOT=~/symbian-sdks/pdk304/ //set env for EPOCROOT</p>
<p>The patch for Symbian^3 PDK 3.0.4 is <a href="http://pastebin.com/TH3YWfdK">here</a>.</p>
<p>3. Wine</p>
<p>NOTE: The reason for installing wine is we are using the Symbian tools build on Windows, such as rcomp, makesis and many others.</p>
<p>Linux(Debian/Ubuntu): sudo apt-get install wine1.2<br />
Mac OS X: Install <a href="http://www.kronenberg.org/download.php?download=http://darwine.good-day.net/WineBottlerCombo_1.1.44.dmg&amp;filename=WineBottlerCombo_1.1.44.dmg&amp;project=WineBottler&amp;sponsorName=Good-Day%20Inc.&amp;sponsorURL=www.good-day.co.jp&amp;sponsorBanner=">wine 1.1.44</a>, and upgrade it to 1.2</p>
<p>Add wine into path<br />
export PATH=/Applications/Wine.app/Contents/Resources/bin:$PATH //for Mac OS X</p>
<p>4. Compilers:</p>
<p>Linux: RVCT 2.2(need commercial license) or <a href="http://www.codesourcery.com/sgpp/lite/arm/portal/release1258">GCCE 4.4.1(Symbian ADT Sourcery G++ Lite 4.4-172 for ARM SymbianOS)</a><br />
Mac OS X: <a href="http://www.codesourcery.com/sgpp/lite/arm/portal/release1258">GCCE 4.4.1(Symbian ADT Sourcery G++ Lite 4.4-172 for ARM SymbianOS)</a>, after installed to default path, mv /Applications/CodeSourcery/Sourcery G++ Lite/ /Applications/CodeSourcery/Sourcery_G++_Lite. NOTE: need to remove those spaces in the path of compiler</p>
<p>Add compiler path into PATH:<br />
export PATH=/Applications/CodeSourcery/Sourcery_G++_Lite/bin:$PATH</p>
<p>5. Qt 4.8</p>
<p>NOTE: better to use ea7ed6b27301a4834b1bfe0ad4e6e58462647d3e and later.</p>
<p>cd ~<br />
mkdir qt<br />
git clone -n git://gitorious.org/qt/qt.git qt<br />
cd qt<br />
git checkout -b 4.8 origin/4.8</p>
<p>6. Build it</p>
<p>cd ~<br />
mkdir build<br />
cd build<br />
mkdir s3_gcce // this is for the GCCE case, or s3_armcc for RVCT 2.2 case<br />
cd s3_gcce<br />
~/qt/qt/configure -developer-build -opensource -confirm-license -xplatform symbian-gcce -no-webkit -fast -silent -nomake examples -nomake demos -nomake tools -nomake tests -qtlibinfix _liang // this is for GCCE case, or &#8220;-xplatform symbian-armcc&#8221; for RVCT 2.2 case<br />
make -j8 // maybe fail at somewhere, then just try &#8220;cd src;make -j1&#8243; finish it<br />
cd src/s60installs<br />
make sis<br />
cd ~/build/s3_gcce/lib<br />
cp Qt_liang.sis toyourphone<br />
cd ~/qt/qt/examples/widgets/analogclock<br />
~/build/s3_gcce/bin/qmake<br />
make sis<br />
copy analogclock.sis toyourphone</p>
<p>7. Install your own build Qt libraries and application</p>
<p>Goto &#8220;Office&#8221;-&gt;&#8221;File Manager&#8221;, manually install Qt_liang.sis and analogclock.sis</p>
<p>8. Run your appliation</p>
<p>Launch it at &#8220;QtExamples&#8221;-&gt;&#8221;analogclock&#8221;. Enjoy it!</p>
<p>Known issues or other topics:<br />
1. There is still some issue to build qtwebkit which the one inside of qt 4.8 or from qtwebkit git repo directly. If I got solution, I will let you know.<br />
2. Mabye write something about <a href="http://doc.qt.nokia.com/4.8-snapshot/install-symbian-linux.html#building-the-runonphone-tool">runonphone</a> on Linux and Mac OS X, it is a very good tool to test qt applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2011/07/27/build-qt-4-8-with-symbian3-on-linux-and-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Qt中的一些全局测试用例</title>
		<link>http://qihome.org/qiliang/2011/04/02/qt%e4%b8%ad%e7%9a%84%e4%b8%80%e4%ba%9b%e5%85%a8%e5%b1%80%e6%b5%8b%e8%af%95%e7%94%a8%e4%be%8b/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=qt%25e4%25b8%25ad%25e7%259a%2584%25e4%25b8%2580%25e4%25ba%259b%25e5%2585%25a8%25e5%25b1%2580%25e6%25b5%258b%25e8%25af%2595%25e7%2594%25a8%25e4%25be%258b</link>
		<comments>http://qihome.org/qiliang/2011/04/02/qt%e4%b8%ad%e7%9a%84%e4%b8%80%e4%ba%9b%e5%85%a8%e5%b1%80%e6%b5%8b%e8%af%95%e7%94%a8%e4%be%8b/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 22:12:55 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Test]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10731</guid>
		<description><![CDATA[近期工作中接触过的，觉得很有意义。 目前这些测试用例都还在在$QTDIR/tests/auto下： bic 说明：利用g++的-fdump-class-hierarchy参数生成的类信息数据和VTable数据检查二进制兼容性。对于库来说很重要。gen.sh对已发布的版本生成历史数据，然后调用g++ -fdump-class-hierarchy生成当前版本数据再进行比较。只要是支持g++的平台都可以检测。 compilerwarnings 说明：tst_CompilerWarnings::warnings()中对几种编译器的警告进行了检测。 headers 说明：tst_Headers::licenseCheck()中对所有源文件进行协议检查。tst_Headers::privateSlots()中对所有头文件检查了私有槽必须含有“_q_”。tst_Headers::macros()对所有头文件检查了宏。 symbols 说明：利用nm检查库中函数名和全局变量。tst_Symbols::prefix()中利用nm -g -C -D &#8211;format=posix &#8211;defined-only对库中的函数名称的前缀进行检查。tst_Symbols::globalObjects()中利用nm -C &#8211;format=posix对库中的全局静态对象进行检测，应该是不能有的。]]></description>
			<content:encoded><![CDATA[<p>近期工作中接触过的，觉得很有意义。</p>
<p>目前这些测试用例都还在在<a href="http://qt.gitorious.org/qt/qt/trees/master/tests/auto">$QTDIR/tests/auto</a>下：</p>
<p><em>bic</em><br />
说明：利用<a href="http://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Debugging-Options.html">g++的-fdump-class-hierarchy参数</a>生成的类信息数据和VTable数据检查二进制兼容性。对于库来说很重要。gen.sh对已发布的版本生成历史数据，然后调用g++ -fdump-class-hierarchy生成当前版本数据再进行比较。只要是支持g++的平台都可以检测。</p>
<p><em>compilerwarnings</em><br />
说明：tst_CompilerWarnings::warnings()中对几种编译器的警告进行了检测。</p>
<p><em>headers</em><br />
说明：tst_Headers::licenseCheck()中对所有源文件进行协议检查。tst_Headers::privateSlots()中对所有头文件检查了私有槽必须含有“_q_”。tst_Headers::macros()对所有头文件检查了宏。</p>
<p><em>symbols</em><br />
说明：利用<a href="http://sourceware.org/binutils/docs/binutils/nm.html">nm</a>检查库中函数名和全局变量。tst_Symbols::prefix()中利用nm -g -C -D &#8211;format=posix &#8211;defined-only对库中的函数名称的前缀进行检查。tst_Symbols::globalObjects()中利用nm -C &#8211;format=posix对库中的全局静态对象进行检测，应该是不能有的。</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2011/04/02/qt%e4%b8%ad%e7%9a%84%e4%b8%80%e4%ba%9b%e5%85%a8%e5%b1%80%e6%b5%8b%e8%af%95%e7%94%a8%e4%be%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一个本科实习生的毕业论文</title>
		<link>http://qihome.org/qiliang/2010/09/20/%e4%b8%80%e4%b8%aa%e6%9c%ac%e7%a7%91%e5%ae%9e%e4%b9%a0%e7%94%9f%e7%9a%84%e6%af%95%e4%b8%9a%e8%ae%ba%e6%96%87/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e4%25b8%2580%25e4%25b8%25aa%25e6%259c%25ac%25e7%25a7%2591%25e5%25ae%259e%25e4%25b9%25a0%25e7%2594%259f%25e7%259a%2584%25e6%25af%2595%25e4%25b8%259a%25e8%25ae%25ba%25e6%2596%2587</link>
		<comments>http://qihome.org/qiliang/2010/09/20/%e4%b8%80%e4%b8%aa%e6%9c%ac%e7%a7%91%e5%ae%9e%e4%b9%a0%e7%94%9f%e7%9a%84%e6%af%95%e4%b8%9a%e8%ae%ba%e6%96%87/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 20:07:02 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10703</guid>
		<description><![CDATA[QCOMPARE(HTML5, QML) &#8212; Nokia,Qt一个本科实习生的毕业论文 QCOMPARE(HTML5, QML) A comparison of UI development technologies. Casper van Donderen 已经获得作者同意对外发布 想想自己本科时做的东西，就太没意义了]]></description>
			<content:encoded><![CDATA[<p>QCOMPARE(HTML5, QML) &#8212; Nokia,Qt一个本科实习生的毕业论文</p>
<p><a href='http://qihome.org/qiliang/files/2010/09/HTML5_QML_Comparison_redist.pdf'>QCOMPARE(HTML5, QML)</a></p>
<p>A comparison of UI development technologies.<br />
<a href="http://www.facebook.com/casper.vandonderen">Casper van Donderen</a></p>
<p>已经获得作者同意对外发布</p>
<p>想想自己本科时做的东西，就太没意义了</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2010/09/20/%e4%b8%80%e4%b8%aa%e6%9c%ac%e7%a7%91%e5%ae%9e%e4%b9%a0%e7%94%9f%e7%9a%84%e6%af%95%e4%b8%9a%e8%ae%ba%e6%96%87/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>体会了一下Snow Leopard的一个开发bug</title>
		<link>http://qihome.org/qiliang/2010/07/13/%e4%bd%93%e4%bc%9a%e4%ba%86%e4%b8%80%e4%b8%8bsnow-leopard%e7%9a%84%e4%b8%80%e4%b8%aa%e5%bc%80%e5%8f%91bug/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e4%25bd%2593%25e4%25bc%259a%25e4%25ba%2586%25e4%25b8%2580%25e4%25b8%258bsnow-leopard%25e7%259a%2584%25e4%25b8%2580%25e4%25b8%25aa%25e5%25bc%2580%25e5%258f%2591bug</link>
		<comments>http://qihome.org/qiliang/2010/07/13/%e4%bd%93%e4%bc%9a%e4%ba%86%e4%b8%80%e4%b8%8bsnow-leopard%e7%9a%84%e4%b8%80%e4%b8%aa%e5%bc%80%e5%8f%91bug/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 14:19:32 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10684</guid>
		<description><![CDATA[终于在公司搞到了一台旧的iMac 5.1, Intel Core 2 Duo 2.0 GHz/ 2G DDR2 667 MHz。 装上了Snow Leopard和官方发布的Qt 4.7.0 Beta 2和Qt Creator 2.1快照版，想debug进Qt库，竟然不成，咨询了公司内外的Mac开发朋友，原来我遇到了Apple的bug。 DYLD_IMAGE_SUFFIX=_debug makes application crash on Mac OS X &#8211; Snow Leopard DYLD_IMAGE_SUFFIX causing havoc on Mac OS X Snow Leopard 而且变态的Apple自己的bug &#8230; <a href="http://qihome.org/qiliang/2010/07/13/%e4%bd%93%e4%bc%9a%e4%ba%86%e4%b8%80%e4%b8%8bsnow-leopard%e7%9a%84%e4%b8%80%e4%b8%aa%e5%bc%80%e5%8f%91bug/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>终于在公司搞到了一台旧的<a href="http://guides.macrumors.com/iMac_(Intel)#Rev._B">iMac 5.1</a>, Intel Core 2 Duo 2.0 GHz/ 2G DDR2 667 MHz。</p>
<p>装上了<a href="http://www.apple.com/macosx/">Snow Leopard</a>和官方发布的<a href="http://qt.nokia.com/developer/qt-qtcreator-prerelease">Qt 4.7.0 Beta 2</a>和<a href="http://qt.nokia.com/developer/qt-qtcreator-prerelease">Qt Creator 2.1快照版</a>，想debug进Qt库，竟然不成，咨询了公司内外的Mac开发朋友，原来我遇到了Apple的bug。</p>
<p><a href="http://bugreports.qt.nokia.com/browse/QTBUG-4962">DYLD_IMAGE_SUFFIX=_debug makes application crash on Mac OS X &#8211; Snow Leopard</a><br />
<a href="http://wimleers.com/blog/dyld-image-suffix-causing-havoc-on-mac-os-x-snow-leopard">DYLD_IMAGE_SUFFIX causing havoc on Mac OS X Snow Leopard</a></p>
<p>而且变态的Apple自己的bug tracker还是封闭的，只有号码，看不到具体情况。</p>
<p>最后的解决办法是：<br />
<code><br />
cd /usr/lib<br />
sudo mv libSystem.B_debug.dylib libSystem.B_debug.dylib.bak<br />
sudo mv libmx.A_debug.dylib libmx.A_debug.dylib.bak<br />
</code></p>
<p>之前还以为/Developers/SDKs/MacOSX10.6.sdk/usr/lib的有效呢。</p>
<p>BTW，学习了OS X下的ldd就是<a href="http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/otool.1.html">otool</a>。</p>
<p>其它参考文档：<br />
<a href="http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html">Technical Note TN2124: Mac OS X Debugging Magic</a></p>
<p>2010年7月30日注：升级到XCode 3.2.3后，依然崩溃。</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2010/07/13/%e4%bd%93%e4%bc%9a%e4%ba%86%e4%b8%80%e4%b8%8bsnow-leopard%e7%9a%84%e4%b8%80%e4%b8%aa%e5%bc%80%e5%8f%91bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to support your own type in QVariant</title>
		<link>http://qihome.org/qiliang/2010/05/06/how-to-support-your-own-type-in-qvariant/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-support-your-own-type-in-qvariant</link>
		<comments>http://qihome.org/qiliang/2010/05/06/how-to-support-your-own-type-in-qvariant/#comments</comments>
		<pubDate>Thu, 06 May 2010 16:38:42 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10666</guid>
		<description><![CDATA[#include &#60;QCoreApplication&#62; #include &#60;QVariant&#62; #include &#60;QString&#62; struct MyStruct { int a; double b; QString c; }; struct MyPowerStruct { int a; double b; MyStruct c; }; Q_DECLARE_METATYPE(MyStruct) Q_DECLARE_METATYPE(MyPowerStruct) int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); MyStruct v01 = &#8230; <a href="http://qihome.org/qiliang/2010/05/06/how-to-support-your-own-type-in-qvariant/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>
#include &lt;QCoreApplication&gt;
#include &lt;QVariant&gt;
#include &lt;QString&gt;

struct MyStruct
{
    int a;
    double b;
    QString c;
};

struct MyPowerStruct
{
    int a;
    double b;
    MyStruct c;
};

Q_DECLARE_METATYPE(MyStruct)
Q_DECLARE_METATYPE(MyPowerStruct)

int main(int argc, char *argv[])
{
    QCoreApplication app(argc, argv);
    MyStruct v01 = { 1, 5.0, QString("Nokia Qt") };
    QVariant var0;
    var0.setValue(v01);
    MyStruct v02 = var0.value();
    MyPowerStruct v11 = { 10, 0.5, {1, 5.0, QString("Nokia Qt") } };
    QVariant var1;
    var1.setValue(v11);
    MyPowerStruct v12 = var1.value();
    return 0;
}
</pre>
<p>Reference:<br />
<a href="http://doc.trolltech.com/4.6/qmetatype.html#Q_DECLARE_METATYPE">Qt 4.6 Documentation: Q_DECLARE_METATYPE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2010/05/06/how-to-support-your-own-type-in-qvariant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Build Qt with S60 5.0 Public SDK(2nd version)</title>
		<link>http://qihome.org/qiliang/2009/09/15/build-qt-with-s60-5-0-public-sdk2nd-version/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-qt-with-s60-5-0-public-sdk2nd-version</link>
		<comments>http://qihome.org/qiliang/2009/09/15/build-qt-with-s60-5-0-public-sdk2nd-version/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 08:58:15 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[SYMBIAN]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=10608</guid>
		<description><![CDATA[Build Qt with S60 5.0 Public SDK(2nd version) Platform: Windows XP with SP3(now we only support Qt/S60 on it.) 1. SYMBIAN Development Environment For downloading the packages, you need to register an account in the forum of Nokia, http://www.forum.nokia.com/main/registration/registration.html 1-1. &#8230; <a href="http://qihome.org/qiliang/2009/09/15/build-qt-with-s60-5-0-public-sdk2nd-version/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Build Qt with S60 5.0 Public SDK(2nd version)</p>
<p>Platform: Windows XP with SP3(now we only support Qt/S60 on it.)</p>
<p>1. SYMBIAN Development Environment</p>
<p>For downloading the packages, you need to register an account in the forum of Nokia,<br />
<a href="http://www.forum.nokia.com/main/registration/registration.html">http://www.forum.nokia.com/main/registration/registration.html</a></p>
<p>1-1. Carbide.C++<br />
<a href="http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/IDEs/Carbide.c++/">http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/IDEs/Carbide.c++/</a><br />
<a href="http://sw.nokia.com/id/7710eba7-4da7-4ddc-a52a-53b506cadb4a/Carbide_cpp_v2_0_en.exe">http://sw.nokia.com/id/7710eba7-4da7-4ddc-a52a-53b506cadb4a/Carbide_cpp_v2_0_en.exe</a></p>
<p>Carbide.C++ 2.0<br />
Carbide_cpp_v2_0_en.exe 203MB</p>
<p>1-2. S60 Platform SDKs for Symbian OS, for C++<br />
<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html">http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html</a><br />
<a href="http://sw.nokia.com/id/577ad48d-290c-4bb5-8bdf-779ea8a5bc6c/S60_5th_Edition_SDK_v1_0_en.zip">http://sw.nokia.com/id/577ad48d-290c-4bb5-8bdf-779ea8a5bc6c/S60_5th_Edition_SDK_v1_0_en.zip</a></p>
<p>S60 Platform SDKs for Symbian OS, for C++, 5th Edition<br />
S60_5th_Edition_SDK_v1_0_en.zip 622MB</p>
<p>1-3. Open C/C++ Plug-in<br />
<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/91d89929-fb8c-4d66-bea0-227e42df9053/Open_C_SDK_Plug-In.html">http://www.forum.nokia.com/info/sw.nokia.com/id/91d89929-fb8c-4d66-bea0-227e42df9053/Open_C_SDK_Plug-In.html</a><br />
<a href="http://sw.nokia.com/id/fbe59b85-a621-404b-94d7-94ca818e576a/s60_open_c_cpp_plug_in_v1_6_en.zip">http://sw.nokia.com/id/fbe59b85-a621-404b-94d7-94ca818e576a/s60_open_c_cpp_plug_in_v1_6_en.zip</a></p>
<p>Open C/C++ Plug-in 1.6<br />
s60_open_c_cpp_plug_in_v1_6_en.zip 34MB</p>
<p>2. Installation<br />
Please install following packages as default path.</p>
<p>Install <a href="http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.638-MSWin32-x86.msi">ActivePerl-5.6.1.638-MSWin32-x86.msi</a>.<br />
Install Java SE Development Kit (JDK), JDK 6 Update 16, <a href="http://java.sun.com/javase/downloads/index.jsp">jdk-6u16-windows-i586.exe</a><br />
Install Carbide.C++.<br />
After installed Carbide.C++, please download <a href="http://pepper.troll.no/s60prereleases/patches/x86Tools_3.2.5_Symbian_b482_qt.zip">x86Tools_3.2.5_Symbian_b482_qt.zip</a>. Please extract all files in it, and copy or move them to overwrite this folder, C:Program FilesNokiaCarbide.c++ v2.0x86Build.<br />
Please run this, Start-&gt;Carbide.c++ v2.0-&gt;Configure environment for WINSCW command line.<br />
And you also need to use <a href="http://git-scm.org/">Git</a> to get <a href="http://www.qtsoftware.com/">Qt</a> from <a href="http://qt.gitorious.org/qt/qt">Qt Git Repo</a>, better to download <a href="http://msysgit.googlecode.com/files/Git-1.6.4-preview20090730.exe">this version of Git</a>.</p>
<p>Please also make sure the path of our perl(default: C:Perlbin) should be before the perl in git(default: C:Program FilesGitbin) in PATH.</p>
<p>For Host Tools:<br />
For <a href="http://www.mingw.org/">MinGW</a> user, please download <a href="http://sourceforge.net/projects/mingw/files/">MinGW-5.1.4.exe</a>(Note: here the 5.1.4 is the version of installer, the compiler version is 3.4.5.), use it install g++ and make at least. And please add the env for MinGW, C:MinGWbin, at the beginning of the PATH.<br />
For <a href="http://www.microsoft.com/express/download/default.aspx#webInstall">Microsoft Visual C++ Express Edition</a> user, please download the vcsetup.exe and install 2008 with SP1.</p>
<p>For Device:<br />
You need to install <a href="http://www.arm.com/support/downloads/rvds22.html">RVCT 2.2</a>, we are using &#8220;Build 683&#8243;. You can use RVCT to build Qt libraries and applications which could running on S60 devices.<br />
You can also install the &#8220;CSL Arm Toolchain&#8221;, if you forgot it, you can find it in Start-&gt;S60 Developer Tools-&gt;5th Edition SDK-&gt;v1.0-&gt;Tools-&gt;CSL Toolchain (GCCE) Install. You can use GCCE to build Qt applications with pre-build Qt libraries, and run your Qt applications on devices.</p>
<p>3. Build Qt with S60 5.0 Public SDK</p>
<p>For MinGW user, just open a Windows Command Prompt.<br />
For VC2008EE user, please open Visual Studio 2008 Command Prompt.</p>
<p>C:<br />
mkdir git<br />
cd C:git<br />
git clone -n git://gitorious.org/qt/qt.git<br />
cd qt<br />
git checkout -b 4.6 origin/4.6<br />
set PATH=C:gitqt-s60bin;%PATH%</p>
<p>For MinGW user:<br />
configure -platform win32-g++ -xplatform symbian-abld -qt-sql-sqlite -system-sqlite -no-script</p>
<p>For VC2008EE user:<br />
configure -platform win32-msvc2008 -xplatform symbian-abld -qt-sql-sqlite -system-sqlite -no-script</p>
<p>make debug-winscw // for emulator<br />
make release-armv5 // for devices arvm5</p>
<p>4. Build Examples</p>
<p>cd C:gitqtexampleswidgetsanalogclock<br />
qmake<br />
make debug-winscw // for emulator<br />
make release-armv5 // for devices arvm5<br />
make release-gcce // for devices gcce</p>
<p>5. Run</p>
<p>In Emulator:<br />
C:S60devicesS60_5th_Edition_SDK_v1.0epoc32releasewinscwudebepoc.exe<br />
&#8220;Menu&#8221;(or click the middle one of the 3 buttons)-&gt;QtExamples-&gt;analogclock</p>
<p>In Device:<br />
createpackage C:gitqtsrcs60installsQt_for_S60_template.pkg release-armv5 // create Qt install package, it locates in C:gitqtsrcs60installsqt_for_s60_release-armv5.sis<br />
createpackage C:gitqtexampleswidgetsanalogclockanalogclock_template.pkg release-armv5 // create analogclock armv5 install package, it locates in C:gitqtexampleswidgetsanalogclockanalogclock_release-armv5.sis<br />
createpackage C:gitqtexampleswidgetsanalogclockanalogclock_template.pkg release-gcce // create analogclock gcce install package, it locates in C:gitqtexampleswidgetsanalogclockanalogclock_release-gcce.sis</p>
<p>Before you install Qt install package, you should also insall following packages:<br />
pips_s60_1_6_SS.sis<br />
openc_ssl_s60_1_6_SS.sis<br />
STDCPP_s60_1_6_SS.sis</p>
<p>You can find them in C:S60devicesS60_5th_Edition_SDK_v1.0nokia_pluginopencs60opencsis and C:S60devicesS60_5th_Edition_SDK_v1.0nokia_pluginopencpps60opencppsis.</p>
<p>NOTE: If you are using virtual machine, please do not use Windows Remote Desktop to connect it. The default audio driver for it will cause S60 Emulator crash.</p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2009/09/15/build-qt-with-s60-5-0-public-sdk2nd-version/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Build Qt with S60 5.0 Public SDK</title>
		<link>http://qihome.org/qiliang/2009/05/26/build-qt-with-s60-5-0-public-sdk/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=build-qt-with-s60-5-0-public-sdk</link>
		<comments>http://qihome.org/qiliang/2009/05/26/build-qt-with-s60-5-0-public-sdk/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:02:00 +0000</pubDate>
		<dc:creator>Qi Liang</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[SYMBIAN]]></category>

		<guid isPermaLink="false">http://www.qiliang.net/blog/?p=190</guid>
		<description><![CDATA[Build Qt with S60 5.0 Public SDK Platform: Windows XP with SP3(now we only support Qt/S60 on it.) 1. SYMBIAN Development Environment For downloading the packages, you need to register an account in the forum of Nokia, http://www.forum.nokia.com/main/registration/registration.html 1-1. Carbide.C++ &#8230; <a href="http://qihome.org/qiliang/2009/05/26/build-qt-with-s60-5-0-public-sdk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Build Qt with S60 5.0 Public SDK</p>
<p>Platform: Windows XP with SP3(now we only support Qt/S60 on it.)</p>
<p>1. SYMBIAN Development Environment</p>
<p>For downloading the packages, you need to register an account in the forum of Nokia,<br />
<a href="http://www.forum.nokia.com/main/registration/registration.html">http://www.forum.nokia.com/main/registration/registration.html</a></p>
<p>1-1. Carbide.C++<br />
<a href="http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/IDEs/Carbide.c++/">http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/IDEs/Carbide.c++/</a><br />
<a href="http://sw.nokia.com/id/7710eba7-4da7-4ddc-a52a-53b506cadb4a/Carbide_cpp_v2_0_en.exe">http://sw.nokia.com/id/7710eba7-4da7-4ddc-a52a-53b506cadb4a/Carbide_cpp_v2_0_en.exe</a></p>
<p>Carbide.C++ 2.0<br />
Carbide_cpp_v2_0_en.exe 203MB</p>
<p>1-2. S60 Platform SDKs for Symbian OS, for C++<br />
<a href="http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html">http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html</a><br />
<a href="http://sw.nokia.com/id/577ad48d-290c-4bb5-8bdf-779ea8a5bc6c/S60_5th_Edition_SDK_v1_0_en.zip">http://sw.nokia.com/id/577ad48d-290c-4bb5-8bdf-779ea8a5bc6c/S60_5th_Edition_SDK_v1_0_en.zip</a></p>
<p>S60 Platform SDKs for Symbian OS, for C++, 5th Edition<br />
S60_5th_Edition_SDK_v1_0_en.zip 622MB</p>
<p>2. Installation</p>
<p>Please install above 2 packages as default path.</p>
<p>Installation order: Carbide.C++, S60 SDK.</p>
<p>After Carbide.C++, you may need to install ActivePerl-5.6.1.638-MSWin32-x86.msi:</p>
<p><a href="http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.638-MSWin32-x86.msi">http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.638-MSWin32-x86.msi</a></p>
<p>And you also need to use <a href="http://git-scm.org/">Git</a> to get <a href="http://www.qtsoftware.com/">Qt</a> from <a href="http://gitorious.org/+qt-s60-developers/qt/qt-s60">Qt S60 Git Repo</a>, better to download <a href="http://msysgit.googlecode.com/files/Git-1.6.3-preview20090507-2.exe">this version of Git</a>.</p>
<p>Please also make sure the path of our perl(default: C:Perlbin) should be before the perl in git(default: C:Program FilesGitbin) in PATH.</p>
<p>Please run this, Start-&gt;Carbide.c++ v2.0-&gt;Configure environment for WINSCW command line.</p>
<p>3. Build Qt with S60 5.0 Public SDK</p>
<p>cd C:git<br />
git clone git://gitorious.org/+qt-s60-developers/qt/qt-s60.git<br />
cd qt-s60<br />
set PATH=C:gitqt-s60bin;%PATH%<br />
configure -platform win32-mwc -xplatform symbian-abld -openssl-linked -qt-sql-sqlite -system-sqlite<br />
make debug-winscw</p>
<p>4. Build Examples</p>
<p>cd C:gitqt-s60exampleswidgetsanalogclock<br />
qmake<br />
make debug-winscw<br />
C:S60devicesS60_5th_Edition_SDK_v1.0epoc32releasewinscwudebepoc.exe<br />
&#8220;Menu&#8221;(or click the middle one of the 3 buttons)-&gt;QtExamples-&gt;analogclock</p>
<p>You got it!<br />
<a href="http://1.bp.blogspot.com/_Z5wTRcfzptM/Shxgek7sfiI/AAAAAAAAAS8/AIaQCUgueAU/s1600-h/analogclock_qts60.png"><img style="margin: 0px auto 10px;text-align: center;cursor: hand;width: 182px;height: 320px" src="http://1.bp.blogspot.com/_Z5wTRcfzptM/Shxgek7sfiI/AAAAAAAAAS8/AIaQCUgueAU/s320/analogclock_qts60.png" border="0" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://qihome.org/qiliang/2009/05/26/build-qt-with-s60-5-0-public-sdk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

