Skip to content

Commit

Permalink
* Fix crash in Leptonica on CentOS 6 by downgrading to libpng 1.5.30…
Browse files Browse the repository at this point in the history
… (issue #680)
  • Loading branch information
saudet committed Jan 31, 2019
1 parent 81ceef9 commit 07dc91e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Fix crash in Leptonica on CentOS 6 by downgrading to libpng 1.5.30 ([issue #680](https://github.com/bytedeco/javacpp-presets/issues/680))
* Add `GetComponentImagesExample`, `IteratorOverClassifierChoicesExample`, `OrientationAndScriptDetectionExample`, and `ResultIteratorExample` for Tesseract ([pull #673](https://github.com/bytedeco/javacpp-presets/pull/673) and [pull #675](https://github.com/bytedeco/javacpp-presets/pull/675))
* Add presets for NCCL 2.3.7, nGraph 0.11.1 ([pull #642](https://github.com/bytedeco/javacpp-presets/pull/642)), Qt 5.12 ([pull #674](https://github.com/bytedeco/javacpp-presets/pull/674))
* Upgrade presets for ARPACK-NG 3.7.0, MXNet 1.4.0.rc2, TensorFlow 1.13.0-rc0, ONNX 1.4.0 ([pull #676](https://github.com/bytedeco/javacpp-presets/pull/676)), and their dependencies including NCCL
Expand Down
14 changes: 7 additions & 7 deletions leptonica/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ fi
ZLIB=zlib-1.2.11
GIFLIB=giflib-5.1.4
LIBJPEG=libjpeg-turbo-1.5.3
LIBPNG=libpng-1.6.34
LIBPNG=libpng-1.5.30 # libpng16 doesn't work on CentOS 6 for some reason
LIBTIFF=tiff-4.0.9
LIBWEBP=libwebp-1.0.0
LEPTONICA_VERSION=1.77.0
download http://zlib.net/$ZLIB.tar.gz $ZLIB.tar.gz
download http://downloads.sourceforge.net/project/giflib/$GIFLIB.tar.gz $GIFLIB.tar.gz
download http://downloads.sourceforge.net/project/libjpeg-turbo/1.5.3/$LIBJPEG.tar.gz $LIBJPEG.tar.gz
download http://downloads.sourceforge.net/project/libpng/libpng16/1.6.34/$LIBPNG.tar.gz $LIBPNG.tar.gz
download http://downloads.sourceforge.net/project/libpng/libpng15/1.5.30/$LIBPNG.tar.gz $LIBPNG.tar.gz
download http://download.osgeo.org/libtiff/$LIBTIFF.tar.gz $LIBTIFF.tar.gz
download http://downloads.webmproject.org/releases/webp/$LIBWEBP.tar.gz $LIBWEBP.tar.gz
download https://github.com/DanBloomberg/leptonica/releases/download/$LEPTONICA_VERSION/leptonica-$LEPTONICA_VERSION.tar.gz leptonica-$LEPTONICA_VERSION.tar.gz
Expand Down Expand Up @@ -54,7 +54,7 @@ case $PLATFORM in
make -j $MAKEJ
make install
cd ../$LIBPNG
rm contrib/arm-neon/android-ndk.c
rm contrib/arm-neon/android-ndk.c || true
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=arm-linux --with-sysroot="$ANDROID_ROOT" --disable-arm-neon
make -j $MAKEJ
make install
Expand Down Expand Up @@ -93,7 +93,7 @@ case $PLATFORM in
make -j $MAKEJ
make install
cd ../$LIBPNG
rm contrib/arm-neon/android-ndk.c
rm contrib/arm-neon/android-ndk.c || true
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=aarch64-linux --with-sysroot="$ANDROID_ROOT" --disable-arm-neon
make -j $MAKEJ
make install
Expand Down Expand Up @@ -132,7 +132,7 @@ case $PLATFORM in
make -j $MAKEJ
make install
cd ../$LIBPNG
rm contrib/arm-neon/android-ndk.c
rm contrib/arm-neon/android-ndk.c || true
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=i686-linux --with-sysroot="$ANDROID_ROOT"
make -j $MAKEJ
make install
Expand Down Expand Up @@ -170,7 +170,7 @@ case $PLATFORM in
make -j $MAKEJ
make install
cd ../$LIBPNG
rm contrib/arm-neon/android-ndk.c
rm contrib/arm-neon/android-ndk.c || true
./configure --prefix=$INSTALL_PATH --disable-shared --with-pic --host=x86_64-linux --with-sysroot="$ANDROID_ROOT"
make -j $MAKEJ
make install
Expand Down Expand Up @@ -279,7 +279,7 @@ case $PLATFORM in
make -j $MAKEJ
make install
cd ../$LIBPNG
rm contrib/arm-neon/android-ndk.c
rm contrib/arm-neon/android-ndk.c || true
CC="arm-linux-gnueabihf-gcc -fPIC" ./configure --prefix=$INSTALL_PATH CFLAGS="-pthread -I$INSTALL_PATH/include/" LDFLAGS="-L$INSTALL_PATH/lib/" --disable-shared --with-pic --host=arm-linux-gnueabihf --disable-arm-neon
make -j $MAKEJ
make install
Expand Down
2 changes: 1 addition & 1 deletion leptonica/src/main/java/org/bytedeco/javacpp/lept.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.4.4: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.4.5-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.javacpp;

Expand Down

0 comments on commit 07dc91e

Please sign in to comment.