Unable to load libgettextlib.dll from MSYS2 MINGW64 #319
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi#319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
github.com/jwharm/java-gi@3844225632/modules/glib/src/main/java/org/javagi/util/Intl.java (L79)looks like it's hardcoded. My actual dll name is:
Since I build from source, I can modify it to load my version. I could help if you have specific direction on how to load the library (like what you did with linux's
tryLoadLibraryVersions()).Thanks for the feedback!
I changed the Linux-specific
tryLoadLibraryVersions()workaround to also be used on Windows and macOS, see PR #320. You can set your local library directory with the command-line parameter-Djavagi.library.path=/mingw64/bin/libgettextlib-0-26.dll. (See also the updated build.gradle in thejava-gi-app-templaterepository for an example).Can you test PR #320 and let me know if this fixes the issue?
I think it works. The only thing is both
java.library.pathandjavagi.library.pathdoes not work on Windows. I can load the library withPATHvariablePATH="%PATH%;C:\\msys64\\mingw64\\bin", not withjava.library.pathandjavagi.library.path.I dig around and found this issue. They said it's intended.
https://bugs.openjdk.org/browse/JDK-8311090
https://bugs.openjdk.org/browse/JDK-8339367
But good enough since they are unrelated. You can close this issue when #320 is merged.