Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Some problems compiling for linuxArm32Hfp #4

Open
MGlolenstine opened this issue Jan 31, 2020 · 9 comments
Open

Some problems compiling for linuxArm32Hfp #4

MGlolenstine opened this issue Jan 31, 2020 · 9 comments

Comments

@MGlolenstine
Copy link

MGlolenstine commented Jan 31, 2020

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link

msink commented Feb 2, 2020

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
Copy link
Owner

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

@msink
Copy link

msink commented Feb 2, 2020

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

@Dominaezzz
Copy link
Owner

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

@MGlolenstine
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants