Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windeployqt.exe on Linux Distributions

In windows you can run windeployqt.exe to approximate the library, qml, and plugin dependencies of a Qt application.

In Linux I can use ldd to determine library dependencies, but I have not found a way to establish which additional Qml files need to be present as well as which plugins I should include in my installer. Any suggestions?

like image 427
Matthew Hoggan Avatar asked Aug 31 '15 18:08

Matthew Hoggan


People also ask

How do I run Windeployqt?

0 The simplest way to use windeployqt is to add the bin directory of your Qt installation (e.g. <QT_DIR\bin>) to the PATH variable and then run: windeployqt <path-to-app-binary> If ICU, etc. are not in the bin directory, they need to be in the PATH variable.


1 Answers

There is the linuxdeployqt project on github, which can be helpful.

From looking at linuxdeployqt code it seems:

  • finding the list of plugins is done by parsing the linked libraries
  • qml files are parsed with qmlimportscanner. Here's the comment from code:

    Scan qml files in qmldirs for import statements, deploy used imports from Qml2ImportsPath to ./qml

like image 120
AMA Avatar answered Oct 17 '22 03:10

AMA