-
Notifications
You must be signed in to change notification settings - Fork 32
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
Compile #3
Comments
Hi, You need comment system function code in Leptonica project with gplot.c:402. |
Hi @chaoskyme ,
I attached the full error for you. Can you provide me with some advice please ? Thank you |
@scubess You need keep your Mac OS environment is clean, let the compilation process isn't reference the library of Mac. Maybe your Mac OS install webp library. |
Hi @chaoskyme , Sorry this is my first time trying to cross compile. I am very new and am not that much clear about the compilation process. Sorry to trouble you. I still have the problem. It will so good if i got this compiled in my system.
...
can you help me with this error please? what wrong i am doing or advise me what makes this error please ? |
@chaoskyme Any advice on the above error please ? |
Hi @scubess @chaoskyme and future visitors The problem above and one more similar can be resolved by adding Anyway, I am just upgrading the library to Tesseract 4.1 while facing similar compilation issues (and more). You can find my observations here including the one above here Current work in progress is here if anyone is interested. The demo project runs, but didn't test it in my own app yet: https://github.com/kenticomartinh/Tesseract-OCR-iOS/tree/4.1 If anyone has additional observations or knows more about topics in my notes above, let me know. One thing I still need to investigate is why tests in the demo project are not loading in XCode. |
Hi @kenticomartinh , But as you mentioned , when leptonica API's called, it throw errors linking errors in Even though it built successfully, I need to call letponica APIs. thank you so much for your help ! |
Hi @selvaw3w That is why I said "unless you really need that Leptonica API" :-) Anyway, in your case you should probably look at how the other linked libraries are handled in the makefile, and replicate that for the libwebp library. I am not that proficient in makefiles, so I can't give you an exact advice on that. |
@kenticomartinh Thanks for the solution.
|
Hi @chaoskyme do tests work for you? I had to make some additional cleanup of some old things that prevented them from running, see this commit. I was also changing the default mode because TesseractOCROnly is not supported by these versions anymore. See my commit: |
This repo is so helpful because of its support for Tesseract 4.0.
I'm try to compile this again with the latest Tesseract release using Xcode 10.2 and got stuck. I'm rebuilding because many of the latest trained models do not work.
But when I followed the instructions and running make, when building Leptonica, this error appears:
../../src/gplot.c:402:18: error: 'system' is unavailable: not available on iOS
Can you please give me some guidance? Or, can you update to the latest Tesseract?
Thanks.
The text was updated successfully, but these errors were encountered: