New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get Tesseract Build for Windows #268
Comments
There is missing command before running |
@sirfz : can you manually fix docs with this patch? I am not able to make clean PR :-( at the moment. |
@zdenop thanks for the catch! I'm down to the final terminal command for tesseract installation
Where such 'allheaders.h' file is this reffering too? I know that I have |
|
You said However, both installation & builds of leptonica resulted in only a single allheaders.h file, which was in that same path of leptonica's src folder. I am very confused of what to do next, as my understanding is that installing leptonica isn't giving me a different directory for the allheaders.h file. I also believe that installing/building leptonica is indepedent of the other processes (except for the intial commands where we set |
Reviewing over the command line outputs, I did notice a warning on missing PkgConfig for this command:
The output:
Since this didn't stop the build, I proceeded to the next command of I thought to then get the PkgConfig, however, it seems very hard to get for Windows 10 (for example: https://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows). |
I've been trying to resolve the issue, but I still have not been able to complete the tesserocr dependency installation. I understand @zdenop said my Leptonica library hasn't actually installed. Going back to Leptonica's installation instructions, I followed them exactly, and while it didn't throw any error message, it gives a warning on missing PkgConfig. Now, I'm not sure whether this PkgConfig is the reason tesserocr's provided installation instructions for Leptonica aren't working for sure; I simply have no other output of concern when I run the Leptonica installation commands. But either way, I have been unsuccessfuly in trying to resolve this PkgConfig issue directly (as the post before this shows). I then tried installing Leptonica another way. I installed vcpkg (in
So sorry for the incredibly long posts, I am just so unsure on what steps I need to be taking and whether I am even going in the right direction. |
I just make a quick test. Here are my commands and the most important part of logs:
I skipped removed pkg-config to emulate your environment. Also, I skipped specifying
=> no problem. |
IMO this should be closed after this change 04c36d8... |
I get the following error when I carried out tesseract build and installation
This is especially weird as I had no such error with CMake for leptonica, zlib, nor libpng.
In an attempt to solve this, I simply copied the
C:\Project\tesseract\CMakeLists.txt
file and added it to theProject
parent directory too (so it is also present atC:\Project\CMakeLists.txt
).However, then I get the following error:
I don't understand why there is an entire list of errors, and inside the
CMakeOutput.log
I have:I suppose the error has to do with just the ABI compiler(s) (so
C:\Project\tesseract\CMakeFiles\3.21.1\CMakeDetermineCompilerABI_CXX.bin
orC:\Project\tesseract\CMakeFiles\3.21.1\CMakeDetermineCompilerABI_C.bin
), however, I have no idea why or how to go about fixing it.Any suggestions would be greatly appreciated, thanks!
The text was updated successfully, but these errors were encountered: