Skip to content

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

@silvanheller

Description

@silvanheller

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions