cljfx

https://github.com/cljfx/cljfx
emccue 2021-06-30T16:02:11.009900Z

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

vlaaad 2021-06-30T16:12:06.010Z

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

phronmophobic 2021-06-30T16:15:09.010900Z

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

phronmophobic 2021-06-30T17:14:48.013900Z

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

phronmophobic 2021-06-30T17:16:06.015200Z

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

vlaaad 2021-06-30T17:38:04.015400Z

Huh, nice!

phronmophobic 2021-06-30T17:41:31.015600Z

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

phronmophobic 2021-06-30T17:42:34.016Z

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