You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./SkiaAwtSample-all
Cannot open (null)/lib/libjawt.so: (null)/lib/libjawt.so: cannot open shared object file: No such file or directory
Aborted (core dumped)
The fix could consist of two steps.
First, change the dynamic jawt lib loading to link skiko lib with jawt. As an example, the draft solution tested on Linux only: AlexanderScherbatiy@94b7097
Second, if the first step is accepted, add an option which links with jawt lib statically to make it possible to generate a native image by GraalVM. It would need to use static jawt library from GraalVM and its dependencies, like:
The original issue has been reported at bell-sw/LibericaNIK#14
Native image, built by GraalVM, does not define
java.home
java property so dynamicjawt
lib loading fails on Linux and MacOS in codeskiko/skiko/src/jvmMain/cpp/common/jawt.cc
Line 88 in c08102b
The proposed solution could be to link skiko lib with
jawt
lib statically only for native image generation.Steps to reproduce:
build.gradle.kts
to create uber jar:gradle build
The fix could consist of two steps.
First, change the dynamic
jawt
lib loading to link skiko lib with jawt. As an example, the draft solution tested on Linux only: AlexanderScherbatiy@94b7097Second, if the first step is accepted, add an option which links with jawt lib statically to make it possible to generate a native image by GraalVM. It would need to use static jawt library from GraalVM and its dependencies, like:
where jdkHome is path to GraalVM.
The text was updated successfully, but these errors were encountered: