-
Notifications
You must be signed in to change notification settings - Fork 102
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
Bug: UnsatisfiedLinkError Loading Native Library for Java #315
Comments
Hey @ccjernigan! Thanks for spotting the issue! I am very unexperienced in packaging JNI libraries. Together with @superkelvint we've been trying to fix those, but the iteration cycle is super slow. Are you familiar with the process? Can you help us patch it? |
I'm not a JNI expert, although maybe we can figure this out together. How are you iterating currently? I like to publish/consume libraries from Maven local ( It also looks like this issue may be platform-specific. With a GitHub Actions workflow, it works on Linux but not Windows or macOS. For the macOS issue, I confirmed the problem occurs on Intel and M1 so it isn't a simple architecture issue either. See https://github.com/ccjernigan/search/actions/runs/6907563003 There's only a single |
Yes, @ccjernigan, we need a matrix of JARs, but I am not sure about how to configure Bazel and GitHub CI for that output. I am currently overwhelmed with clustering and dimensionality reduction functionality and the upcoming v3 release, so if you could contribute patches, that would help us a lot! |
we are also looking for the same fix while using to usearch + java binding run on the M1 mac. |
I believe #407 may be fixing this issue, @patedhav and @ccjernigan 🤗 |
@ashvardanian @mccullocht #407 seems to be |
@patedhav seems so, as @mccullocht has added a Clang build and fixed library name resolution to fetch |
@ashvardanian thanks for the update, looking forward to get it to main and java jar release! |
Describe the bug
Touching
Index
causes the static initializer for loading the native library to execute. This doesn't seem to be working correctly.Results:
usearch.zip
Steps to reproduce
Using the attached
./gradlew run
Expected behavior
Application runs
USearch version
2.8.12
Operating System
macOS Sonoma 14.1.1
Hardware architecture
Arm
Which interface are you using?
Other bindings
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: