From ee91ec2da75cc6a8286b11c49f7a8d96d9c5592f Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 2 Mar 2022 22:45:45 +0100 Subject: [PATCH] Another try 3 for OSS-Fuzz --- unittest/fuzzers/oss-fuzz-build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unittest/fuzzers/oss-fuzz-build.sh b/unittest/fuzzers/oss-fuzz-build.sh index ae685b57..4c64e9f3 100755 --- a/unittest/fuzzers/oss-fuzz-build.sh +++ b/unittest/fuzzers/oss-fuzz-build.sh @@ -18,7 +18,7 @@ cd $SRC/leptonica ./autogen.sh -./configure --disable-shared --without-giflib --without-jpeg --without-libopenjpeg --without-libpng --without-libtiff --without-libwebp --without-libwebpmux +./configure --disable-shared --without-giflib --without-jpeg --without-libopenjpeg --without-libpng --without-libwebp --without-libwebpmux make SUBDIRS=src install -j$(nproc) ldconfig @@ -27,7 +27,8 @@ cd $SRC/tesseract CXXFLAGS="$CXXFLAGS -D_GLIBCXX_DEBUG" ./configure --disable-graphics --disable-shared make -j$(nproc) -cp -R $SRC/tessdata $OUT +mkdir $OUT/tessdata +curl -L -o $OUT/tessdata/eng.traineddata https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata LEPTONICA_LIBS=$(pkg-config --static --libs lept)