<?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"
	>

<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>
	<pubDate>Fri, 30 Dec 2011 13:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<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 each [...]]]></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>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/qt_vc_project_is_out_of_date/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

