Meson cross platform compiling arm64/v8 #3716
michielswaanen
started this conversation in
Help wanted
Replies: 1 comment 1 reply
-
The salient part of the build log is:
I think this would probably fix that: --- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@ FROM --platform=linux/arm64/v8 alpine:3.18
ARG VIPS_VERSION=8.14.5
ARG ALPINE_VERSION=3.18
-ARG PDFIUM_VERSION=6043
+ARG PDFIUM_VERSION=6070
# Environment variables
ENV VIPS_HOME=/usr/local/vips-${VIPS_VERSION}
@@ -17,7 +17,7 @@ WORKDIR $WORKDIR
RUN mkdir pdfium-${PDFIUM_VERSION} \
&& cd pdfium-${PDFIUM_VERSION} \
- && wget https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-linux-musl-x64.tgz \
+ && wget https://github.com/bblanchon/pdfium-binaries/releases/download/chromium/${PDFIUM_VERSION}/pdfium-linux-musl-arm64.tgz \
#######################
# Pdfium setup #
@@ -25,7 +25,7 @@ RUN mkdir pdfium-${PDFIUM_VERSION} \
&& mkdir -p $PKG_CONFIG_PATH \
&& cd $VIPS_HOME \
- && tar -xf $WORKDIR/pdfium-$PDFIUM_VERSION/pdfium-linux-musl-x64.tgz \
+ && tar -xf $WORKDIR/pdfium-$PDFIUM_VERSION/pdfium-linux-musl-arm64.tgz \
&& echo "prefix=$VIPS_HOME" >> lib/pkgconfig/pdfium.pc \
&& echo "exec_prefix=\${prefix}" >> lib/pkgconfig/pdfium.pc \
&& echo "libdir=\${exec_prefix}/lib" >> lib/pkgconfig/pdfium.pc \ (untested) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Meson
It seems like
meson compile
isn't able to handlelinux/arm64/v8
as a platform.Advice on what dependencies I should add to make the arm64v8 build succeed are welcome.
Dockerfile
Currently the Dockerfile works for
linux/amd64
platformsDocker log
This is the whole log of the 3rd step in the Dockerfile.
The error is at the end.
Beta Was this translation helpful? Give feedback.
All reactions