[Interest] Official linuxdeployqt ?

Scott Bloom scott at towel42.com
Fri Aug 5 18:16:53 CEST 2022


Unfortunately both of these solutions (runtime dependencies and static build) only solve the staticly bound dynamically loaded DLLs

The runtime wont solve plugins, and the deployment tools for windows a not only does the runtime dlls, it also does translations, and other dynamically bound dlls

Scott

From: Cristian Adam <cristian.adam at qt.io>
Sent: Friday, August 5, 2022 1:46 AM
To: Scott Bloom <scott at towel42.com>; interest at qt-project.org
Subject: Re: Official linuxdeployqt ?

Hi,

CMake has since version 3.16 an extension for its file command, namely GET_RUNTIME_DEPENDENCIES<https://cmake.org/cmake/help/latest/command/file.html?#get-runtime-dependencies>.

I used it for Qt Creator to deploy all dependencies on Windows, Linux, macOS from CMake.
As it turns out Qt Creator already had python script for deployment, and the CMake only solution got sacked at
https://codereview.qt-project.org/c/qt-creator/qt-creator/+/322646

It took part of MSVC, or MinGW (both GCC and LLVM flavors) C++ runtime DLLs, but that's more on the Windows side.

Alternatively, you can do a static build and forget about deployment issues 🙂

Cheers,
Cristian.

________________________________
From: Interest <interest-bounces at qt-project.org<mailto:interest-bounces at qt-project.org>> on behalf of Scott Bloom <scott at towel42.com<mailto:scott at towel42.com>>
Sent: Thursday, August 4, 2022 7:42 PM
To: interest at qt-project.org<mailto:interest at qt-project.org> <interest at qt-project.org<mailto:interest at qt-project.org>>
Subject: [Interest] Official linuxdeployqt ?


Is there a Qt supported linuxdeployqt comparable to the windeployqt?

I found the 3rd party version, but the command line args are very different.



Also, is anyone on the Qt side, create a CMake function for this?



Where inside CMake, you could call “DeployQt( <target> )” and it would find all the dependencies and create a list of files in cmake etc



Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20220805/2a43a038/attachment.htm>


More information about the Interest mailing list