Dominaezzz / kotlin-imgui

Kotlin bindings for Dear ImGui
MIT License
83 stars 4 forks source link

Some problems compiling for `linuxArm32Hfp` #4

Open MGlolenstine opened 4 years ago

MGlolenstine commented 4 years ago

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.

Dominaezzz commented 4 years ago

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.

MGlolenstine commented 4 years ago

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...

Dominaezzz commented 4 years ago

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.

MGlolenstine commented 4 years ago

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 4 years ago

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.

Dominaezzz commented 4 years ago

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

msink commented 4 years ago

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

Dominaezzz commented 4 years ago

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

MGlolenstine commented 4 years ago

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