<?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>DEAN LEE:/DEV/BLOG &#187; VC 2008</title>
	<atom:link href="http://www.deanlee.cn/tag/vc-2008/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<lastBuildDate>Tue, 27 Jul 2010 05:21:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>QT/VC2008:Project is rebuilt every time even though I didn&#8217;t make any modifications</title>
		<link>http://www.deanlee.cn/programming/qt_vc_project_is_out_of_date/</link>
		<comments>http://www.deanlee.cn/programming/qt_vc_project_is_out_of_date/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 04:24:10 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[4.5.2]]></category>
		<category><![CDATA[moc]]></category>
		<category><![CDATA[out of date]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[QT]]></category>
		<category><![CDATA[VC 2008]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/technology/qt_vc_project_is_out_of_date/</guid>
		<description><![CDATA[I have encountered problem when attempting to compile VC projects created by QT 4.5.2,VC always rebuilds the whole project when I start to run or build the project, even though I didn&#8217;t make any modifications to the code.the project is always “out of date”. that is because the custom build step generated by QT for [...]


Related posts:<ol><li><a href='http://www.deanlee.cn/programming/compile-with-mp-flag-on-my-system/' rel='bookmark' title='Permanent Link: Compile with /MP flag on my system'>Compile with /MP flag on my system</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>I have encountered problem when attempting to compile VC projects created by <a href="http://qt.nokia.com/products/" target="_blank">QT 4.5.2</a>,VC always rebuilds the whole project when I start to run or build the project, even though I didn&#8217;t make any modifications to the code.the project is always “out of date”.</p>
<p>that is because the custom build step generated by QT for each header files that contain the Q_OBJECT macro are dependent on mocinclude.tmp,which being created every time the project is built,the mocinclude.tmp’s date is later than the header files,so the custom build rule will be run every time.</p>
<p>to solve this problem,open %QTDIR%/makespecs/features/moc.prf,comment out&#160; these two lines(add ‘#&#8217;’ at the start of line):</p>
<pre class="prettyprint">!isEmpty(INCLUDETEMP):moc_source.depends += $$INCLUDETEMP
......
!isEmpty(INCLUDETEMP):moc_header.depends += $$INCLUDETEMP</pre>
<p>and run qmake –tp vc again to regenerate the project files.</p>
<img src="http://www.deanlee.cn/?ak_action=api_record_view&id=963&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.deanlee.cn/programming/compile-with-mp-flag-on-my-system/' rel='bookmark' title='Permanent Link: Compile with /MP flag on my system'>Compile with /MP flag on my system</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/qt_vc_project_is_out_of_date/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
