<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt - static build]]></title><description><![CDATA[<p dir="auto">I've seen many articles and instructions about building Qt statically. But anyway I get errors during this process.</p>
<p dir="auto">OS: Windows 8, x64<br />
I've installed Perl, Python, Ruby, they are at PATH variable too.<br />
Also installed Visual Studio 2010, Windows SDK 7.1, Visual Studio 2010 SP1, Visual C++ 2010 SP1 Compiler Update for the Windows SDK 7.1 (as described here <a href="http://qt-project.org/wiki/Building-Qt-5-from-Git" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/wiki/Building-Qt-5-from-Git</a>)</p>
<p dir="auto">Then, using Windows SDK Command Prompt I do:<br />
@configure -prefix % cd%\qtbase -opensource -static -platform win32-msvc2010 -nomake tests -nomake examples@</p>
<p dir="auto">and then:<br />
@nmake@</p>
<p dir="auto">It compiles some files (nearly 30 min) and then:<br />
@        link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:CONSOLE "<br />
/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' versio<br />
n='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='<em>' processorArchitecture<br />
='</em>'" /MANIFEST /MANIFESTFILE:C:\Qt-static\qtbase\bin\qmlscene.exe.embed.manifes<br />
t /OUT:C:\Qt-static\qtbase\bin\qmlscene.exe <a class="plugin-mentions-user plugin-mentions-a" href="/user/c">@<bdi>C</bdi></a>:\Users\D395~1\AppData\Local\Temp<br />
nmAAB9.tmp<br />
LINK : fatal error LNK1181: cannot open input file 'Files.obj'<br />
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0<br />
\VC\Bin\link.EXE"' : return code '0x49d'<br />
Stop.<br />
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0<br />
\VC\Bin\nmake.exe"' : return code '0x2'<br />
Stop.<br />
NMAKE : fatal error U1077: 'cd' : return code '0x2'<br />
Stop.<br />
NMAKE : fatal error U1077: 'cd' : return code '0x2'<br />
Stop.<br />
NMAKE : fatal error U1077: 'cd' : return code '0x2'<br />
Stop.@<br />
<em>What to do? Or how to build Qt statically and correctly?</em></p>
]]></description><link>https://forum.qt.io/topic/28271/qt-static-build</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Apr 2026 22:02:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/28271.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Jun 2013 16:37:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt - static build on Wed, 24 Dec 2014 04:53:57 GMT]]></title><description><![CDATA[<p dir="auto">see <a href="http://stackoverflow.com/questions/14932315/how-to-compile-qt-5-under-windows-or-linux-32-or-64-bit-static-or-dynamic-on-v" target="_blank" rel="noopener noreferrer nofollow ugc">http://stackoverflow.com/questions/14932315/how-to-compile-qt-5-under-windows-or-linux-32-or-64-bit-static-or-dynamic-on-v</a>, it works!</p>
]]></description><link>https://forum.qt.io/post/201701</link><guid isPermaLink="true">https://forum.qt.io/post/201701</guid><dc:creator><![CDATA[allopen]]></dc:creator><pubDate>Wed, 24 Dec 2014 04:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to Qt - static build on Wed, 24 Dec 2014 04:53:57 GMT]]></title><description><![CDATA[<p dir="auto">see <a href="http://stackoverflow.com/questions/14932315/how-to-compile-qt-5-under-windows-or-linux-32-or-64-bit-static-or-dynamic-on-v" target="_blank" rel="noopener noreferrer nofollow ugc">http://stackoverflow.com/questions/14932315/how-to-compile-qt-5-under-windows-or-linux-32-or-64-bit-static-or-dynamic-on-v</a>, it works!</p>
]]></description><link>https://forum.qt.io/post/255369</link><guid isPermaLink="true">https://forum.qt.io/post/255369</guid><dc:creator><![CDATA[allopen]]></dc:creator><pubDate>Wed, 24 Dec 2014 04:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to Qt - static build on Thu, 11 Jul 2013 06:12:27 GMT]]></title><description><![CDATA[<p dir="auto">Please "report this":<a href="https://qt-project.org/wiki/ReportingBugsInQt" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt-project.org/wiki/ReportingBugsInQt</a>. Qt Project is working hard on getting Qt5 to compile in static, but there are hurdles, mostly in QtQuick2.</p>
]]></description><link>https://forum.qt.io/post/185965</link><guid isPermaLink="true">https://forum.qt.io/post/185965</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Thu, 11 Jul 2013 06:12:27 GMT</pubDate></item><item><title><![CDATA[Reply to Qt - static build on Wed, 10 Jul 2013 19:07:13 GMT]]></title><description><![CDATA[<p dir="auto">It seems building Qt5 statically has a lot of issues.</p>
<p dir="auto">For one thing setting the -platform to win32-msvc2012 has no effect; it reverts to win32-msvc2010.</p>
<p dir="auto">For this specific issue, I've found the issue is related to the DirectX libraries.  When installing the directX SDKs it installs to some location like:<br />
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)</p>
<p dir="auto">If you look at the Makefile in qmlscene you'll see that path and then several incomplete paths like 2010)\Lib\blah.lib.  If you copy the DirectX libraries to a location without spaces, then replace all the directX paths in the Makefile with the new path and take out 1 errant floating path (it is ~2010)\Lib with no .lib attached to it), it should compile.  You'll have to repeat the process for each Makefile that has the wrong path-names.</p>
<p dir="auto">Basically somewhere in Qt it doesn't replace the paths properly with the directX library path (and it can't handle spaces).</p>
<p dir="auto">I'm sure there is a way to automate fix it without having to modify each Makefile, but I haven't found it yet.</p>
]]></description><link>https://forum.qt.io/post/185919</link><guid isPermaLink="true">https://forum.qt.io/post/185919</guid><dc:creator><![CDATA[viewbios]]></dc:creator><pubDate>Wed, 10 Jul 2013 19:07:13 GMT</pubDate></item><item><title><![CDATA[Reply to Qt - static build on Fri, 14 Jun 2013 06:19:46 GMT]]></title><description><![CDATA[<p dir="auto">This is how I build Qt4 statically:<br />
@<br />
./configure -prefix $PWD -nomake demos -nomake examples -nomake tests -release -static -no-exceptions -no-webkit -qt-zlib -qt-libpng -qt-libjpeg -arch x86 -dont-process -no-qt3support</p>
<p dir="auto">bin/qmake <a href="http://projects.pro" target="_blank" rel="noopener noreferrer nofollow ugc">projects.pro</a> QT_BUILD_PARTS="libs" JAVASCRIPTCORE_JIT="yes"</p>
<p dir="auto">make -j5<br />
@</p>
<p dir="auto">AFAIK, in Qt5 QtQuick is causing problems during static compilation. Be sure to grab newest sources (Qt 5.1, or git dev branch).</p>
]]></description><link>https://forum.qt.io/post/182773</link><guid isPermaLink="true">https://forum.qt.io/post/182773</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Fri, 14 Jun 2013 06:19:46 GMT</pubDate></item></channel></rss>