<?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[Building Qt for static linking on Windows. Quick and Qml are missing? How to link plugins statically?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm having a few problems trying to get Qt to statically link the libraries. I've searched the internet and the forum for the past days, but couldn't find a solution that worked. Maybe there is a problem in the way I am building it and I hope someone can help me out.</p>
<p dir="auto">I have downloaded the qt-everywhere-opensource-src-5.2.1.7z package and unzipped it to C:\Qt\QtStatic\</p>
<p dir="auto">Since I have Qt Creator 5.2.1 installed already, I've set the PATH variable to point to C:\Qt\Qt5.2.1\Tools\mingw48_32\bin for mingw32-make</p>
<p dir="auto">I open the command windows and navigate to C:\Qt\QtStatic\</p>
<p dir="auto">From there I run configure.bat with the following options:<br />
configure -static -platform win32-g++ -opengl desktop -nomake examples -nomake tests -opensource</p>
<p dir="auto">After that:<br />
mingw32-make</p>
<p dir="auto">When that's done:<br />
mingw32-make install</p>
<p dir="auto">Now I start up the Qt Creator and open the "Qt Quick Controls - Gallery" example.<br />
I then go to Projects and create a Kit that's linking to the qmake located in the static build I made above.<br />
C:\Qt\QtStatic\qtbase\bin\qmake.exe</p>
<p dir="auto">I then notice that it already gives me a warning saying: qmlscene is not installed, no qmlviewer installed.</p>
<p dir="auto">I select the new kit to be the current setting for compilation and try to build the application and then get the following error in build problems:<br />
Unknown module(s) in QT: quick qml</p>
<p dir="auto">--</p>
<p dir="auto">Now my question is, how can I get the project to find those? Do I need to build the library again with other settings? Do I add quick and qml elsewhere?</p>
]]></description><link>https://forum.qt.io/topic/41379/building-qt-for-static-linking-on-windows-quick-and-qml-are-missing-how-to-link-plugins-statically</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 07:31:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/41379.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 May 2014 09:32:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Building Qt for static linking on Windows. Quick and Qml are missing? How to link plugins statically? on Tue, 03 Jun 2014 10:38:02 GMT]]></title><description><![CDATA[<p dir="auto">I have the same problem with plugins.</p>
]]></description><link>https://forum.qt.io/post/230840</link><guid isPermaLink="true">https://forum.qt.io/post/230840</guid><dc:creator><![CDATA[mib383]]></dc:creator><pubDate>Tue, 03 Jun 2014 10:38:02 GMT</pubDate></item><item><title><![CDATA[Reply to Building Qt for static linking on Windows. Quick and Qml are missing? How to link plugins statically? on Wed, 14 May 2014 14:26:05 GMT]]></title><description><![CDATA[<p dir="auto">It seems to work now. Here's what I did:</p>
<p dir="auto">I now added a reference to Python to the PATH-variable and recompiled the whole thing with added configure options:</p>
<p dir="auto">configure -static -platform win32-g++ -opengl desktop -nomake examples -nomake tests -opensource -debug-and-release -developer-builld</p>
<p dir="auto">Then I only used mingw32-make<br />
No need for mingw32-make install</p>
<hr />
<p dir="auto">Static linking seems to work now, apart from the plugins.<br />
I haven't found out how to tell the project to also put stuff like platforms/qwindows.dll and the QtQuick and QtQuick.2 folder into the executable as well.</p>
<p dir="auto">So right now the application folder still looks like this:<br />
platforms/qwindows.dl<br />
QtQuick/..(a lot of stuff)<br />
QtQuick.2/..(a lot of stuff)<br />
executable.exe<br />
libgcc_s_dw2-1.dll<br />
libstdc++-6.dll<br />
libwinpthread-1.dll</p>
]]></description><link>https://forum.qt.io/post/228483</link><guid isPermaLink="true">https://forum.qt.io/post/228483</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 14 May 2014 14:26:05 GMT</pubDate></item></channel></rss>