-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
FreeBSD tesseract installation - missing configs dir #3674
Comments
Which version of Tesseract did you try to install? Additional information is needed to understand, reproduce and finally fix the issue. |
HI, After that, i ran the following command: This told me, that tesseract was not able to open "params_file" txt and pdf. So, ocrmypdf didnt create such a file. I downloaded the package from here, extracted the configs dir and placed it into the tessdata folder. After that, it was working. |
Did you report the problem to the maintainer of the FreeBSD package? I am afraid here is the wrong place for your report. |
Cc'ing @pkubaj (maintainer of FreeBSD tesseract-5.0.0). |
Where is that package located? |
It looks like FreeBSD uses the cmake build. Debian bases distributions use the autotools build (which I normally use, too). |
https://www.freebsd.org/cgi/ports.cgi?query=tesseract-5.0.0 |
Ok. |
@egorpugin, I just tried |
Does it work on 4.1.3? |
I simply did not know, that's why I asked. Now I have run a test with 4.1.3, and it also does not install |
https://github.com/marketplace/actions/freebsd-vm Maybe someone here wants to use this and write an action to test Tesseract on FreeBSD. |
I did not implement our cmake install. |
Maybe that is also not necessary. @pkubaj, could FreeBSD use autotools like the other distributions? |
I switched back to autotools, please test. |
You should clearly state that cmake support is incomplete to avoid such issues. |
Do you have a suggestion where and how we should state that? |
For example, here https://tesseract-ocr.github.io/tessdoc/Compiling.html. |
Yes, cmake build was never complete. |
After this commit #2551 there is no need to install configs... ;-) Everything can be replaced by tesseract option Installing configs via autotools is IMO relict from tesseract version 3 (autotools installed also langdatas and config files have to be at the same location aslangdatas ). At that time it made sense. This was changed with tesseract 4: there are 3 sets of language data files and we stop installing langdatas with autotools. At the moment configs are still part of langdatas structure and therefore they should be part of the installation process of langdatas - not the library. Actually, you can run OCR with tesseract without configs, but you can not run it without langdata and nobody complains that There was some discussion in past/attempt to improve this situation, but AFAIR no progress was done. Personally, I like the idea to store my preferred settings in text file, but I think we should get rid of old logic (why And yes - as (nowadays) windows user I am happy user of tesseract cmake installation process already for several years - without any major problem (usually any new feature is implemented in the same time to autotools and cmake), as langdatas I need to install/update by a separate process... |
Hi,
when installing tesseract on FreeBSD, the configs dir, which should be in "/usr/local/share/tessdata/" is not created.
It was necessary for me, to download the complete package from here, extract the configs folder and place it on my server.
After that, tesseract was working fine.
Please fix that!
The text was updated successfully, but these errors were encountered: