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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>