Commit Graph

285 Commits

Author SHA1 Message Date
Stefan Weil
86a7bc6c06 Create new release 5.3.0-rc1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-12-13 17:37:35 +01:00
Stefan Weil
6e4de524d0 Replace MacOS -> macOS
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-12-13 17:37:35 +01:00
Stefan Weil
adbefa8316 Fix AMD64 detection with autobuild on FreeBSD (#3964)
Tesseract for FreeBSD was built without support for SSE4.1, AVX,
AVX2 or FMA because it uses a different value for `host_cpu`.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-11-14 18:30:42 +01:00
Fabrice Fontaine
cffb8a36a9 configure.ac: fix build on aarch64_be
Fix the following build failure on aarch64_be:

/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/aarch64_be-none-linux-gnu/10.3.1/../../../../aarch64_be-none-linux-gnu/bin/ld: ./.libs/libtesseract.so: undefined reference to `tesseract::IntSimdMatrix::intSimdMatrixNEON'

Fixes:
 - http://autobuild.buildroot.org/results/b9246a37fcf6be4fabfc491daddadfb09e0a320a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-08-21 10:21:43 +02:00
Stefan Weil
5ad5325a0a Create new release 5.2.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-07-06 22:15:49 +02:00
Robert Clausecker
2e7ae6eeb6
Fix NEON detection on FreeBSD (#3782)
Co-authored-by: Stefan Weil <sw@weilnetz.de>
2022-05-29 19:06:54 +02:00
Stefan Weil
b0d82879e5 Add initial support for Intel AVX512F
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-04-14 23:47:04 +02:00
Stefan Weil
d7373727d6 autoconf: Use more robust code to get git tag
The old code failed with an error message when running in a
git working directory without any tag (for example after
git clone --depth 1).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-03 13:30:54 +01:00
Stefan Weil
c2a3efe282 Create new release 5.1.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-03-01 17:25:45 +01:00
Stefan Weil
a773bf28db Fix linker flags for MSYS2 clang64 builds
MSYS2 clang64 uses the lld linker which does not support --as-needed.
The normal GNU ld uses that linker option with ELF targets but ignores
it for PE targets (.exe, .dll), so it can be removed.

Remove also the -Wl, which is only needed when linker options are
passed to the compiler but not when they are directly passed to the
linker.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-02-27 11:11:40 +01:00
Stefan Weil
22ec41fb66 autoconf: Set PKG_CONFIG_PATH required for Homebrew (macOS)
If no PKG_CONFIG_PATH was provided by the user, it is now set
automatically on hosts which have the `brew` command.

MacOS with Homebrew needs PKG_CONFIG_PATH to find icu4c and libarchive.

Signed-off-by: Stefan Weil <stweil@notebook11.fritz.box>
2022-01-12 18:59:33 +01:00
Gilles Talis
be15b46c60 Check if platform supports feenableexcept
feenableexcept is not supported by uclibc

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
[Retrieved (and updated to add cmake support and simplify configure.ac)
from
https://git.buildroot.net/buildroot/tree/package/tesseract-ocr/0001-Check-if-platform-supports-feenableexcept.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-01-11 15:23:56 +01:00
Stefan Weil
5d5cd77e3d Create new release 5.0.1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2022-01-07 13:43:52 +01:00
Stefan Weil
924b746e6f Create new release 5.0.0
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-30 18:48:16 +01:00
Stefan Weil
ee29fca9ce Create new release 5.0.0-rc3
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-22 22:01:18 +01:00
Stefan Weil
66dc90bc5f Create new release 5.0.0-rc2
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-14 20:04:23 +01:00
Stefan Weil
5884036ecd Don't use compiler flags -march=native -mtune=native in autoconf builds
Using those flags is not acceptable for Linux distributions
because the resulting code then depends on the build
infrastructure, so the build result is not deterministic.

It is still possible to use those compiler flags by specifying
CXXFLAGS.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-11-11 12:29:51 +01:00
Amit D
b77009bd59
configure.ac: Update minimum required autoconf version to 2.69
This version was released in April 2012.

It is supported by old Linux distros like RHEL/CentOS 7, SLES 12 and Ubuntu 14.04.
2021-11-02 15:49:46 +02:00
Stefan Weil
104ef8f30e Move src/api/tesseractmain.cpp to src/tesseract.cpp
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-31 21:43:30 +01:00
Stefan Weil
8b6390846e Create new release 5.0.0-rc1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-29 22:32:11 +02:00
Stefan Weil
676b86be4d Fix automake warning because of redefined DEFAULT_INCLUDES
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-28 22:14:06 +02:00
Stefan Weil
282685d531 Enable fast float32 LSTM by default
It is still possible to build Tesseract with double LSTM:

    # autoconf
    ./configure --disable-float32

    # cmake
    cmake .. -DFAST_FLOAT=ON

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-27 18:37:27 +02:00
Stefan Weil
571a8fe1d7 autotools: Use AM_LDFLAGS for framework Accelerate
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-10-06 07:40:54 +02:00
Stefan Weil
f9d17598a8 Make automake builds less noisy by default
The old commit only silenced parts of the build,
while the new one silences the whole build.

Fixes: 47af1282f4
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-09-24 15:21:26 +02:00
Stefan Weil
75f167ac8c Create new pre-release 5.0.0-beta-20210916
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-09-16 06:35:29 +02:00
Stefan Weil
547164edae Create new pre-release 5.0.0-beta-20210815
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-08-15 17:07:11 +02:00
Stefan Weil
0d0f203509 Add new configure option --enable-float32 for faster LSTM with float
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-29 06:49:08 +02:00
Stefan Weil
3ab8dcbf72 Use Apple Accelerate framework for training and best models
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-20 19:27:54 +02:00
Stefan Weil
f0fb6809e3 Use SIMD instructions for DotProductNative
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-07-14 19:13:01 +02:00
Amit Dovev
8615f65cc4 Raise Minimum required Pango version to 1.38.0 2021-05-21 19:56:37 +03:00
Stefan Weil
bf3421ff12 Fix autoconf build for latest MacOS (Intel and M1)
On latest MacOS 11.3 the system header file "ostream" includes a file
named "version".

The macro DEFAULT_INCLUDES adds the source root to the list of include
directories by default. As MacOS uses a case insensitive file system,
the compiler finds and includes the file "VERSION" there which causes
compiler errors and a failing build process.

Setting an empty DEFAULT_INCLUDES fixes that, but requires moving
config_auto.h to another directory in the include search path.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-05-13 17:22:58 +02:00
Stefan Weil
6c7df2acf3 Fix warning from autoconf
autoconf reported this warning:

    configure.ac:263: warning: AC_CHECK_HEADERS("tensorflow/core/framework/graph.pb.h"): you should use literals

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-05-13 12:57:20 +02:00
Uwe Hartwig
930c909db5 [doc][fix] typo libicu-devel 2021-04-30 13:01:32 +02:00
Stefan Weil
b7e8134dea Update URLs for Google groups
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-11 10:43:28 +02:00
Stefan Weil
bfe1616b4e Create new pre-release 5.0.0-alpha-20210401
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-04-01 21:41:15 +02:00
Stefan Weil
fc00834920 autobuild: Require C++17
This completes commit 73a325494e.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-03-11 21:57:02 +01:00
Stefan Weil
58304cbfdd Don't compile OpenCL code when OpenCL is disabled
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-26 15:40:23 +01:00
Egor Pugin
b030b03e0d
Update configure.ac 2021-02-24 01:09:44 +03:00
Egor Pugin
90afdef30d
Merge pull request #3162 from xloem/android
Specify ADD_RT for android platform, which embeds librt in libc
2021-02-24 00:22:17 +03:00
Stefan Weil
b091b09b4f Fix default value for --enable-doc
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-13 10:05:42 +01:00
Stefan Weil
a20036622e Fix default value for --with-archive and --with-curl
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-11 23:15:35 +01:00
Stefan Weil
ddc36722b2 configure: Sort AC_ARG_WITH to get better help text
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-11 07:25:49 +01:00
Stefan Weil
974e396542 Add configure option --disable-doc (default: check)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-11 07:16:54 +01:00
Stefan Weil
2ba3f69667 Add configure option --with-curl (check for libcurl by default)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-10 22:56:51 +01:00
Stefan Weil
f1b9e326d0 Add configure option --with-archive (check for libarchive by default)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-02-10 22:56:27 +01:00
Stefan Weil
971c6e6d6b automake: Flat build for unittest
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-24 18:21:37 +01:00
Stefan Weil
59305028e5 Remove unused conditional OSX
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-20 15:11:41 +01:00
Stefan Weil
e1b9f1b446 automake: Flat build for doc
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-11 21:58:45 +01:00
Stefan Weil
e1f1f325f7 Fix brew check for GitHub actions
Don't abort if a brew catalog file is missing.

This is needed for the GitHub actions environment
which provides brew also for Linux.

Running cross builds then failed at AC_CHECK_FILE.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-01-06 14:01:06 +01:00
Stefan Weil
ca114ace38 Create new pre-release 5.0.0-alpha-20201231
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-12-31 19:45:10 +01:00