Skip to content
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

Please fix README.md to avoid java.lang.UnsatisfiedLinkError: no jniopencv_core #843

Closed
mixaal opened this issue Nov 25, 2017 · 5 comments
Closed
Labels

Comments

@mixaal
Copy link
Contributor

mixaal commented Nov 25, 2017

Please include the following dependencies as an example in the:

https://github.com/bytedeco/javacv/blob/master/README.md

file. The one depicted on the page above leads the "famous" error: {{java.lang.UnsatisfiedLinkError: no jniopencv_core in java.library.path}} as already described in the following issues:

#422
#49

If you include the following pom.xml, I assume most people won't be filing this issue anymore since the example provided on the page above starts to work "out-of-the box".

<dependency>
  <groupId>org.bytedeco</groupId>
  <artifactId>javacv</artifactId>
  <version>1.3.3</version>
</dependency>


<!-- https://mvnrepository.com/artifact/org.bytedeco/javacpp -->
<dependency>
  <groupId>org.bytedeco</groupId>
  <artifactId>javacpp</artifactId>
  <version>1.3.3</version>
</dependency>
<dependency>
  <groupId>org.bytedeco.javacpp-presets</groupId>
  <artifactId>opencv</artifactId>
  <version>3.2.0-1.3</version>
</dependency>
<dependency>
  <groupId>org.bytedeco.javacpp-presets</groupId>
  <artifactId>opencv-platform</artifactId>
  <version>3.2.0-1.3</version>
</dependency>

You can always say this is an example only, however it helps people to start off with javacv.

Thanks.

uname -a
Darwin Kernel Version 17.2.0: Fri Sep 29 18:27:05 PDT 2017; root:xnu-4570.20.62~3/RELEASE_X86_64 x86_64
java -version
java -version
java version "1.8.0_71"
Java(TM) SE Runtime Environment (build 1.8.0_71-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)

@saudet
Copy link
Member

saudet commented Nov 26, 2017 via email

@saudet
Copy link
Member

saudet commented Nov 26, 2017

FYI, you should be using "javacv-platform", not "javacv".

@mixaal
Copy link
Contributor Author

mixaal commented Nov 27, 2017

Thanks for quick reaction. I didn't spot the difference. The way I got to wrong dep was I searched for the latest javacv in maven repo and once found I copy pasted the maven artifact. However I searched for javacv not for javacv-platform. Maybe putting a note before/inside the pom.xml snippet : "Make sure you are using javacv-platform" might help.

Thanks

@saudet
Copy link
Member

saudet commented Nov 27, 2017 via email

@mixaal
Copy link
Contributor Author

mixaal commented Nov 27, 2017

I just opened the request:
#844

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants