Anyone have a mac I can borrow? I just want to see...
# kotlin-native
d
Anyone have a mac I can borrow? I just want to see if a K/N repo can build and run without issue. (Can't see GUI in GitHub actions 😞)
It's this one https://github.com/Dominaezzz/kotlin-imgui . Just run
./gradlew :samples:runDebugExecutableMacosX64
and send me a screenshot.
b
doesn't work on catalina:
Glfw Error 65543: NSGL: The targeted version of macOS does not support OpenGL 3.0 or 3.1 but may support 3.2 and above
😕
d
Thanks! Rip. I forgot about the OpenGL version issue. I'll update in a bit.
Okay, checkout the
fix_mac
branch and try again.
b
🎉
d
Yay! Thanks!
a
You could use VirtualBox 🙃
d
Ah I see. For some reason I thought it wasn't possible to have macos in VM on other OSes.
s
It isn’t allowed by Apple in their Terms of Service but definitely possible.
m
@Dominaezzz, very nice, any hint to run it on raspberry pi?
d
I haven't set it up for raspberry pi just yet, I'm currently looking into cross compiling the imgui static lib. If you're familiar with Clang, you can clone the project and tweak some of the arguments to build a static lib for RPi. Otherwise it doesn't come out of the box just yet. I'll prioritise RPi now that you've asked.
m
👍 Cool thank you. I have not much knowledge yet, but there was an amazing talk on that on kotlinkonf

https://www.youtube.com/watch?v=KfdNiMP0emE

d
Thanks for the link!
m
I can also confirm, that
fix_mac
branch is working for me
d
Awesome. Are you also on Catalina?
m
10.14.6 Mojave, on master I get Glfw Error 65543: NSGL: The targeted version of macOS does not support OpenGL 3.0 or 3.1 but may support 3.2 and above Uncaught Kotlin exception: kotlin.Exception: Could not create window. at 0 samples.kexe 0x0000000101bf7be7 kfun:kotlin.Throwable.<init>(kotlin.String?)kotlin.Throwable + 87 (/Users/teamcity3/buildAgent/work/4d622a065c544371/runtime/src/main/kotlin/kotlin/Throwable.kt2237) at 1 samples.kexe 0x0000000101bf1de5 kfun:kotlin.Exception.<init>(kotlin.String?)kotlin.Exception + 85 (/Users/teamcity3/buildAgent/work/4d622a065c544371/runtime/src/main/kotlin/kotlin/Exceptions.kt2344) at 2 samples.kexe 0x0000000101cc974b kfun:sample.main(kotlin.Array<kotlin.String>) + 1867 (/Users/runner/runners/2.163.1/work/kgl/kgl/kgl-glfw/src/nativeMain/kotlin/com/kgl/glfw/Window.kt58515) at 3 samples.kexe 0x0000000101cca26c Konan_start + 1
👍🏼 1