<?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[CMake+MXE+Qt for static cross compiling. How do we add plugins statically?]]></title><description><![CDATA[<p dir="auto">We're moving from qmake to cmake in <a href="https://github.com/NeblioTeam/neblio" target="_blank" rel="noopener noreferrer nofollow ugc">this project</a>. Everything seems to be fine and we built successfully on Linux and Windows (mac will come later). When I run the produced Windows executable, I get this error:</p>
<pre><code>qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
</code></pre>
<p dir="auto">Notice that it doesn't mention what plugin is missing.</p>
<p dir="auto">You can see the <a href="https://github.com/NeblioTeam/neblio/commit/3602379442cf94a5b468e77b80b3f2ab83ec369a" target="_blank" rel="noopener noreferrer nofollow ugc">current cmake file here</a>, and the <a href="https://github.com/NeblioTeam/neblio/blob/master/wallet/wallet-libs.pri" target="_blank" rel="noopener noreferrer nofollow ugc">qmake file that has the same settings here</a>. This qmake file is included in the main qmake file in the root directory of the repo.</p>
<p dir="auto">The compilation for Windows uses a <a href="https://mxe.cc/" target="_blank" rel="noopener noreferrer nofollow ugc">cross-compiler called MXE</a>. We do a full static build normally.</p>
<p dir="auto">If you wanna compile the project with MXE, note that <code>curl</code> has to have gnutls disabled with <code>--without-gnutls</code> in MXE when compiling MXE, otherwise it conflicts with OpenSSL.</p>
<p dir="auto"><strong>So my question is: How do I include the plugins from qmake file in the cmake file statically? Also how do I include standard Qt plugins, that will make it work?</strong></p>
<p dir="auto">The error message doesn't seem to say what plugin is missing.</p>
<p dir="auto">If you require any additional information, let me know.</p>
]]></description><link>https://forum.qt.io/topic/99013/cmake-mxe-qt-for-static-cross-compiling-how-do-we-add-plugins-statically</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 02:03:59 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/99013.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Jan 2019 18:42:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CMake+MXE+Qt for static cross compiling. How do we add plugins statically? on Sun, 27 Jan 2019 21:21:56 GMT]]></title><description><![CDATA[<p dir="auto">It's a work in progress so the problem is being fixed.</p>
<p dir="auto">As the error states: it can find the windows backend and the list of available plugins is empty.</p>
]]></description><link>https://forum.qt.io/post/507617</link><guid isPermaLink="true">https://forum.qt.io/post/507617</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 27 Jan 2019 21:21:56 GMT</pubDate></item><item><title><![CDATA[Reply to CMake+MXE+Qt for static cross compiling. How do we add plugins statically? on Sun, 27 Jan 2019 22:09:21 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> . The versions seem pretty off for the patches. MXE uses Qt 5.11.2 currently. Also not sure this will work with MXE.</p>
<p dir="auto">The issue has been open for 5 years! Is there any hope for this to get solved without me patching systems manually?</p>
<p dir="auto">Of course all this assumes this is the issue causing the problem. Still not sure. The biggest problem there is that the error doesn't show what plugin is causing the issue.</p>
]]></description><link>https://forum.qt.io/post/507616</link><guid isPermaLink="true">https://forum.qt.io/post/507616</guid><dc:creator><![CDATA[SamerAfach]]></dc:creator><pubDate>Sun, 27 Jan 2019 22:09:21 GMT</pubDate></item><item><title><![CDATA[Reply to CMake+MXE+Qt for static cross compiling. How do we add plugins statically? on Sun, 27 Jan 2019 20:58:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Could be related to <a href="https://bugreports.qt.io/browse/QTBUG-38913" target="_blank" rel="noopener noreferrer nofollow ugc">QTBUG-38913</a>. See the patches associated with it.</p>
]]></description><link>https://forum.qt.io/post/507611</link><guid isPermaLink="true">https://forum.qt.io/post/507611</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 27 Jan 2019 20:58:39 GMT</pubDate></item></channel></rss>