Open MarkReedZ opened 5 months ago
Note that a cleaner fix for this issue would probably be to not copy the dlls and load them from usearch/shared/
In the build.gradle we copy usearch/shared/*
to ../
then in the code we load from /usearch
. Instead we can remove the copying and load from /usearch/shared/
NativeUtils.loadLibraryFromJar("/usearch/libusearch.dylib");
} else {
NativeUtils.loadLibraryFromJar("/usearch/libusearch.so");
The latter sounds like a good plan. I can wait for that patch, if you want to follow up on this branch 🤗
Proper fix and verified the jar as in the OP.
This PR fixes https://github.com/unum-cloud/usearch/issues/314 by excluding the shared/ directory.
Tested with