Skip to content

Commit a08ebbe

Browse files
committed
feat: Add Raspberry Pi cross compilation images for qtox.
1 parent f911be5 commit a08ebbe

4 files changed

Lines changed: 116 additions & 0 deletions

File tree

‎.github/workflows/docker.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ jobs:
132132
- alpine-appimage
133133
- alpine-static
134134
- debian
135+
- debian-pi-cross-armhf
136+
- debian-pi-cross-arm64
135137
- fedora
136138
- flatpak-builder
137139
- ubuntu-lts

‎docker-compose.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ services:
5757
debian:
5858
image: ghcr.io/toktok/qtox:debian
5959
<<: *shared_params
60+
debian-pi-cross-armhf:
61+
image: ghcr.io/toktok/qtox:debian-pi-cross-armhf
62+
<<: *shared_params
63+
debian-pi-cross-arm64:
64+
image: ghcr.io/toktok/qtox:debian-pi-cross-arm64
65+
<<: *shared_params
6066
fedora:
6167
image: ghcr.io/toktok/qtox:fedora
6268
<<: *shared_params
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Dockerfile.debian-pi-cross-arm64
2+
# Cross-compilation environment for Raspberry Pi (ARM64) based on Debian Bookworm
3+
4+
FROM debian:bookworm
5+
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
8+
RUN dpkg --add-architecture arm64 && \
9+
apt-get update
10+
11+
# Install native amd64 build tools
12+
RUN apt-get install -y --no-install-recommends \
13+
build-essential \
14+
crossbuild-essential-arm64 \
15+
cmake \
16+
git \
17+
pkg-config \
18+
ninja-build \
19+
dpkg-dev \
20+
debhelper \
21+
qt6-base-dev \
22+
qt6-tools-dev \
23+
qt6-tools-dev-tools \
24+
ca-certificates
25+
26+
# Install target dependencies for arm64
27+
RUN apt-get install -y --no-install-recommends \
28+
pkg-config:arm64 \
29+
qt6-base-dev:arm64 \
30+
libqt6svg6-dev:arm64 \
31+
qt6-tools-dev:arm64 \
32+
libavcodec-dev:arm64 \
33+
libavdevice-dev:arm64 \
34+
libavformat-dev:arm64 \
35+
libavutil-dev:arm64 \
36+
libswscale-dev:arm64 \
37+
libexif-dev:arm64 \
38+
libqrencode-dev:arm64 \
39+
libsqlcipher-dev:arm64 \
40+
libssl-dev:arm64 \
41+
libtoxcore-dev:arm64 \
42+
libsodium-dev:arm64 \
43+
libopus-dev:arm64 \
44+
libvpx-dev:arm64 \
45+
libopenal-dev:arm64 \
46+
libv4l-dev:arm64 \
47+
libx11-dev:arm64 \
48+
libxss-dev:arm64 \
49+
libunwind-dev:arm64 \
50+
&& rm -rf /var/lib/apt/lists/*
51+
52+
WORKDIR /workspace
53+
54+
CMD ["/bin/bash"]
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Dockerfile.debian-pi-cross-armhf
2+
# Cross-compilation environment for Raspberry Pi (ARMHF) based on Debian Bookworm
3+
4+
FROM debian:bookworm
5+
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
8+
RUN dpkg --add-architecture armhf && \
9+
apt-get update
10+
11+
# Install native amd64 build tools
12+
RUN apt-get install -y --no-install-recommends \
13+
build-essential \
14+
crossbuild-essential-armhf \
15+
cmake \
16+
git \
17+
pkg-config \
18+
ninja-build \
19+
dpkg-dev \
20+
debhelper \
21+
qt6-base-dev \
22+
qt6-tools-dev \
23+
qt6-tools-dev-tools \
24+
ca-certificates
25+
26+
# Install target dependencies for armhf
27+
RUN apt-get install -y --no-install-recommends \
28+
pkg-config:armhf \
29+
qt6-base-dev:armhf \
30+
libqt6svg6-dev:armhf \
31+
qt6-tools-dev:armhf \
32+
libavcodec-dev:armhf \
33+
libavdevice-dev:armhf \
34+
libavformat-dev:armhf \
35+
libavutil-dev:armhf \
36+
libswscale-dev:armhf \
37+
libexif-dev:armhf \
38+
libqrencode-dev:armhf \
39+
libsqlcipher-dev:armhf \
40+
libssl-dev:armhf \
41+
libtoxcore-dev:armhf \
42+
libsodium-dev:armhf \
43+
libopus-dev:armhf \
44+
libvpx-dev:armhf \
45+
libopenal-dev:armhf \
46+
libv4l-dev:armhf \
47+
libx11-dev:armhf \
48+
libxss-dev:armhf \
49+
libunwind-dev:armhf \
50+
&& rm -rf /var/lib/apt/lists/*
51+
52+
WORKDIR /workspace
53+
54+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)