Skip to content

Deployment

Mátyás Mustoha edited this page May 24, 2017 · 2 revisions

Qt uses lots of modules, plugins and QML files, which makes it somewhat hard to create deployable packages. Fortunately, there are tools that can collect the necessary files for you.

See the general Qt documentation here, especially the platform-specific notes. Since most of the details are described there, I'll just list the commands I usually use.

Linux

I'm using linuxdeployqt.

./linuxdeployqt-continuous-x86_64.AppImage \
    -qmldir <build dir> \
    -bundle-non-qt-libs \
    <install dir>

cp /path/to/libQt5Svg.so.5 ./lib/

./linuxdeployqt-continuous-x86_64.AppImage \
    -appimage \
    <install dir>

Windows

 windeployqt
      --release
      --qmldir <build dir>
      --no-translations
      --no-opengl-sw
      <installation dir>

mocOS

Haven't tried yet. macdeployqt should work in theory.

Clone this wiki locally