Laboratorium Komputerowe Progmar
Marcin Załęczny

We are using cookies in the page. If you use the page you agree for the cookies.      Close

How to build linuxdeploy program with linuxdeploy-plugin-appimage plugin

  1. Create directory for program sources:
    mkdir sources
    cd sources
  2. Download linuxdeploy program sources: git clone https://github.com/linuxdeploy/linuxdeploy.git
  3. Go into linuxdeploy/libs subdirectory:
    cd linuxdeploy/libs
  4. Download linuxdeploy-plugin-appimage plugin sources:
    git clone https://github.com/linuxdeploy/linuxdeploy-plugin-appimage.git
  5. Go to main drectory of linuxdeploy program (sources/linuxdeploy) and issue following command to download remaining plugins:
    cd ..
    git submodule update --init --recursive
  6. Make generate-excludelist.sh script executable:
    chmod 755 src/core/generate-excludelist.sh
  7. Edit CMakeLists file and replace following line:
    set(USE_SYSTEM_CIMG ON CACHE BOOL "Set to OFF to use CImg library bundled in lib directory")
    with line:
    set(USE_SYSTEM_CIMG OFF CACHE BOOL "Set to OFF to use CImg library bundled in lib directory")
  8. Create build subdirectory for the output binaries, cd into it and call build command:
    mkdir build
    cd build
    cmake ..
    make
  9. If you encounter errors of following type:
    cc1: all warnings being treated as errors
    what takes place in Ubuntu 21.10 and newer, then issue in current directory (build) command as below:
    grep -r "Werror" *
    and next in all files found replace string:
    -Werror -Wno-error=dangling-else
    with:
    -Wno-error
    and after that changes compile application again.
  10. After successful compilation linuxdeploy program will be placed in subdirectory:
    bin

How to build all parts linuxdeploy / linuxdeploy-plugin-appimage plugin / AppImageKit from scratch (most recent versions)

linuxdeploy sources are here:

git clone https://github.com/linuxdeploy/linuxdeploy.git

linuxdeploy appimage plugin sources are here:

git clone https://github.com/linuxdeploy/linuxdeploy-plugin-appimage.git
cd linuxdeploy-plugin-appimage/lib
rm -rf args
git clone https://github.com/Taywee/args.git

AppImageKit is here:

git clone https://github.com/AppImage/AppImageKit.git

Compilation process:

  1. cd linuxdeploy
  2. git submodule update --init --recursive
    It can takes quite a lot of time so be patient and don't stop the process
  3. mkdir build
  4. cd build
  5. cmake ..
  6. make
  7. If you encounter errors of following type:
    cc1: all warnings being treated as errors
    what takes place in Ubuntu 21.10 and newer, then issue in current directory (build) command as below:
    grep -r "Werror" *
    and next in all files found replace string:
    -Werror -Wno-error=dangling-else
    with:
    -Wno-error
    and after that changes compile application again.
  8. sudo cp bin/* /usr/local/bin/
  1. cd linuxdeploy-plugin-appimage
  2. mkdir build
  3. cd build
  4. cmake ..
  5. make
  6. sudo cp src/linuxdeploy-plugin-appimage /usr/local/bin/
  1. cd AppImageKit
  2. ./build.sh (build process requires internet connection)
  3. sudo mkdir /usr/local/lib/appimagekit
  4. sudo cp build/mksquashfs-prefix/mksquashfs /usr/local/lib/appimagekit/
  5. sudo cp build/src/appimagetool /usr/local/bin/
All other requirements you can install directly from Ubuntu repositories. Compilation process will complain about what is required else.