From 31f0beb91e221b29f38d2338e22defc43abdd968 Mon Sep 17 00:00:00 2001 From: tsdgeos Date: Fri, 14 May 2021 22:25:37 +0200 Subject: [PATCH] poppler: Fix build (#5769) --- projects/poppler/Dockerfile | 1 + projects/poppler/build.sh | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/projects/poppler/Dockerfile b/projects/poppler/Dockerfile index c1b0355cf..9f48c6665 100644 --- a/projects/poppler/Dockerfile +++ b/projects/poppler/Dockerfile @@ -30,6 +30,7 @@ ADD http://ftp.gnome.org/pub/gnome/sources/pango/1.48/pango-1.48.0.tar.xz $SRC RUN tar xvJf $SRC/pango-1.48.0.tar.xz ADD https://ftp.gnome.org/pub/gnome/sources/glib/2.64/glib-2.64.2.tar.xz $SRC RUN tar xvJf $SRC/glib-2.64.2.tar.xz +RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2 RUN git clone --depth 1 --single-branch https://gitlab.freedesktop.org/poppler/poppler.git RUN git clone --depth 1 https://github.com/mozilla/pdf.js pdf.js && \ diff --git a/projects/poppler/build.sh b/projects/poppler/build.sh index 23692dd5b..bcd39bb82 100755 --- a/projects/poppler/build.sh +++ b/projects/poppler/build.sh @@ -27,6 +27,14 @@ rm -rf $WORK/* rm -rf $BUILD mkdir -p $BUILD +# Install Boost headers +cd $SRC/ +tar jxf boost_1_76_0.tar.bz2 +cd boost_1_76_0/ +CFLAGS="" CXXFLAGS="" ./bootstrap.sh +CFLAGS="" CXXFLAGS="" ./b2 headers +cp -R boost/ /usr/include/ + pushd $SRC/zlib CFLAGS=-fPIC ./configure --static --prefix=$PREFIX make install -j$(nproc)