-
Notifications
You must be signed in to change notification settings - Fork 54
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.lang.UnsatisfiedLinkError on v4 in Windows #108
Comments
According to https://github.com/uber/h3-java/blob/master/src/main/c/h3-java/build-h3.sh#L185 it's supposed to be placed in windows-x64, but it looks like a bug in the script prevented that: https://github.com/uber/h3-java/actions/runs/2913778419/jobs/4641930675#step:6:3650 The script should have been This wasn't caught in the script because This also wasn't caught because while we have Windows tests, they build the native library in MSVC rather than using the cross compiled version. Perhaps we could build once and then run the CI suite in order to validate the library? A more immediate test we could add is asserting the right set of resources are present in the JAR. Edit: I retitled the issue to include Windows to help anyone skimming for relevant issues. |
4.0.1 is now being released which should fix this. Please let me know if the issue remains |
Getting
java.lang.UnsatisfiedLinkError: No native resource found at /windows-x64/libh3-java.dll
when trying to load dlls when callingH3Core.newInstance()
on V4.It appears that the H3 V4 builds on maven and other sites are missing the specific relative path
/windows-x64/libh3-java.dll
. I’d run into this same issue when trying out the release candidates. V3 builds had the [os]-[architecture] path. You can see the difference below.When initializing with
H3Core.newInstance()
, the class loader searches for [os]-[architecture]. If you manually change the windows dll naming back to V3 (remove "-static"), it'll work.Looks like there weren't any changes in the build script since last release. Curiously if it's possible to get the naming switched back, wondering if this is an issue with Dockcross (if you still use that for cross compiling).
The text was updated successfully, but these errors were encountered: