<?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: Qt/Windows and Cygwin</title>
    <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Random bloggings of a clearly disturbed KDE geek</description>
    <item>
      <title>Qt/Windows and Cygwin</title>
      <description>&lt;p&gt;So in the process of learning about cygwin/mingw/qt in order to port qtnx to Windows, I concluded that the easiest way would be to compile nxcl using cygwin (which, luckily, compiled with no changes at all), and then to compile Qt inside cygwin and then compile qtnx inside cygwin, linking to both Qt and nxcl.&lt;/p&gt;

&lt;p&gt;Turns out getting Qt 4 to compile inside cygwin is a non-trivial task. Thankfully, however, &lt;a href="http://wiki.lyx.org/LyX/LyXOnCygwin"&gt;the LyX guys have done most of the work&lt;/a&gt;. It just needed a minor alteration to the source, though, otherwise a linker error occurred during compilation of Qt/Win 4.3.3.&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;src/corelib/codecs/qtextcodec.cpp&lt;/code&gt;, there is an #ifdef block starting on line 528. You just need to add&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;amp;&amp;amp; !defined(Q_CYGWIN_WIN)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;to stop the Asian codecs from being compiled in; there&amp;#8217;s probably a better solution to this, but I don&amp;#8217;t see this as being particularly problematic. After that you can follow the instructions in the LyX wiki and link to Qt just fine.&lt;/p&gt;

&lt;p&gt;From this you can probably tell that I now have QtNX compiling inside cygwin on Windows. Well, yes, it works, but I haven&amp;#8217;t yet tested whether it will actually connect to any servers. Theoretically, it should so long as I set the PATH properly to point to the directory where nxssh and nxproxy are, and hopefully all should just work fine! I may need to append &amp;#8220;.exe&amp;#8221; to the binary names in nxcl though, but all in all I think it should be fairly trivial from now on (so long as nxproxy behaves as expected and doesn&amp;#8217;t start making annoying noises about X11 and Win32).&lt;/p&gt;

&lt;div align="center"&gt;&lt;a href="http://vm.gwright.org.uk/images/images/blog/qtnx-win.png"&gt;&lt;img src="http://vm.gwright.org.uk/images/cache/images/blog/512x384/qtnx-win.png"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br /&gt;
Gratuitous QtNX on Windows screenshot&lt;/div&gt;</description>
      <pubDate>Mon, 21 Jan 2008 21:22:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0a1e9e33-bb0b-464f-8163-88f473021f7d</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin</link>
      <category>Computing</category>
      <category>NX</category>
    </item>
    <item>
      <title>"Qt/Windows and Cygwin" by Thomas</title>
      <description>&lt;p&gt;Sorry for spoiling your page with my entries. 
The reason for that above was a different version of make. Cygwin is comming with V3.81, I used V3.80 to avoid another problem. Make always reported &amp;#8220;multiple target patterns&amp;#8221;, see &lt;a href="http://list.coin-or.org/pipermail/ipopt/2006-July/000612.html" rel="nofollow"&gt;http://list.coin-or.org/pipermail/ipopt/2006-July/000612.html&lt;/a&gt;. That&amp;#8217;s live in the open source world.&lt;/p&gt;

&lt;p&gt;I&amp;#8217;ve now the problem with two undefined externals:&lt;/p&gt;

&lt;p&gt;C:\User\bin/libQtCore.a(qbytearray.o):qbytearray.cpp:(.text+0xdb6): undefined reference to &lt;code&gt;_uncompress'
C:\User\bin/libQtCore.a(qbytearray.o):qbytearray.cpp:(.text+0x11a3): undefined reference to&lt;/code&gt;_compress2&amp;#8217;&lt;/p&gt;

&lt;p&gt;I linked against libz. It doesn&amp;#8217;t eigther. &lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;</description>
      <pubDate>Tue, 26 Feb 2008 08:37:01 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:2f88125b-0502-4de3-b66c-3d8f776db9aa</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin#comment-419</link>
    </item>
    <item>
      <title>"Qt/Windows and Cygwin" by Thomas</title>
      <description>&lt;p&gt;I&amp;#8217;ve tried to follow the &amp;#8220;LyX on Cygwin&amp;#8221; build intruction. Unfortunately the configure stopped with the error message:&lt;/p&gt;

&lt;p&gt;header (master) created for Qt3Support
headers.pri file created for Qt3Support
mkdir /cygdrive/c/User/src/qtwin-4.3.3/build-cygwin/src/tools
mkdir /cygdrive/c/User/src/qtwin-4.3.3/build-cygwin/src/tools/uic
Creating qmake. Please wait&amp;#8230;
C:\cygwin\bin\make.exe: &lt;em&gt;*&lt;/em&gt; No rule to make target &lt;code&gt;generators/makefile.cpp', needed by&lt;/code&gt;makefile.o&amp;#8217;.  Stop.&lt;/p&gt;

&lt;p&gt;Can you please help?&lt;/p&gt;</description>
      <pubDate>Thu, 21 Feb 2008 10:38:05 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:29632644-0352-4862-8e9a-4795fa26088c</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin#comment-418</link>
    </item>
    <item>
      <title>"Qt/Windows and Cygwin" by Nord</title>
      <description>&lt;p&gt;Jesus George, things have come a long way since harrow&amp;#8212;im impressed&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jan 2008 20:53:03 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:ffb99c4b-f769-4a6a-be81-e42b2335d199</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin#comment-396</link>
    </item>
    <item>
      <title>"Qt/Windows and Cygwin" by Tim</title>
      <description>&lt;p&gt;I just use MSVC. It&amp;#8217;s very easy to compile Qt4 with it.&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jan 2008 14:09:41 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:b0631a63-4671-4ca3-a768-0f845a4eb520</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin#comment-395</link>
    </item>
    <item>
      <title>"Qt/Windows and Cygwin" by ethana2</title>
      <description>&lt;p&gt;&amp;#8220;Well, the had to use it to test whether the final installers worked on a real Windows ;-)&amp;#8221;&lt;/p&gt;

&lt;p&gt;&amp;#8230;WINE?  ^_^&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jan 2008 03:35:31 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:f19268a3-1ed9-4f6f-bb73-e75ad6bf0934</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin#comment-394</link>
    </item>
    <item>
      <title>"Qt/Windows and Cygwin" by vokimon</title>
      <description>&lt;p&gt;Congratulations for such a success. I supose you need cygwin because the Posix layer. For our project, &lt;a &gt;CLAM&lt;/a rel="nofollow"&gt;, mingw was a better option. We managed to build all the windows stuff &lt;a &gt;crosscompiling from Linux&lt;/a rel="nofollow"&gt; and running most things, including Gtk, Qt and NSIS installers for windows, with wine. This way we could generate even the installers without using Windows at all. Well, the had to use it to test whether the final installers worked on a real Windows ;-)&lt;/p&gt;</description>
      <pubDate>Tue, 22 Jan 2008 01:19:47 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:7785293d-f853-432d-9adf-08f7954ed6ea</guid>
      <link>http://blog.gwright.org.uk/articles/2008/01/21/qt-windows-and-cygwin#comment-393</link>
    </item>
  </channel>
</rss>
