Missing allheaders.h when installing tesseract 4.1.1 on windows

902 views
Skip to first unread message

Parul Singh

unread,
Aug 26, 2021, 11:37:15 AM8/26/21
to tesseract-ocr
I'm following tesserocr's installation guide for tesseract 4.1.1 on windows.
However, I've reached the last terminal command and I'm stuck on an error.

The commands are:
  • git clone -b 4.1.1 --depth 1 https://github.com/tesseract-ocr/tesseract.git 
  • cd tesseract
  • "C:\Program Files\CMake\bin\cmake.exe" .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -DCMAKE_PREFIX_PATH=%INSTALL_DIR% -DBUILD_TRAINING_TOOLS=OFF -DSW_BUILD=OFF -DBUILD_SHARED_LIBS=ON -DOPENMP_BUILD=OFF -DLeptonica_DIR=%INSTALL_DIR%\lib\cmake 
  • "C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target install
For the last command ("C:\Program Files\CMake\bin\cmake.exe" --build . --config Release --target install), I am getting the error:

C:\Project\tesseract-4.1.1\src\ccmain\tesseractclass.h(30,10): fatal error C1083: Cannot open include file: 'allheaders.h': No such file or directory (compiling source file C:\Project\
tesseract-4.1.1\src\api\lstmboxrenderer.cpp) [C:\Project\tesseract-4.1.1\build.msvs\libtesseract.vcxproj]

and this inability to find allheader.h file error comes up multiple different times.

Where such 'allheaders.h' file is this reffering too? I know that I have "C:\Project\leptonica\src\allheaders.h", so do I simply copy this folder somewhere?




Zdenko Podobny

unread,
Aug 26, 2021, 1:17:47 PM8/26/21
to tesser...@googlegroups.com

št 26. 8. 2021 o 17:37 Parul Singh <parul...@gmail.com> napísal(a):
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/6a396669-41de-44d3-b065-924a3b6996edn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages