<?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[[Solved] Static Build doesn&#x27;t run on other PCs (Windows)]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I have tried creating static builds of my application that I can run on other PCs that don't have Qt installed (the whole point of a static build...)</p>
<p dir="auto">While I can build my application, and it runs fine on my Windows 7 Machine, it does not run on other computers.<br />
Well, it does run (the process shows up in the Task Manager), but no window appears.</p>
<p dir="auto">I'm using the C++ portion of my application only start up QML. The rest is all done in QML.</p>
<p dir="auto">Now, when I complied Qt 5.4.0, I used the following options:</p>
<pre><code> configure.bat -static -debug-and-release -platform win32-g++ -prefix 5.4.0-static -opengl desktop -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
</code></pre>
<p dir="auto">My <em>main.cpp</em> looks like this:</p>
<pre><code>#include &lt;QApplication&gt;
#include &lt;QQmlApplicationEngine&gt;
#include &lt;QQuickView&gt;
#include &lt;QtQml&gt;

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
    return app.exec();
}
</code></pre>
<p dir="auto">If that makes any difference, in the QML code, I include items like:</p>
<pre><code>import QtQuick 2.4
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.3
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
</code></pre>
<p dir="auto">But, yes, as mentioned below, I can build this, and it works on my PC.<br />
On other PCs, I can see the process running in the Task Manager, but the Application Window does not appear.</p>
<p dir="auto">Any pointers in where I go wrong are appreciated!<br />
Thanks!</p>
]]></description><link>https://forum.qt.io/topic/52292/solved-static-build-doesn-t-run-on-other-pcs-windows</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 16:56:05 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/52292.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Mar 2015 17:21:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] Static Build doesn&#x27;t run on other PCs (Windows) on Tue, 17 Mar 2015 09:27:28 GMT]]></title><description><![CDATA[<p dir="auto">As it turns out, I needed to add the "QtQuick" and "QtQuick.2" folders in the same directory as my *.exe file.</p>
<p dir="auto"><a href="http://wiki.qt.io/Deploy_an_Application_on_Windows" target="_blank" rel="noopener noreferrer nofollow ugc">This wiki page</a> brought me on the right path.</p>
]]></description><link>https://forum.qt.io/post/265715</link><guid isPermaLink="true">https://forum.qt.io/post/265715</guid><dc:creator><![CDATA[Armalyte]]></dc:creator><pubDate>Tue, 17 Mar 2015 09:27:28 GMT</pubDate></item></channel></rss>