mirror of
https://github.com/simon987/sist2-build-arm64.git
synced 2025-12-16 08:49:05 +00:00
arm64 fix
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM ubuntu:20.04
|
||||
FROM --platform="linux/arm64/v8" ubuntu:20.04
|
||||
|
||||
MAINTAINER simon987 <me@simon987.net>
|
||||
|
||||
@@ -8,12 +8,11 @@ RUN DEBIAN_FRONTEND="noninteractive" apt install -y pkg-config python3 python3-p
|
||||
yasm ragel automake autotools-dev wget libtool libssl-dev \
|
||||
curl zip unzip tar xorg-dev libglu1-mesa-dev libxcursor-dev \
|
||||
libxml2-dev libxinerama-dev libcurl4-openssl-dev gettext \
|
||||
gcc g++ git make \
|
||||
gcc g++ git make bison \
|
||||
&& apt clean
|
||||
|
||||
# cmake
|
||||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.2/cmake-3.20.2.tar.gz && \
|
||||
tar -xzf cmake-*.tar.gz && cd cmake-* && ./bootstrap && make -j4 && make install && rm -rf /cmake-*
|
||||
RUN curl -L https://github.com/Kitware/CMake/releases/download/v3.21.4/cmake-3.21.4-linux-aarch64.tar.gz | tar -xzf - --strip-components=1 -C /usr/
|
||||
|
||||
# Ninja
|
||||
RUN git clone git://github.com/ninja-build/ninja.git && \
|
||||
@@ -31,7 +30,7 @@ RUN cd vcpkg && ./bootstrap-vcpkg.sh
|
||||
ADD patches/* /
|
||||
RUN patch -p0 < mupdf-curl-dep.patch
|
||||
RUN patch -p0 < mongoose-master.patch
|
||||
RUN patch -p0 < glib-meson-fix.patch
|
||||
RUN cd /vcpkg/ && patch -p1 < ../glib-meson-fix.patch
|
||||
|
||||
RUN VCPKG_FORCE_SYSTEM_BINARIES=true ./vcpkg/vcpkg install \
|
||||
curl[core,openssl] \
|
||||
@@ -40,3 +39,8 @@ RUN VCPKG_FORCE_SYSTEM_BINARIES=true ./vcpkg/vcpkg install \
|
||||
RUN mkdir /vcpkg/downloads; VCPKG_FORCE_SYSTEM_BINARIES=true ./vcpkg/vcpkg install \
|
||||
lmdb cjson glib brotli libarchive[core,bzip2,libxml2,lz4,lzma,lzo] pthread tesseract libxml2 libmupdf gtest mongoose libuuid libmagic libraw jasper lcms gumbo \
|
||||
&& rm -rf /root/.cache/vcpkg /vcpkg/downloads /vcpkg/buildtrees /vcpkg/downloads
|
||||
|
||||
RUN mkdir -p /debug/lib/ && mkdir -p /include && \
|
||||
cp -r /vcpkg/installed/arm64-linux/include/cjson/ /include/ && \
|
||||
cp /vcpkg/installed/arm64-linux/debug/lib/libcjson.a /debug/lib/ && \
|
||||
cp /vcpkg/installed/arm64-linux/lib/libcjson.a /lib/
|
||||
|
||||
Reference in New Issue
Block a user