<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>George Wright's Blog: QtNX on Mac OS X - nearly there</title>
    <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Random bloggings of a clearly disturbed KDE geek</description>
    <item>
      <title>QtNX on Mac OS X - nearly there</title>
      <description>&lt;p&gt;I must say that I&amp;#8217;m very impressed with Trolltech&amp;#8217;s attention to detail for their cross platform work; qtnx compiled (almost) without a hitch on OS X. After hacking around a few build system problems and linking issues, I managed to get qtnx to compile and link (it took ~5 minutes!), producing this particularly nice result:&lt;/p&gt;

&lt;div align="center"&gt;
&lt;a href="http://vm.gwright.org.uk/images/images/blog/qtnx-mac.png"&gt;
&lt;img src="http://vm.gwright.org.uk/images/cache/images/blog/320x256/qtnx-mac.png"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br /&gt;QtNX on 10.4.11 (Intel)&lt;/div&gt;

&lt;p&gt;I&amp;#8217;m having a bit of trouble with working out how to create a sensible buildsystem for the Mac. If anyone&amp;#8217;s got any experience with qmake on OS X then please drop me a line; in particular, I&amp;#8217;m looking out for ways in which qmake can define what platform I&amp;#8217;m on so I can have #ifdef&amp;#8217;d sections of code for each platform, as well as using things like pkg-config on platforms where it exists and whatever equivalent there is on OS X. In fact, hooking qmake into Xcode for this could be ideal.&lt;/p&gt;

&lt;p&gt;I haven&amp;#8217;t tested if this actually connects yet; I haven&amp;#8217;t got round to compiling the open source NoMachine dependencies (nxproxy, nxssh, nxcompsh) but it shouldn&amp;#8217;t be too hard to get it all working nicely (I hope!).&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 07:41:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d99056ba-75e3-44b8-b38d-fae84fdcf1c1</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there</link>
      <category>NX</category>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Repre Hendor</title>
      <description>&lt;p&gt;Do you know about &lt;a href="http://www.epmhome.org/epm-book.html" rel="nofollow"&gt;EPM&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;With EPM you maintain one source file to control the building of native packages for Linux (.deb, .rpm, .tgz) as well as Mac OS X (.dmg), IRIX, *BSD, AIX, and what have you.&lt;/p&gt;

&lt;p&gt;See also &lt;a href="http://www.epmhome.org/epm-book.html" rel="nofollow"&gt;EPM  docu&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 09 Jan 2008 00:44:20 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:34b34601-5a58-417b-a7f6-e3cb09ccd861</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-390</link>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Benjamin Sergeant</title>
      <description>&lt;p&gt;You can also do that:&lt;/p&gt;

&lt;pre&gt;
UNAME = $$system(uname)
contains( UNAME, (Darwin) ): QMAKE_CXXFLAGS_DEBUG += whatever you like
&lt;/pre&gt;</description>
      <pubDate>Tue, 08 Jan 2008 19:42:10 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0216a67b-e65a-46b0-97df-b00f74943ba9</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-389</link>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Kevin Kofler</title>
      <description>&lt;p&gt;Arrgh, my underscores got mangled. That&amp;#8217;ll teach me not to preview and not to read the markup help. ;-)&lt;/p&gt;

&lt;p&gt;But to #ifdef code in your source code, the best is probably to use the compiler predefines (i.e. &lt;code&gt;__APPLE__&lt;/code&gt;) or the macros Qt defines for you (e.g. &lt;code&gt;Q_WS_MAC&lt;/code&gt;, &lt;code&gt;Q_OS_MAC&lt;/code&gt;). Using &lt;code&gt;Q_WS_MAC&lt;/code&gt; is probably the best solution if you want the code to be used only with native Qt/Mac, not Qt/X11.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 18:36:13 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:091a8319-0005-4249-91e0-0650af7deefa</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-388</link>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Kevin Kofler</title>
      <description>&lt;p&gt;The correct target names are macx-* (there&amp;#8217;s macx-g++, macx-icc, macx-pbuilder, macx-xcode and macx-xlc, you can use macx-* to match them all). There&amp;#8217;s also darwin-* for X11 on OS X, this is not officially supported by Trolltech (but projects like Fink have patches to support that target).&lt;/p&gt;

&lt;p&gt;But to #ifdef code in your source code, the best is probably to use the compiler predefines (i.e. &lt;strong&gt;APPLE&lt;/strong&gt;) or the macros Qt defines for you (e.g. Q&lt;em&gt;WS_MAC, Q&lt;/em&gt;OS&lt;em&gt;MAC). Using Q&lt;/em&gt;WS_MAC is probably the best solution if you want the code to be used only with native Qt/Mac, not Qt/X11.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 18:34:25 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:cf31ccfa-59ca-4329-9765-81868674a77d</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-387</link>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Tanner Lovelace</title>
      <description>&lt;p&gt;Pardon me for asking, but are you determined to use QMake?  I just ask because everything you list (#ifdefed sections for different platforms, pkg-config, and XCode integration) all work with CMake (including the KDE build).  I can understand, and totally respect, if you want to stay with QMake and not make CMake a requirement, but I just wanted to mention it because it could easily do all of that.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 16:37:40 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:8f1e70a1-7c46-4638-9c6a-54d322d22b91</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-386</link>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Max Howell</title>
      <description>&lt;p&gt;Us here at Last.fm must be the kings of cross platform qmake usage. Feel free to send me a mail.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 13:11:01 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:33c58f53-5c9c-4157-ae9b-384b9f7af35c</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-385</link>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Kevin Krammer</title>
      <description>&lt;p&gt;See QMake&amp;#8217;s scope feature&lt;/p&gt;

&lt;p&gt;&lt;a href="http://doc.trolltech.com/4.3/qmake-advanced-usage.html#scopes" rel="nofollow"&gt;http://doc.trolltech.com/4.3/qmake-advanced-usage.html#scopes&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 12:57:30 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4b1de7f2-3bea-4c5d-8353-ff37cbb1068d</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-384</link>
    </item>
    <item>
      <title>"QtNX on Mac OS X - nearly there" by Johan Thelin</title>
      <description>&lt;p&gt;You can always use the name of the current mkspec (for QMake) as a conditioner for your build, e.g:&lt;/p&gt;

&lt;p&gt;mac-g++ { something; }
!mac-g++ { something else; }&lt;/p&gt;

&lt;p&gt;Note! The mkspec is probably not called mac-g++, you have to check for the real name in the $QTDIR/mkspecs directory.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Jan 2008 09:05:26 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:f918c773-a2bf-4478-8360-c89f96dcab31</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/08/qtnx-on-mac-os-x-nearly-there#comment-383</link>
    </item>
  </channel>
</rss>
