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

[Java Bindings] .so not being built on Ubuntu 16.04 #15

Open
silvanheller opened this issue Nov 10, 2017 · 0 comments
Open

[Java Bindings] .so not being built on Ubuntu 16.04 #15

silvanheller opened this issue Nov 10, 2017 · 0 comments

Comments

@silvanheller
Copy link

Steps to reproduce:

  • sudo ./configure --enable-shared --enable-java --disable-audio-hash --disable-video-hash --disable-pthread
  • sudo make
  • cd bindings/java
  • javac org/pHash/*.java
  • sudo make install

Result:
java -Djava.library.path=/usr/local/lib org.pHash.pHash -mh img1.jpg img2.jpg

Exception in thread "main" java.lang.UnsatisfiedLinkError: no pHash-jni 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.pHash.pHash.<clinit>(pHash.java:22)

Since there is no libpHash-jni.so nor libpHash.so at /usr/local/lib

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

No branches or pull requests

1 participant