<?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[Cross Build]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have a project, where I cross compile windows binaries from a docker container which runs linux. Now, I want to add a small GUI that uses qt (makes use of Widgets, Core, and Concurrent). I found a documentation that instructs me to first have a minimum qt host installation using:</p>
<pre><code>/qt/configure -developer-build -nomake tests
</code></pre>
<p dir="auto">Unfortunately this build creates some warnings that are probably new in gcc 16.1 (-Werror=maybe-uninitialized, -Wsfinae-incomplete=). and as the compiler is configured to treat warnings as errors, the build fails.</p>
<p dir="auto">I tried to find other minimal qt host installations like:</p>
<pre><code>/qt/configure -no-prefix -init-submodules -submodules qttools -release
</code></pre>
<p dir="auto">Which allows me later, to build the cross build qt library:</p>
<pre><code>cmake -S .. -B . \
        -DCMAKE_TOOLCHAIN_FILE=/toolchain-mingw64.cmake \
        -DQT_HOST_PATH=/QtHostBuild/ \
        -DQT_HOST_PATH_CMAKE_DIR=/QtHostBuild/qtbase/ \
        -DQT_BUILD_SUBMODULES=qtbase \
        -G Ninja
cmake --build . --parallel
cmake --install .
</code></pre>
<p dir="auto">But this also fails later, when I try to build my little project against Qt:</p>
<pre><code>find_package(Qt6 REQUIRED COMPONENTS Widgets Concurrent CONFIG)
</code></pre>
<p dir="auto">Results in `Qt6WidgetsToolsConfig.cmake´ not being found, when dependencies of Qt6Widgets are resolved.</p>
<p dir="auto">What are submodules and which submodules do I need to specify in the build, to have access to the components Widgets and Concurrent?</p>
<p dir="auto">TIA<br />
Torsten</p>
<p dir="auto">Version used: 6.11.1<br />
compiler gcc 16.1.</p>
]]></description><link>https://forum.qt.io/topic/164833/cross-build</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 04:58:08 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164833.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Jun 2026 11:23:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cross Build on Tue, 30 Jun 2026 19:15:22 GMT]]></title><description><![CDATA[<p dir="auto">Right ! Sorry, I had your host and target build mixed.</p>
<p dir="auto">For other readers, there's also this important note about the minimal host build suggested there:</p>
<pre><code>This build won't be suitable for developing Qt programs for your host platform, but it will contain the tools necessary to cross-build Qt.
</code></pre>
]]></description><link>https://forum.qt.io/post/838922</link><guid isPermaLink="true">https://forum.qt.io/post/838922</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 30 Jun 2026 19:15:22 GMT</pubDate></item><item><title><![CDATA[Reply to Cross Build on Tue, 30 Jun 2026 18:21:38 GMT]]></title><description><![CDATA[<p dir="auto">According to the official documentation, I should use it for cross builds: <a href="https://doc.qt.io/qt-6/cross-compiling-qt.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/cross-compiling-qt.html</a></p>
]]></description><link>https://forum.qt.io/post/838920</link><guid isPermaLink="true">https://forum.qt.io/post/838920</guid><dc:creator><![CDATA[Torsten Robitzki]]></dc:creator><pubDate>Tue, 30 Jun 2026 18:21:38 GMT</pubDate></item><item><title><![CDATA[Reply to Cross Build on Tue, 30 Jun 2026 14:31:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Glad you found out and thanks for sharing.</p>
<p dir="auto">One thing, don't use the <code>-developer-build</code> unless you plan to hack on Qt itself.</p>
]]></description><link>https://forum.qt.io/post/838918</link><guid isPermaLink="true">https://forum.qt.io/post/838918</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 30 Jun 2026 14:31:26 GMT</pubDate></item><item><title><![CDATA[Reply to Cross Build on Tue, 30 Jun 2026 14:13:51 GMT]]></title><description><![CDATA[<p dir="auto">Problem solved, I had to (of cause) tell the build, that the host tools are outside of the scope of the build, by setting <code>QT_HOST_PATH</code>.</p>
]]></description><link>https://forum.qt.io/post/838917</link><guid isPermaLink="true">https://forum.qt.io/post/838917</guid><dc:creator><![CDATA[Torsten Robitzki]]></dc:creator><pubDate>Tue, 30 Jun 2026 14:13:51 GMT</pubDate></item></channel></rss>