I’m creating a command line tool, that need to be compatible for mac/win/linux machines,
also, i’m using only posix as dependency and the code should be exactly the same, but in commonMain looks like i cannot use it!
going through the internet, i can find so many different approaches like konan or kotlin-multiplatform
any idea or useful links about that?
j
jonnyzzz
02/07/2019, 4:53 PM
you may use Kotlin multiplatform project to configure your build and project. It will open in IntelliJ IDEA or CLion.
jonnyzzz
02/07/2019, 4:54 PM
To start with, update your Kotlin plugin in the idea and select Kotlin / Kotlin/Native from the New Project wizard in IntellJ or CLion
Thanks for your answer! yeah i did it! with gradle i found something but using konan..
gianluz
02/07/2019, 4:57 PM
also another question, it is possible to produce the three executable in one shot from the same machine? cross-compiling i mean
d
dany
02/07/2019, 5:08 PM
you can compile mac only from mac and same goes for windows afaik
r
r4zzz4k
02/07/2019, 5:39 PM
https://youtrack.jetbrains.com/issue/KT-27320
This seems to cover your concern on using shared Native source set, so feel free to star it for yourself. You can also dig through linked issues to find something a bit more appropriate if needed.