-
Notifications
You must be signed in to change notification settings - Fork 753
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
Working on Mono #23
Comments
That's certainly an option, I'll look into it next weekend if I have time. |
Can you see if this works now? You'll need to comment out all calls to WindowsLibraryLoader.LoadLibrary first. |
It is works on Windows and don't work on Linux. |
Ok I understand, for now you'll need to comment out the loadlibrary routines I mentioned previously this is to prevent it loading the libs using the win32 libs. I'm also assuming that mono can resolve the tesseract libraries and get the right version. If you've got this far already and still having issues its likely either an x86 or x64 issue or the given method Isn't been invoked correctly by mono. Were you able to invoke the getversion method this might be a good way to tell if the library was loaded correctly. |
Hi, charlesw! I think, the Mono support is a great feature. Maybe the following way will be useful: |
Looks promising, do you want to give it a go?
|
Yes, I will do it. |
Unfortunately, I could not find a beautiful solution based on the |
Looks good, I'd probably like to see the function delegates you create in Also how are you handling parameter and result Marshalling? Also while I do realise that mono and .net have different algorithms for Unfortunately, I could not find a beautiful solution based on the DllImport — |
What do you mean?
I do it via IL commands. Please check out method
There are several problems. Sorry for my bad English. Please, feel free to ask any additional questions. |
Thanks for the quick response. All up looks like a very nice approach to Do you want to have a look at adding this to this library? Let me know if Charles
|
Ok, I'll try. Can you give me Unix binary files for the native tesseract library and the native leptonica library? (x86 and x64 versions) |
If by Unix you mean a linux distro like Ubuntu I think you can just use the E.g. http://packages.ubuntu.com/search?keywords=tesseract-ocr
|
Ok. |
Great news! My approach works with Tesseract. Now, I am preparing a pull-request for you. What branch should I use? Also there is an issue about Linux support. It's about locale: we should use "LC_ALL=C" for normal work. In the other case, the native Tesseract library gives an error: |
Excellent, use the dev branch. I'll have a look at the LC-ALL issue tomorrow.
|
In regards to the LC-ALL issue you should be able to implement the
|
Unfortunately, I found one more issue with my library. Now I don't have complete support of |
Great news! I developed new version of my library without relfection issues. Also now we can not worry about caching: I rewrote IL generation and now signature implements directly to native call. The pull-request will be soon. |
New version of the library: InteropDotNet |
Merged changes into main dev branch and mono support will be in the next release. Thanks. |
If i right understand this library don't work on mono, because embedded libtesseract302.dll library request kernel32 which has not in mono.
But tesseract works on Linux.
My question:
Do you have plan to make mono compatibility?
Is this possible make to on no windows os instead load embedded dll, load system tesseract library like libtesseract.so.3?
The text was updated successfully, but these errors were encountered: