mirror of https://github.com/google/oss-fuzz.git
tesseract-ocr: fix build for latest base builder (#6474)
* tesseract-ocr: fix build for latest base builder * tesseract-ocr: download data
This commit is contained in:
parent
7adb3ac04e
commit
4f9e6563e2
|
@ -14,13 +14,25 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
# Using Ubuntu 16.04 because of breakage on Ubuntu 20.04.
|
||||
# See https://github.com/google/oss-fuzz/issues/6291 for more details.
|
||||
FROM gcr.io/oss-fuzz-base/base-builder:xenial
|
||||
# Delete line above and uncomment line below to upgrade to 20.04.
|
||||
# FROM gcr.io/oss-fuzz-base/base-builder
|
||||
RUN apt-get update && apt-get install -y autoconf automake libtool pkg-config libpng-dev libjpeg8-dev libtiff5-dev zlib1g-dev
|
||||
FROM gcr.io/oss-fuzz-base/base-builder
|
||||
RUN apt-get update && apt-get install -y autoconf automake libtool pkg-config libpng-dev libjpeg8-dev liblzma-dev
|
||||
|
||||
RUN git clone https://www.cl.cam.ac.uk/~mgk25/git/jbigkit jbigkit && \
|
||||
cd jbigkit && \
|
||||
make clean && \
|
||||
make -j$(nproc) lib && \
|
||||
cp libjbig/libjbig.a /usr/lib/x86_64-linux-gnu/libjbig.a
|
||||
|
||||
RUN git clone --depth 1 https://gitlab.com/libtiff/libtiff libtiff && \
|
||||
cd libtiff && \
|
||||
cmake . -DBUILD_SHARED_LIBS=off && \
|
||||
make clean && \
|
||||
make -j$(nproc) && \
|
||||
make install && \
|
||||
cp libtiff/libtiff.a /usr/lib/x86_64-linux-gnu/libtiff.a
|
||||
|
||||
RUN git clone --depth 1 https://github.com/danbloomberg/leptonica
|
||||
RUN git clone --depth 1 https://github.com/tesseract-ocr/tesseract
|
||||
RUN git clone --depth 1 https://github.com/tesseract-ocr/tessdata
|
||||
|
||||
COPY build.sh $SRC/
|
||||
|
|
Loading…
Reference in New Issue