linuxdeployqt takes an application as input and makes it self-contained by copying in the Qt libraries and plugins that the application uses into an [AppDir](http://rox.sourceforge.net/desktop/AppDirs.html) bundle. This can optionally be put into an [AppImage](http://appimage.org/). It is based on macdeployqt in the tools applications of the Qt Toolkit.
* Build and install [patchelf](https://nixos.org/patchelf.html) (a small utility to modify the dynamic linker and RPATH of ELF executables; similar to `install_name_tool` on macOS). To learn more about this, see http://blog.qt.io/blog/2011/10/28/rpath-and-runpath/