Dominaezzz/kotlin-imgui

Some problems compiling for `linuxArm32Hfp`

Opened this issue · 9 comments

Ok, I've started using the sample from Dominaezzz's kotlin-imgui library for the K/N, but I get errors thrown when trying to compile it for linuxArmHfp.
error, my build.gradle.kts and my folder layout
2020-01-31_12-37|277x198
It compiles and runs fine on the host, but it doesn't get past the errors when compiling for the ARM32HFP.

I can also test new builds on this architecture. I have a Raspberry Pi 2b+ and an IMX6 to test it on.

I don't have access to my computer at the moment but the sample won't immediately work for arm32hfp, because kgl (used for OpenGL and GLFW) doesn't target raspberry pi yet, so the implementations will have to be created for raspberry pi.

Whenever you'll manage to, please let me know I'll be watching this repo anyways!

I'd do it myself, but I don't understand Gradle at all...

I've gotten to my laptop now. You seem to have only edited the samples build.gradle.kts file and left the ones for imgui and cimgui. They each have to be configured for linuxArm32Hfp.
I've made some changes and pushed it to the raspberrypi branch. It should allow you to run the sample via JVM but Native will require you to do cinterop for OpenGL( ES?) and GLUT/GLFW/SDL. I don't know enough about raspberry pi to set it up in CI.
I can try and assist you through Gradle issues if you make a PR or something.

I'll test that branch out for JVM and will try to make the cinterop work with the RPi!
Thanks for the good work!

msink commented

At least SDL2 is available in K/N prebuilt sysroot for RPi, see samples/Tetris in K/N repo.
Should work on any host, including CI.

Ah, I forgot about that. Thought should make things easier.

msink commented

Just checked samples/tetris - it's a little bit broken, did PR JetBrains/kotlin-native#3813

@MGlolenstine Are you still interested in this? Particularly in testing builds?

@Dominaezzz I have a free Raspberry Pi 2B+, so I can test out Arm32 builds with no problem.