graalvm

Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to https://github.com/clj-easy/graal-docs and https://github.com/BrunoBonacci/graalvm-clojure. GraalVM slack: https://www.graalvm.org/slack-invitation/.
Michael Kropat 2021-01-02T16:45:24.265900Z

probably more of a Graal question than a Clojure question, but asking here since I (ideally) want to native-image an app that uses Caesium (https://github.com/lvh/caesium). are there are any examples of projects (Clojure or otherwise) that support native-image and use jnr-ffi or JNA or really anything that's not vanilla JNI? my initial attempt at native-imaging w/ Caesium, which uses jnr-ffi, suggests to me there could be a lot of figuring out needed to get it to work, given this runtime error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.kenai.jffi.Foreign.invokeN2O2(JJJJLjava/lang/Object;IIILjava/lang/Object;III)J [symbol: Java_com_kenai_jffi_Foreign_invokeN2O2 or Java_com_kenai_jffi_Foreign_invokeN2O2__JJJJLjava_lang_Object_2IIILjava_lang_Object_2III]

borkdude 2021-01-02T17:08:06.266900Z

@hello784 An unsatisfied link error probably requires you to set the java.libraries.path to the .dll/.so/.dylib directory

1👍
borkdude 2021-01-02T17:08:10.267100Z

inside the native-image