-
Notifications
You must be signed in to change notification settings - Fork 744
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
Tesseract fails on MacOS #46
Comments
Could you call Loader.getPlatform() and let me know what that returns? Thanks |
It returns macosx-x86_64. I also did trace the call, everything looks fine. |
Ok, and which version of JavaCPP are you using? |
This is my pom.xml:
|
The resolved cpp version is 0.11 |
I've just tried it again, and it works just fine here on Mac OS X. Could you copy/paste the whole stack trace of the exception? |
I think this may caused by the dependent libs e.g. tiff are not installed in my system. If the memory serves me right, there were a couple of preloading libs when I traced why it could not load the library yesterday. I just brew install tesseract WITHOUT the --without-libtiff option and everything works fine now. |
I believe I've found the problem, so check out the latest commit and let me know if you still have problems with that one. This will only have an effect if you package the |
It works now. Thanks. |
@saudet, thanks for providing a patch. Would you mind explaining on how to apply it? I need a little guide on how to build the whole project with the patch applied. I guess you guys have already documented it - so a link would be fine. |
@FloWi Instructions are here: https://github.com/bytedeco/javacpp-presets/#build-instructions $ bash cppbuild.sh install
$ mvn install |
Hi Samuel! Thanks a lot for your help! I tried it at work with an openSUSE box, but ran on several errors due to missing packages on my machine necessary for compiling. Do you have a list of packages at hand that are being needed for building javacpp? I got it to the point where the flyCapture-build is failing with this error. |
I've added a couple of dependencies to the JAR files that were missing from Ubuntu, but I didn't check what we might need to bundle extra for openSUSE. In any case, most of the requests I get are for CentOS, and that pretty comes with nothing at all. And we also need someone to set up CI: #22 FlyCapture is going to fail if we don't install it beforehand. It's not open source, and we need to go through a website to download the library, so that's pretty normal. I guess I'll make |
Yeah, CI would be awesome for your cool project. I can take a look at the travis integration next week. This week, my nerd-time is very limited, due to real-life constraints ;-) At work we have a jenkins running monitoring our git-repos. So I know a bit about it I didn't set it up. Perhaps I can motivate my admin-buddy to help getting me started. I did a quick check on travis and saw, that they even support mac-builds - but unfortunately they are at capacity with their mac-environment. How do you currently handle the build of new releases? Is it possible to build a mac or windows release on a linux-box? So, I'm willing to help but don't like to make promises I can't keep. So, if anyone else has first hand experience with travis-ci and maven-builds I can't compete with that. Good idea to provide better information on FlyCapture to the user. Best,
|
Right now, I just build everything here manually on my machines. It takes a while to build everything from scratch, so it's not going to scale, but I do what I can with what I have for now... In any case, thanks for your interest! It would be great to get some help. Let me know if you need anything from me to get started! And BTW if you find a way to attract some money to this project, it might also be possible to hire someone else to work on it too... |
I got the same error again. Is that because the Thanks. |
@jiwhiz I've tried it again just to make sure, and version 1.0 works fine here. Could you copy/paste the whole stack trace that you get? Thanks! |
Sorry, my mistake. I was testing BasicTesseractExample, and it is using |
i have meet the same problem and change to 1.0. it work fine now. Thanks! |
I am getting a message like this ..kindly help |
@Kumaran50 You'll need to add a dependency on "tesseract-platform", not just "tesseract". |
I tried to build an eclipse project by
mvn eclipse:eclipse -Dplatform.dependencies=true
and then run the sample code tesseract code on MacOS from Eclipse with the error "Exception in thread "main" java.lang.UnsatisfiedLinkError: no jnitesseract in java.library.path"I checked the dependencies and all platform jars are in the classpath. Then I tried to run the sample code using
mvn package exec:java -Dexec.mainClass=BasicExample -Dexec.args="/open/tesseract-ocr/testing/phototest.tif" -Dplatform.dependencies=true
, got the above error with no luck.The text was updated successfully, but these errors were encountered: