Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build linux-arm64v8 with Ubuntu Bionic #86

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build/lin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ VERSION_EXIF=0.6.22
VERSION_LCMS2=2.11
VERSION_JPEG=2.0.6
VERSION_PNG16=1.6.37
VERSION_SPNG=0.6.1
VERSION_WEBP=1.1.0
VERSION_SPNG=0.6.2
VERSION_WEBP=1.2.0
VERSION_TIFF=4.2.0
VERSION_ORC=0.4.32
VERSION_GETTEXT=0.21
Expand All @@ -96,7 +96,7 @@ VERSION_PIXMAN=0.40.0
VERSION_CAIRO=1.17.4
VERSION_FRIBIDI=1.0.10
VERSION_PANGO=1.48.1
VERSION_SVG=2.50.2
VERSION_SVG=2.50.3
VERSION_GIF=5.1.4
VERSION_AOM=2.0.1
VERSION_HEIF=1.10.0
Expand Down
28 changes: 25 additions & 3 deletions linux-arm64v8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye
FROM --platform=linux/amd64 ubuntu:bionic
LABEL maintainer="Lovell Fuller <[email protected]>"

# Create Debian-based container suitable for cross-compiling Linux ARM64v8-A binaries
Expand All @@ -9,10 +9,20 @@ ENV \
CARGO_HOME="/usr/local/cargo" \
PATH="/usr/local/cargo/bin:$PATH"

COPY sources.list /etc/apt/sources.list

# Build dependencies
RUN \
apt-get update && \
apt-get install -y curl && \
apt-get install -y \
curl \
apt-transport-https \
gnupg \
software-properties-common \
&& \
curl https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add - && \
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
Copy link
Author

@milkcocoa milkcocoa Feb 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest CMake version is necessary to build aom for make install/strip

apt-get update && \
dpkg --add-architecture arm64 && \
apt-get update && \
apt-get install -y \
Expand All @@ -21,7 +31,8 @@ RUN \
autopoint \
brotli \
cmake \
crossbuild-essential-arm64 \
dpkg-cross \
g++-8-aarch64-linux-gnu \
gettext \
git \
gobject-introspection \
Expand All @@ -36,6 +47,17 @@ RUN \
python3-pip \
texinfo \
&& \
update-alternatives \
--install /usr/bin/aarch64-linux-gnu-gcc aarch64-linux-gnu-gcc /usr/bin/aarch64-linux-gnu-gcc-8 100 \
--slave /usr/bin/aarch64-linux-gnu-cpp aarch64-linux-gnu-cpp /usr/bin/aarch64-linux-gnu-cpp-8 \
--slave /usr/bin/aarch64-linux-gnu-g++ aarch64-linux-gnu-g++ /usr/bin/aarch64-linux-gnu-g++-8 \
--slave /usr/bin/aarch64-linux-gnu-gcc-ar aarch64-linux-gnu-gcc-ar /usr/bin/aarch64-linux-gnu-gcc-ar-8 \
--slave /usr/bin/aarch64-linux-gnu-gcc-nm aarch64-linux-gnu-gcc-nm /usr/bin/aarch64-linux-gnu-gcc-nm-8 \
--slave /usr/bin/aarch64-linux-gnu-gcc-ranlib aarch64-linux-gnu-gcc-ranlib /usr/bin/aarch64-linux-gnu-gcc-ranlib-8 \
--slave /usr/bin/aarch64-linux-gnu-gcov aarch64-linux-gnu-gcov /usr/bin/aarch64-linux-gnu-gcov-8 \
--slave /usr/bin/aarch64-linux-gnu-gcov-dump aarch64-linux-gnu-gcov-dump /usr/bin/aarch64-linux-gnu-gcov-dump-8 \
--slave /usr/bin/aarch64-linux-gnu-gcov-tool aarch64-linux-gnu-gcov-tool /usr/bin/aarch64-linux-gnu-gcov-tool-8 \
&& \
curl https://sh.rustup.rs -sSf | sh -s -- -y \
--no-modify-path \
--profile minimal \
Expand Down
11 changes: 11 additions & 0 deletions linux-arm64v8/sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# https://gist.github.com/josephlr/5034c933bbcfddc25a9275037821b048

deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse

deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe multiverse
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb [arch=arm64,armhf,ppc64el,s390x] http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe multiverse