<?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[Problem with Qt6 Xdg plugin&#x27;s RPATH in deployment]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Using <code>Arch Linux ARM aarch64, Kernel: Linux 6.17.0, Qt: 6.10.2, Desktop: LXQt 2.3.0</code>.<br />
When I had tried to use Qt CMake deployment functions to deploy my application, like this:</p>
<pre><code>qt_add_executable(FreePictureSplitter xxx.cpp)
qt_generate_deploy_app_script(
    TARGET FreePictureSplitter
    OUTPUT_SCRIPT deploy_script
    NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})
</code></pre>
<p dir="auto">I encountered an error which halted the deployment process:</p>
<pre><code>-- Installing: /opt/FreePictureSplitter/lib/qt6/plugins/iconengines/libQt6XdgIconPlugin.so
CMake Error at /usr/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:139 (file):
  file RPATH_SET could not write new RPATH:

    $ORIGIN/../../../

  to the file:

    /opt/FreePictureSplitter/lib/qt6/plugins/iconengines/libQt6XdgIconPlugin.so

  No valid ELF RPATH or RUNPATH entry exists in the file;
Call Stack (most recent call first):
  /usr/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:597 (_qt_internal_set_rpath)
  /usr/lib/cmake/Qt6Core/Qt6CoreDeploySupport.cmake:852 (_qt_internal_generic_deployqt)
  .qt/deploy_FreePictureSplitter_843d65e738.cmake:5 (qt6_deploy_runtime_dependencies)
  src/cmake_install.cmake:105 (include)
  cmake_install.cmake:47 (include)
</code></pre>
<p dir="auto">The command</p>
<pre><code>readelf -d /usr/lib/qt6/plugins/iconengines/libQt6XdgIconPlugin.so
</code></pre>
<p dir="auto">printed</p>
<pre><code>Dynamic section at offset 0xfcd8 contains 30 entries:
  Tag        Type                        Name/Value
 0x0000000000000001 (NEEDED)             Shared library：[libQt6XdgIconLoader.so.4]
 0x0000000000000001 (NEEDED)             Shared library：[libQt6Gui.so.6]
 0x0000000000000001 (NEEDED)             Shared library：[libQt6Core.so.6]
 0x0000000000000001 (NEEDED)             Shared library：[libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library：[libc.so.6]
 0x000000000000000c (INIT)               0x10e8
 0x000000000000000d (FINI)               0x16ac
 0x0000000000000019 (INIT_ARRAY)         0x1fbf0
 0x000000000000001b (INIT_ARRAYSZ)       16 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x1fc00
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
 0x000000006ffffef5 (GNU_HASH)           0x2a8
 0x0000000000000005 (STRTAB)             0x618
 0x0000000000000006 (SYMTAB)             0x2d0
 0x000000000000000a (STRSZ)              1102 (bytes)
 0x000000000000000b (SYMENT)             24 (bytes)
 0x0000000000000003 (PLTGOT)             0x1ff08
 0x0000000000000002 (PLTRELSZ)           192 (bytes)
 0x0000000000000014 (PLTREL)             RELA
 0x0000000000000017 (JMPREL)             0x1028
 0x0000000000000007 (RELA)               0xb60
 0x0000000000000008 (RELASZ)             1224 (bytes)
 0x0000000000000009 (RELAENT)            24 (bytes)
 0x000000000000001e (FLAGS)              BIND_NOW
 0x000000006ffffffb (FLAGS_1)            Flags： NOW
 0x000000006ffffffe (VERNEED)            0xab0
 0x000000006fffffff (VERNEEDNUM)         4
 0x000000006ffffff0 (VERSYM)             0xa66
 0x000000006ffffff9 (RELACOUNT)          21
 0x0000000000000000 (NULL)               0x0
</code></pre>
<p dir="auto">There's no rpath info. What should I do?</p>
]]></description><link>https://forum.qt.io/topic/164278/problem-with-qt6-xdg-plugin-s-rpath-in-deployment</link><generator>RSS for Node</generator><lastBuildDate>Thu, 07 May 2026 08:49:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164278.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Feb 2026 14:07:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with Qt6 Xdg plugin&#x27;s RPATH in deployment on Wed, 01 Apr 2026 17:14:54 GMT]]></title><description><![CDATA[<p dir="auto">The problem is that <code>RPATH_SET</code> can't set a RUNPATH if it doesn't already exist. It will only overwrite an existing value.</p>
<p dir="auto"><code>patchelf</code>, however, will do this. So, as <a class="plugin-mentions-user plugin-mentions-a" href="/user/yan12125">@<bdi>yan12125</bdi></a> says, <code>QT_DEPLOY_USE_PATCHELF=ON</code> should work.</p>
]]></description><link>https://forum.qt.io/post/837489</link><guid isPermaLink="true">https://forum.qt.io/post/837489</guid><dc:creator><![CDATA[kevin009]]></dc:creator><pubDate>Wed, 01 Apr 2026 17:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with Qt6 Xdg plugin&#x27;s RPATH in deployment on Sun, 22 Feb 2026 05:55:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi, LXQt co-maintainer here. I suspect there is something wrong in Qt's CMake files. As discussed at <a href="https://github.com/lxqt/libqtxdg/issues/329" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/lxqt/libqtxdg/issues/329</a>, <code>RPATH_SET</code> is an undocumented CMake command as mentioned at <a href="https://code.qt.io/cgit/qt/qtbase.git/commit/?id=5430fb22439db9fc1ad1df4cbf0319b63346b0a5" target="_blank" rel="noopener noreferrer nofollow ugc">https://code.qt.io/cgit/qt/qtbase.git/commit/?id=5430fb22439db9fc1ad1df4cbf0319b63346b0a5</a>. Moreover, the fallback patchelf approach (<code>-DQT_DEPLOY_USE_PATCHELF=ON</code>), works without an error. Maybe Qt should always use patchelf.</p>
]]></description><link>https://forum.qt.io/post/836481</link><guid isPermaLink="true">https://forum.qt.io/post/836481</guid><dc:creator><![CDATA[yan12125]]></dc:creator><pubDate>Sun, 22 Feb 2026 05:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with Qt6 Xdg plugin&#x27;s RPATH in deployment on Wed, 18 Feb 2026 08:24:24 GMT]]></title><description><![CDATA[<p dir="auto">However I continuously received that error on libraries not belonging to Qt itself. For example, <code>/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so</code> doesn't have RPATH information, either. I'd like to ask if there's a way to limit the generic Qt deploy tool to certain Qt libraries?</p>
]]></description><link>https://forum.qt.io/post/836368</link><guid isPermaLink="true">https://forum.qt.io/post/836368</guid><dc:creator><![CDATA[Grit Clef]]></dc:creator><pubDate>Wed, 18 Feb 2026 08:24:24 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with Qt6 Xdg plugin&#x27;s RPATH in deployment on Wed, 18 Feb 2026 03:00:32 GMT]]></title><description><![CDATA[<p dir="auto">Reported, thanks.</p>
]]></description><link>https://forum.qt.io/post/836365</link><guid isPermaLink="true">https://forum.qt.io/post/836365</guid><dc:creator><![CDATA[Grit Clef]]></dc:creator><pubDate>Wed, 18 Feb 2026 03:00:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with Qt6 Xdg plugin&#x27;s RPATH in deployment on Tue, 17 Feb 2026 15:36:51 GMT]]></title><description><![CDATA[<p dir="auto">You should it report to your distro packager or the author: <a href="https://github.com/lxqt/libqtxdg" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/lxqt/libqtxdg</a><br />
This is not a plugin shipped directly with Qt.</p>
]]></description><link>https://forum.qt.io/post/836354</link><guid isPermaLink="true">https://forum.qt.io/post/836354</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Tue, 17 Feb 2026 15:36:51 GMT</pubDate></item></channel></rss>