<?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[meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope]]></title><description><![CDATA[<p dir="auto">I ran into a problem when cross-building Qt 6.4.2 from source by following <a href="https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi" target="_blank" rel="noopener noreferrer nofollow ugc">Cross-Compile_Qt_6_for_Raspberry_Pi</a>.</p>
<p dir="auto">the cmake produced the following output.</p>
<pre><code>CMake Error at qtbase/cmake/QtPublicTargetHelpers.cmake:257 (set_property):
  Attempt to promote imported target "Threads::Threads" to global scope (by
  setting IMPORTED_GLOBAL) which is not built in this directory.
Call Stack (most recent call first):
  qtbase/cmake/QtFindPackageHelpers.cmake:180 (__qt_internal_promote_target_to_global)
  qtbase/src/corelib/CMakeLists.txt:4 (qt_find_package)
</code></pre>
]]></description><link>https://forum.qt.io/topic/165021/meet-a-problem-when-attempting-to-promote-imported-target-threads-threads-to-global-scope</link><generator>RSS for Node</generator><lastBuildDate>Sun, 20 Sep 2026 11:18:11 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165021.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Aug 2026 15:52:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Sat, 22 Aug 2026 18:33:18 GMT]]></title><description><![CDATA[<p dir="auto">Can you try with a more recent version of Qt ?<br />
While I understand the motivation of staying on certain version, these kind of issue might have already been solved later.</p>
]]></description><link>https://forum.qt.io/post/839829</link><guid isPermaLink="true">https://forum.qt.io/post/839829</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 22 Aug 2026 18:33:18 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Sun, 23 Aug 2026 18:27:18 GMT]]></title><description><![CDATA[<p dir="auto">Excellent !</p>
<p dir="auto">Good luck :-)</p>
]]></description><link>https://forum.qt.io/post/839836</link><guid isPermaLink="true">https://forum.qt.io/post/839836</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 23 Aug 2026 18:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Sat, 22 Aug 2026 18:45:27 GMT]]></title><description><![CDATA[<p dir="auto">I fixed it by checking the latest source code. : )</p>
]]></description><link>https://forum.qt.io/post/839831</link><guid isPermaLink="true">https://forum.qt.io/post/839831</guid><dc:creator><![CDATA[novum]]></dc:creator><pubDate>Sat, 22 Aug 2026 18:45:27 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Sat, 22 Aug 2026 18:33:18 GMT]]></title><description><![CDATA[<p dir="auto">Can you try with a more recent version of Qt ?<br />
While I understand the motivation of staying on certain version, these kind of issue might have already been solved later.</p>
]]></description><link>https://forum.qt.io/post/839829</link><guid isPermaLink="true">https://forum.qt.io/post/839829</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 22 Aug 2026 18:33:18 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Thu, 20 Aug 2026 07:25:46 GMT]]></title><description><![CDATA[<p dir="auto">I migrate my application, originally developed  on Ubuntu 24.04,  from x86 to the RPi5.<br />
I want to use the same Qt version to develop the application for both platforms.</p>
<p dir="auto">I built Qt 6.4.2 from source, as the latest Raspbian ships with Qt 6.8.2.</p>
]]></description><link>https://forum.qt.io/post/839798</link><guid isPermaLink="true">https://forum.qt.io/post/839798</guid><dc:creator><![CDATA[novum]]></dc:creator><pubDate>Thu, 20 Aug 2026 07:25:46 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Wed, 19 Aug 2026 18:50:14 GMT]]></title><description><![CDATA[<p dir="auto">You did not answer about the use of an outdated version of Qt.</p>
]]></description><link>https://forum.qt.io/post/839790</link><guid isPermaLink="true">https://forum.qt.io/post/839790</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 19 Aug 2026 18:50:14 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Wed, 19 Aug 2026 06:01:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> yes, I use two separate build folders. It's in the buildhost directory to build Qt for the host machine, and in the buildrpi5 directory for the rpi5.</p>
]]></description><link>https://forum.qt.io/post/839785</link><guid isPermaLink="true">https://forum.qt.io/post/839785</guid><dc:creator><![CDATA[novum]]></dc:creator><pubDate>Wed, 19 Aug 2026 06:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Tue, 18 Aug 2026 19:00:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Might be a silly question but did you properly use two separate build folders ?<br />
Also why Qt 6.4.2 rather than a current version ?</p>
]]></description><link>https://forum.qt.io/post/839780</link><guid isPermaLink="true">https://forum.qt.io/post/839780</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 18 Aug 2026 19:00:17 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Tue, 18 Aug 2026 17:36:39 GMT]]></title><description><![CDATA[<p dir="auto">the host system is Ubuntu 24.04.<br />
the RPi5 system is Debian Trixie.</p>
]]></description><link>https://forum.qt.io/post/839779</link><guid isPermaLink="true">https://forum.qt.io/post/839779</guid><dc:creator><![CDATA[novum]]></dc:creator><pubDate>Tue, 18 Aug 2026 17:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Tue, 18 Aug 2026 17:33:33 GMT]]></title><description><![CDATA[<p dir="auto">I got sysroot from latest RPi OS image.</p>
<p dir="auto">In the sysroot,  the file /usr/lib/aarch64-linux-gnu/cmake/zstd/zstdConfig.cmake has the following code,</p>
<pre><code>include(CMakeFindDependencyMacro)
if(ON AND "1")
  find_dependency(Threads)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/zstdTargets.cmake")

check_required_components("zstd")
</code></pre>
]]></description><link>https://forum.qt.io/post/839778</link><guid isPermaLink="true">https://forum.qt.io/post/839778</guid><dc:creator><![CDATA[novum]]></dc:creator><pubDate>Tue, 18 Aug 2026 17:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to meet a problem when attempting to promote imported target &quot;Threads::Threads&quot; to global scope on Tue, 18 Aug 2026 15:59:17 GMT]]></title><description><![CDATA[<p dir="auto">find_package(Threads) might have been called in another directory first, and that's why promoting imported target "Threads::Threads" to global scope fails here</p>
]]></description><link>https://forum.qt.io/post/839776</link><guid isPermaLink="true">https://forum.qt.io/post/839776</guid><dc:creator><![CDATA[novum]]></dc:creator><pubDate>Tue, 18 Aug 2026 15:59:17 GMT</pubDate></item></channel></rss>