Fork me on GitHub
#cljfx
<
2021-06-30
>
emccue16:06:11

this might be a dumb question, but has anyone used cljfx to make a mobile app with gluon/graalvm yet?

vlaaad16:06:06

That's a great question, I'd be very interested to learn if anyone tried this :) I tried running cljfx on graalvm a couple of times, but haven't succeeded yet. I think it might be easier to do cljs+react-native for mobile

phronmophobic16:06:09

@U47G49KHQ , what type of errors did you run into?

phronmophobic17:06:48

graalv generally requires additional flags compared to java code which aren’t being passed here. If you use the gluon maven plugin, the log will print the exact native image command which you can modify to add the necessary clojure flags

phronmophobic17:06:06

I was able to compile clojure to run on my iphone, but I didn’t include gluon’s javafx libraries

vlaaad17:06:04

Huh, nice!

phronmophobic17:06:31

I created https://github.com/phronmophobic/mobiletest as an example for vanilla clojure, but it does not include javafx dependencies

phronmophobic17:06:34

we started #graalvm-mobile if you do attempt compiling for mobile again