Qt uses lots of modules, plugins and QML files, which makes it somewhat hard to create deployable packages manually. 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.


Static builds

If you've manually built Qt as a static library, a simple make install will likely be enough.

You can use linuxdeployqt to create AppImages:

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

cp /path/to/ ./lib/

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


      --qmldir <build dir>
      <installation dir>


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