msink / kotlin-libui

Kotlin/Native interop to libui: a portable GUI library
MIT License
648 stars 49 forks source link

32-bit windows target #20

Open msink opened 5 years ago

msink commented 5 years ago

As Kotlin 1.3.31 now can build for 32-bit windows - I decided just switch windows build to 32-bit, and drop support for 64-bit windows, at least for now. Do not see any reasons for 64-bit windows executable for simple utilites. If anyone have significant reasons - please comment here, and I will create new target windows_x64

To migrate - just replace in your build scripts mingwX64 to mingwX86, and msys2-mingw-w64-x86_64-gcc-7.3.0-clang-llvm-lld-6.0.1 to msys2-mingw-w64-i686-gcc-7.4.0-clang-llvm-6.0.1. Gradle should be upgraded to 5.4 - gradle wrapper --gradle-version 5.4 --distribution-type all

Linux13524 commented 4 years ago

Hi. Is it possible to support both, mingwX86 and mingwX64? I was about to use libui for a project, but want to use mingwX64 target.

msink commented 4 years ago

Done, in just published version 0.1.7. But it published for not yet announced Kotlin 1.3.70, so you can either

Linux13524 commented 4 years ago

Thanks a lot!

alexbobp commented 4 years ago

I have a blocking reason... apparently the ktor-client-curl library went the opposite direction and only hosts a 64 bit build. So I'm having trouble making a program that uses kotlin-libui and also uses ktor-client-curl.

I'm sorry to ask, but I banged my head against the wall for an hour and perhaps I'm just bad at gradle. Is there any chance you could give an example build.gradle.kts for using the latest libui with kotlin eap? (my current gradle build is already based off your hello world)

msink commented 4 years ago

You mean 64-bit only example? Just pushed to kotlin-dev branch of hello-libui, works for me. But I do not want to merge it to master until Kotlin 1.3.70 will be finally released.