Ask Your Question

Revision history [back]

Hi !

I experienced the same problem and it seems the tesseract package is broken a little so its include dir is just not added to system include.

And if you sure the package is installed it is just necessary to check the path to its include and allow make to find it.

In my case the path is:

/usr/local/Cellar/tesseract/4.0.0_1/include

So I added it like this:

CXXFLAGS=-isystem\ /usr/local/Cellar/tesseract/4.0.0_1/include cmake <ALL_CMAKE_ARGS_HERE>

Another method is:

cmake -DCMAKE_CXX_FLAGS=-isystem\ /usr/local/Cellar/tesseract/4.0.0_1/include <OTHER_CMAKE_ARGS_HERE>

Hope it helps.