bytedeco / javacpp-presets

The missing Java distribution of native C++ libraries
Other
2.68k stars 743 forks source link

Maven install failing #580

Closed j0rdanit0 closed 6 years ago

j0rdanit0 commented 6 years ago

Hi, this issue was not happening yesterday. However, without changing my Maven tesseract dependency at all, I am now getting an error when trying to perform a Maven install.

pom.xml:

        <dependency>
            <groupId>org.bytedeco.javacpp-presets</groupId>
            <artifactId>tesseract-platform</artifactId>
            <version>4.0.0-beta.1-1.4.2-SNAPSHOT</version>
        </dependency>

Error:

Failed to execute goal on project swgoh-service: Could not resolve dependencies for project com.jordan:swgoh-service:jar:2.9.1: The following artifacts could not be resolved: org.bytedeco.javacpp-presets:tesseract:jar:android-arm64:4.0.0-beta.1-1.4.2-SNAPSHOT, org.bytedeco.javacpp-presets:tesseract:jar:android-x86:4.0.0-beta.1-1.4.2-SNAPSHOT, org.bytedeco.javacpp-presets:tesseract:jar:android-x86_64:4.0.0-beta.1-1.4.2-SNAPSHOT, org.bytedeco.javacpp-presets:tesseract:jar:linux-armhf:4.0.0-beta.1-1.4.2-SNAPSHOT, org.bytedeco.javacpp-presets:tesseract:jar:linux-ppc64le:4.0.0-beta.1-1.4.2-SNAPSHOT, org.bytedeco.javacpp-presets:tesseract:jar:windows-x86:4.0.0-beta.1-1.4.2-SNAPSHOT: Failure to find org.bytedeco.javacpp-presets:tesseract:jar:android-arm64:4.0.0-beta.1-1.4.2-20180611.103251-341 in http://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced -> [Help 1]

Maybe this is due to some temporary development issues, but thought I'd call attention to it anyway. Seems like it's trying to find a version with a date in the name instead of SNAPSHOT.

saudet commented 6 years ago

It's "beta.3" now:

        <dependency>
            <groupId>org.bytedeco.javacpp-presets</groupId>
            <artifactId>tesseract-platform</artifactId>
            <version>4.0.0-beta.3-1.4.2-SNAPSHOT</version>
        </dependency>
j0rdanit0 commented 6 years ago

After switching to beta.3, I was able to install. However, I'm now seeing some issues.

  1. Inconsistent TESSDATA_PREFIX: On Windows, the value needs to be the parent of tessdata. On Ubuntu, the value needs to include "tessdata/" itself.

  2. Failing to initialize API: On Windows, the Init() method does not return 0. I'm not sure what is wrong since there is no error message. On Ubuntu, calling the Init() method causes the Java process to be killed, with this error in the logs:

    read_params_file: parameter not found: enable_new_segsearch
saudet commented 6 years ago

The full path to "tessdata" or wherever the data is works fine for me on both Linux and Windows, but we do need newer data files: https://github.com/tesseract-ocr/tessdata It doesn't seem to work with older versions anymore.

j0rdanit0 commented 6 years ago

All those files say they were updated 3 months ago, I believe I'm already using them. You're referring to the .trainddata files, right?

saudet commented 6 years ago

Yes, those work fine for me. If they do not for you, make sure to open an issue over there!