<?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, linux, packing all so&#x2F;etc files for distribution... qt missing plugins&#x2F;etc]]></title><description><![CDATA[<p dir="auto">Hey</p>
<p dir="auto">I'm a lil lost, I'm trying to collect all assets for my app in 1 palce &amp; reling executable to be relative based so I can zip it up and give away to people. But I got stuck with relinking...</p>
<p dir="auto">Cmake deploy code &gt;</p>
<pre><code>target_link_options(testApp PRIVATE
        LINKER:-rpath=./
        )
add_custom_target(Deploy ALL
        COMMAND
        ${CMAKE_COMMAND} -E copy $&lt;TARGET_FILE:testApp&gt; ${DEPLOY_DIRECTORY} &amp;&amp;
        cp
        -t ${DEPLOY_DIRECTORY}
\`ldd ${DEPLOY_DIRECTORY}/$&lt;TARGET_FILE_NAME:testApp&gt;|grep -Po "'(?&lt;==&gt;).+(?=\\(0x.+\\))'"\`
        )
</code></pre>
<p dir="auto">Now in root of folder, I have platforms folder.<br />
I also have all .so files in root directory too.</p>
<p dir="auto">But I end up with this error &gt;</p>
<pre><code>Cannot load library /home/dariusz/CLionProjects/testAppSrclibOutput/Debug/platforms/libqxcb.so: (libQt6XcbQpa.so.6: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/home/dariusz/CLionProjects/testAppSrclibOutput/Debug/platforms/libqxcb.so" : "Cannot load library /home/dariusz/CLionProjects/testAppSrclibOutput/Debug/platforms/libqxcb.so: (libQt6XcbQpa.so.6: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Cannot load library /home/dariusz/CLionProjects/testAppSrclibOutput/Debug/platforms/libqwayland-generic.so: (libQt6WaylandClient.so.6: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/home/dariusz/CLionProjects/testAppSrclibOutput/Debug/platforms/libqwayland-generic.so" : "Cannot load library /home/dariusz/CLionProjects/testAppSrclibOutput/Debug/platforms/libqwayland-generic.so: (libQt6WaylandClient.so.6: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.


</code></pre>
<p dir="auto">Any hints/ideas?</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.qt.io/topic/135016/cmake-linux-packing-all-so-etc-files-for-distribution-qt-missing-plugins-etc</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 23:24:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/135016.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Mar 2022 17:20:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cmake, linux, packing all so&#x2F;etc files for distribution... qt missing plugins&#x2F;etc on Mon, 14 Mar 2022 22:41:33 GMT]]></title><description><![CDATA[<p dir="auto">For Linux it depends on what your goal is. If it's package manager integration, more generic, etc.</p>
<p dir="auto">Maybe a silly question but did you reconfigure your project after adding the cpack bits ?</p>
]]></description><link>https://forum.qt.io/post/706389</link><guid isPermaLink="true">https://forum.qt.io/post/706389</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 14 Mar 2022 22:41:33 GMT</pubDate></item><item><title><![CDATA[Reply to Cmake, linux, packing all so&#x2F;etc files for distribution... qt missing plugins&#x2F;etc on Sun, 13 Mar 2022 21:25:36 GMT]]></title><description><![CDATA[<p dir="auto">Hey<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> thanks for the link &amp; tutorial.<br />
Sadly it does not do anything for me, nor the video.<br />
There is no new build targer when I add cpack. I tried it in past, didn't use as it did nothing.</p>
<p dir="auto">I have a complex setup, something somewhere breaks something probably. :- ((((</p>
<p dir="auto">I gotta say, I though that deploying on linux will be easier than windows. But this is just banana stuff. ;/<br />
I'll keep digging.</p>
<p dir="auto">Running install just gives me &gt;<br />
<code>gmake: *** No rule to make target 'install'.  Stop.</code><br />
Whatever cpack is meant to do, it does not make a new target.</p>
]]></description><link>https://forum.qt.io/post/706235</link><guid isPermaLink="true">https://forum.qt.io/post/706235</guid><dc:creator><![CDATA[Dariusz]]></dc:creator><pubDate>Sun, 13 Mar 2022 21:25:36 GMT</pubDate></item><item><title><![CDATA[Reply to Cmake, linux, packing all so&#x2F;etc files for distribution... qt missing plugins&#x2F;etc on Sun, 13 Mar 2022 19:57:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You might be interested by this <a href="https://www.ics.com/blog/revisiting-qt-installer-framework-cmake" target="_blank" rel="noopener noreferrer nofollow ugc">article form ICS</a> about handling the deployment of application using Qt's installer framework.</p>
]]></description><link>https://forum.qt.io/post/706226</link><guid isPermaLink="true">https://forum.qt.io/post/706226</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 13 Mar 2022 19:57:05 GMT</pubDate></item></channel></rss>