<?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>Chaos Engine &#187; Qt</title>
	<atom:link href="http://dev.modmancer.com/index.php/category/qt/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.modmancer.com</link>
	<description>Sometimes I drink to forget.. but then I forget to drink..</description>
	<lastBuildDate>Mon, 06 Feb 2012 16:11:00 +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>Qt and GCC 4.7.0 -std=c++0x</title>
		<link>http://dev.modmancer.com/index.php/2012/02/06/181/</link>
		<comments>http://dev.modmancer.com/index.php/2012/02/06/181/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 16:08:36 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=181</guid>
		<description><![CDATA[Another bump. Switching to gcc 4.7.0 and trying to compile my qt code with -std=c++0x, fails legendary. The error message is intuitive like ever. It says something like: error: inconsistent user-defined literal suffixes '_FILE_' and 'QTOSTRING' in string literal According to this https://bugreports.qt-project.org/browse/QTBUG-22847?focusedCommentId=168644&#38;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel According to this, here is the solution, at least until we get [...]]]></description>
			<content:encoded><![CDATA[<p>Another bump. Switching to gcc 4.7.0 and trying to compile my qt code with -std=c++0x, fails legendary. The error message is intuitive like ever. It says something like:</p>
<pre>error: inconsistent user-defined literal suffixes '_<em>FILE</em>_' and 'QTOSTRING' in string literal</pre>
<p>According to this</p>
<p><a href="https://bugreports.qt-project.org/browse/QTBUG-22847?focusedCommentId=168644&amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel">https://bugreports.qt-project.org/browse/QTBUG-22847?focusedCommentId=168644&amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel</a></p>
<p>According to this, here is the solution, at least until we get new qt, or recompile it ourselves, or I don&#8217;t know what:</p>
<pre>Magick: override fix for qt and c++0x</pre>
<p>#define QLOCATION &#8220;\0&#8243; __FILE__ &#8220;:&#8221; QTOSTRING(__LINE__)
</pre>
<p>Add this before any Qt includes. It solved my problem.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2012/02/06/181/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qmake and targets (pre-building dependencies)</title>
		<link>http://dev.modmancer.com/index.php/2010/11/14/qmake-building-dependencies/</link>
		<comments>http://dev.modmancer.com/index.php/2010/11/14/qmake-building-dependencies/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 20:07:22 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[qmake]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Qt Creator]]></category>
		<category><![CDATA[build dependencies]]></category>
		<category><![CDATA[build targets]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[makefile]]></category>
		<category><![CDATA[pre-build project]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=123</guid>
		<description><![CDATA[When using qmake as your build system, if you have a project which depends on a, e.g. external_library.a, you will need to set it up so that it can rebuild the library automatically, whenever the external library changes. In Visual studio this is easily done via its GUI, project properties, dependencies section, but when it [...]]]></description>
			<content:encoded><![CDATA[<p>When using qmake as your build system, if you have a project which depends on a, e.g. external_library.a, you will need to set it up so that it can rebuild the library automatically, whenever the external library changes. In Visual studio this is easily done via its GUI, project properties, dependencies section, but when it comes to qmake, it requires a bit of extra effort to set things properly up. But it&#8217;s easy, once you know how.</p>
<p><strong>HEARD OF TARGETS?</strong></p>
<p>Qmake uses &#8216;targets&#8217;, thet&#8217;re like modules which you define, and insert into the main build chain, telling the resulting Makefile when to build what. Targets can be auto-executed, or simply residing in your make file, so that you can build them on demand.</p>
<p>Here is a simple example, covering the external_library.a story above.<br />
In your main .pro file, add these lines:<span id="more-123"></span></p>
<pre>
extralib.target = extra
extralib.commands =	echo "Building extralib.."; \
				make -w -C ../my_libraries/extralib; \
				echo "Done building extralib."; \
extralib.depends =
QMAKE_EXTRA_TARGETS += extralib
PRE_TARGETDEPS = extra

.. the rest of your .pro file comes here ..
}
</pre>
<p>From now on, when building your main project, it will automatically try to build the extralib project. This step will be executed before the linker requests the resulting extralib.a, that way you will always have a consistent build.</p>
<p>But you can do much more with targets, you can for example set up doxygen to automatically export new docs on rebuilds, or to copy files, add text to your files &#8211; svn revision number maybe, or else.</p>
<p>If you leave out the PRE_TARGETDEPS = extra, the extralib target you defined will not be automatically execute during builds. But you will be able to type in your shell: </p>
<pre>
$ make extra
</pre>
<p>.. which will execute this specific target.</p>
<p>Additionally, if one of your targets depends on other target(s), you just need to add them to the <em>&#8216;extralib.depends =&#8217;</em><strong> variable. Note that you can execute a shell script via targets, in case you need to do complex file operation, which would be too painful to write in the .pro file, or which depend on external shell scripts.  </p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2010/11/14/qmake-building-dependencies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My darkish Komodo and QT Creator color schemes</title>
		<link>http://dev.modmancer.com/index.php/2010/07/17/my-darkish-komodo-and-qt-creator-color-schemes/</link>
		<comments>http://dev.modmancer.com/index.php/2010/07/17/my-darkish-komodo-and-qt-creator-color-schemes/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 16:43:58 +0000</pubDate>
		<dc:creator>akiko</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Qt Creator]]></category>
		<category><![CDATA[color scheme]]></category>
		<category><![CDATA[dark theme]]></category>
		<category><![CDATA[Komodo]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://dev.modmancer.com/?p=81</guid>
		<description><![CDATA[You can download my Komodo and Qt Creator &#8216;dark&#8217; themes from: http://www.modmancer.com/downloads/dev_blog/dew_dark.ksf http://www.modmancer.com/downloads/dev_blog/dew_dark.xml For Komodo: copy the Komodo theme to your ~/.komodoide/5.2/schemes folder. For Qt Creator 2.0: copy the Qt Creator theme to your ~/.config/Nokia/qtcreator/styles folder.]]></description>
			<content:encoded><![CDATA[<p>You can download my Komodo and Qt Creator &#8216;dark&#8217; themes from:</p>
<p><a title="Komodo Theme" href="http://www.modmancer.com/downloads/dev_blog/dew_dark.ksf">http://www.modmancer.com/downloads/dev_blog/dew_dark.ksf</a><br />
<a title="Qt Theme" href="http://www.modmancer.com/downloads/dev_blog/dew_dark.xml"> http://www.modmancer.com/downloads/dev_blog/dew_dark.xml</a></p>
<p>For Komodo:<br />
copy the Komodo theme to your ~/.komodoide/5.2/schemes folder.</p>
<p>For Qt Creator 2.0:<br />
copy the Qt Creator theme to your ~/.config/Nokia/qtcreator/styles folder.<span id="more-81"></span></p>
<p><img class="alignnone" title="dew's dark Qt Creator theme " src="http://www.modmancer.com/downloads/dev_blog/style_qtcreator.png" alt="" width="400" /><!--more--></p>
<p><img class="alignnone" title="dew's dark komodo style" src="http://www.modmancer.com/downloads/dev_blog/style_komodo.png" alt="" width="400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dev.modmancer.com/index.php/2010/07/17/my-darkish-komodo-and-qt-creator-color-schemes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

