From 18059a0742ffed6f2e2bb26d50e990295cabf84f Mon Sep 17 00:00:00 2001 From: Eric Platon Date: Tue, 24 Apr 2018 08:52:29 +0900 Subject: [PATCH] Add a workaround when building with MacPort's g++ compiler. --- Compiling.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Compiling.md b/Compiling.md index 60b7ddd..a66de44 100644 --- a/Compiling.md +++ b/Compiling.md @@ -338,6 +338,12 @@ sudo port install leptonica sudo make install ``` +If compilation fails at the `make` command, with `libtool` erring on missing instructions, you may be building with MacPort's `g++` compiler, with [known issues](https://github.com/tesseract-ocr/tesseract/pull/1474). A workaround is to re-configure the build: + + ./configure CXXFLAGS=-Wa,-q + +And then proceed with `make`. + ### Install Tesseract with training tools In the above training tools are not installed. You can install not only Tesseract but also training tools like below.