Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Kotlin Blueprints

You're reading from   Kotlin Blueprints A practical guide to building industry-grade web, mobile, and desktop applications in Kotlin using frameworks such as Spring Boot and Node.js

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781788390804
Length 260 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Akshay Chordiya Akshay Chordiya
Author Profile Icon Akshay Chordiya
Akshay Chordiya
Ashish Belagali Ashish Belagali
Author Profile Icon Ashish Belagali
Ashish Belagali
Hardik Trivedi Hardik Trivedi
Author Profile Icon Hardik Trivedi
Hardik Trivedi
Arrow right icon
View More author details
Toc

Installing Kotlin Native


We can install Kotlin Native from the source, or grab the binaries from the web. Feel free to go with any method you prefer; the end result will be the same.

Installing from the source

In order to install Kotlin Native on our machine, we need to compile it from the source. Follow these steps to download the source and compile it:

  1. Clone the Kotlin Native compiler source using the following command:
      git clone https://github.com/JetBrains/kotlin-native.git
  1. Let's switch to the cloned directory using  cd kotlin-native.
  2. Download the dependencies using ./gradlew dependencies:update.
  3. Then build the compiler and libraries. We should use ./gradlew bundle, but it can take a few hours to build. Therefore, we will build only with the host compiler and the libraries using ./gradlew dist distPlatformLibs, which should build pretty quickly.
  4. Add the Kotlin compiler to the environment variables (the steps to add it vary). The following command should ideally work on most systems:export...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image