-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
GraalVM Native Image failed to load the required native library #682
Milestone
Comments
@normanmaurer - may you kindly look into this -- It's been pending for a while. Thanks. |
Sorry but I really have no idea about graal |
I may take a look in the next days ... |
Can anyone kindly help, it's been pending for a while... |
use netty-incubator-codec-native-quic 0.0.62.Final the problem still exists. 2 months cannot resolve. |
I also encountered the same problem |
normanmaurer
pushed a commit
that referenced
this issue
Aug 26, 2024
Motivation: We should be able to use this library with GraalVM. Modifications: Fix meta-data. Result: Be able to use with native image. Fix #682
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The jar file works fine but the native image compiled by GraalVM (21.0.2+13.1) throws UnsatisfiedLinkError exception:
Here is the code snippet in my
QuicStreamChannelHandler.java
:In the jar file,
META-INF/native-image/io.netty.incubator/netty-incubator-codec-native-quic/resource-config.json
is there with the contents:and in META-INF/native/, file
libnetty_quiche_linux_x86_64.so
andnetty_quiche_windows_x86_64.dll
are there.I noticed that in the exception it says can't load library /tmp/libnetty_quiche_linux_x86_6413187606951079597579.so, I didn't dig into
Quic.ensureAvailability
and don't understand where the value 13187606951079597579 (looks like a random number) came from, and how/tmp/libnetty_quiche_linux_x86_6413187606951079597579.so
maps toMETA-INF/native/libnetty_quiche_linux_x86_64.so
.The text was updated successfully, but these errors were encountered: