Skip to content

Commit b943241

Browse files
authored
Provide instructions on how to build an AppImage
1 parent d724016 commit b943241

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# FROM ubuntu:xenial
2+
# i.e.: docker run -it ubuntu:xenial
3+
# linuxdeployqt requires xenial in order to support older systems
4+
# however depthmapX requires cmake >= 1.13 and qt > 5.6
5+
6+
apt-get -y update && apt-get install -y software-properties-common
7+
add-apt-repository --yes ppa:beineri/opt-qt-5.15.0-xenial
8+
add-apt-repository --yes ppa:deadsnakes/ppa
9+
add-apt-repository ppa:andrew-fuller/cmake
10+
apt-get -y update && apt-get install -y gcc g++ make git libgl1-mesa-dev libglu1-mesa-dev python3.5 clang vim wget qt5153d cmake build-essential qt515tools
11+
export PATH="/opt/qt515/bin/:$PATH"
12+
13+
mkdir /mnt/code
14+
cd /mnt/code
15+
git clone https://github.com/SpaceGroupUCL/depthmapX
16+
mkdir depthmapX/build
17+
cd depthmapX/build
18+
cmake -DCMAKE_BUILD_TYPE=Release ..
19+
make -j$(nproc)
20+
21+
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
22+
mkdir appdir
23+
cp depthmapX/depthmapX appdir/
24+
cp ../tools/build-appimage/depthmapX.desktop appdir/
25+
mkdir -p appdir/usr/share/icons/depthmapX/128x128/
26+
cp ../depthmapX/images/depthmapX-128x128.png appdir/usr/share/icons/depthmapX/128x128/depthmapX.png
27+
export VERSION=0.8.0 # this is where linuxdeployqt gets the application version (not the .desktop file)
28+
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract-and-run appdir/depthmapX.desktop -appimage
29+
30+
# docker ps # to see all containers
31+
# docker cp <docker id>:/mnt/code/depthmapX/build/depthmapX-0.8.0-x86_64.AppImage .

0 commit comments

Comments
 (0)