Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.76 KB

BUILDING.md

File metadata and controls

32 lines (24 loc) · 1.76 KB

Building from source

If you just would like to bundle your application, it is normally not necessary that you build linuxdeployqt yourself. Instead, download linuxdeployqt-x86_64.AppImage from the Releases page and chmod a+x it. This bundle, by the way, has been generated using linuxdeployqt itself as part of our Travis CI continuous build pipeline.

So, if you still think you would like to compile from source, here are the steps:

  • Get and build linuxdeployqt e.g., using Qt 5.7.0 (you could use this Qt Creator AppImage for this)
sudo apt-get -y install git g++ libgl1-mesa-dev
git clone https://github.com/probonopd/linuxdeployqt.git
# Then build in Qt Creator, or use
export PATH=/tmp/.mount_QtCreator-*-x86_64/5.7/gcc_64/bin/:$PATH
cd linuxdeployqt
qmake linuxdeployqt.pro
make
wget https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.bz2
tar xf patchelf-0.9.tar.bz2
( cd patchelf-0.9/ && ./configure  && make && sudo make install )
  • Optional if you want to generate AppImages: Download appimagetool and put it into your $PATH, e.g., into /usr/local/bin. Make sure it is renamed to appimagetool and is chmod a+x
sudo wget -c "https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" -O /usr/local/bin/appimagetool
sudo chmod a+x /usr/local/bin/appimagetool