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

UnsatisfiedLinkError #470

Closed
lekzeey opened this issue Jul 28, 2016 · 2 comments
Closed

UnsatisfiedLinkError #470

lekzeey opened this issue Jul 28, 2016 · 2 comments
Labels

Comments

@lekzeey
Copy link

lekzeey commented Jul 28, 2016

I get this error when I run OpenCVFaceRecognizer. Any clue what the problem is? Thanks

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_face in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:654)
    at org.bytedeco.javacpp.Loader.load(Loader.java:492)
    at org.bytedeco.javacpp.Loader.load(Loader.java:409)
    at org.bytedeco.javacpp.opencv_face.<clinit>(opencv_face.java:13)
    at OpenCVFaceRecognizer.main(OpenCVFaceRecognizer.java:84)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

@lekzeey lekzeey closed this as completed Jul 29, 2016
@lekzeey
Copy link
Author

lekzeey commented Jul 29, 2016

Fix : I used opencv 2.4 and modified the opencvfacerecognizer

@saudet saudet added the bug label Jul 29, 2016
saudet added a commit to bytedeco/javacpp-presets that referenced this issue Jul 29, 2016
@saudet
Copy link
Member

saudet commented Jul 29, 2016

Looks like opencv_face depends on opencv_objdetect. I've fixed that in the latest commit (link above), but for now we can call the following to work around:

Loader.load(opencv_objdetect.class);

Thanks for reporting!

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