https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kotlin-native
  • t

    tylerwilson

    10/10/2018, 11:31 PM
    So I tried using the new Kotlin 1.3 RC plugin Mobile Shared Library project generator in IntellJ IDEA. It generates a nice looking project, but I do not see any commands to generate the iOS Framework. What might I be missing?
    t
    3 replies · 2 participants
  • s

    Seri

    10/11/2018, 2:49 AM
    Does Kotlin Native have a UUID type?
    g
    2 replies · 2 participants
  • k

    kenkyee

    10/11/2018, 6:38 AM
    First cross platform project for you? That's usually a comment from someone who's never done one 😉
    🤣 4
    :trollface: 4
    s
    2 replies · 2 participants
  • l

    Leonid Popescu

    10/12/2018, 6:47 AM
    Did I miss something or now the global variables are not exported anymore to the iOS Framework? (I’m not saying global variables should be used)
    s
    o
    3 replies · 3 participants
  • h

    hmole

    10/12/2018, 1:16 PM
    Why is constructor for
    NSLayoutConstraint
    not available from generated Kotlin bindings? Anything I'm missing?
    s
    s
    2 replies · 3 participants
  • s

    schlan

    10/13/2018, 10:51 AM
    Hey y'all, I'm playing around with Kotlin Native and running into some troubles. My current idea is to write a shared network client for an android & ios app. The API utilizes websockets, I guess my first question is, is that even possible? Can I use Ktor's websocket client on both platforms? native and jvm? I haven't found any details about this online. Currently, I'm just trying to get set up and import the ktor client into my project. I created a multiplatform project with the IntelliJ IDEA 2018.03 EAP wizard. All I basically did was adding the Ktor dependency (like shown in the KotlinConf app) and creating an instance of
    HttpClient
    in the common source folder. Compiling the jar works but when building for iOS I run into this error:
    ./gradlew :kotlin-native-common:linkDebugFrameworkIos
    
    ....
    
    > Task :kotlin-native-common:linkDebugFrameworkIos
    kotlin-native-v2-common/src/commonMain/kotlin/com/sebchlan/chat/Chat.kt:3:8: error: unresolved reference: io
    import io.ktor.client.HttpClient
           ^
    kotlin-native-v2-common/src/commonMain/kotlin/com/sebchlan/chat/Chat.kt:8:15: error: unresolved reference: HttpClient
        val bla = HttpClient {
                  ^
    g
    o
    7 replies · 3 participants
  • s

    schlan

    10/13/2018, 10:52 AM
    Is it maybe a version mismatch?
    kotlin_version=1.3.0-rc-146
    coroutines_version=0.30.2-eap13
    ktor_version=1.0.0-alpha-1
    serialization_version=0.8.1-rc13
    d
    9 replies · 2 participants
  • f

    fabianterhorst

    10/13/2018, 5:00 PM
    is it already possible to use kotlin native 1.0? https://github.com/JetBrains/kotlin-native/releases/tag/v1.0
    o
    n
    4 replies · 3 participants
  • m

    marcinmoskala

    10/14/2018, 8:55 AM
    Anyone have any idea what is wrong with KotlinConf application after migration to mutliplatform Gradle plugin? It throws: Unknown Gradle platform NATIVE https://github.com/JetBrains/kotlinconf-app
    l
    s
    3 replies · 3 participants
  • q

    Quang Luong

    10/14/2018, 2:02 PM
    Does anyone know how to config cinterop for the new kotlin native plugin ?
    1 reply · 1 participant
  • m

    Matej Kormuth

    10/14/2018, 4:04 PM
    Hello, what is the IDE I can use for development of kotlin/native application with some code in C / C++? Should I use CLion or IntelliJ? Also what version?
    l
    n
    6 replies · 3 participants
  • a

    agrosner

    10/14/2018, 11:31 PM
    which IDE should I use for Kotlin Native, if im writing a kotlin library to be consumed by ios kotlin projects? AppCode, CLion, or Intellij Ultimate?
    n
    o
    6 replies · 3 participants
  • j

    jkbbwr

    10/15/2018, 10:00 AM
    (my goal is to end up with a single bitcode file for all of my program including any runtime functions)
    o
    k
    +1
    6 replies · 4 participants
  • r

    ralf

    10/15/2018, 5:20 PM
    We’re just getting started with Kotlin Native and Multiplatform. Is there a good sample where the Kotlin Native library is importing another iOS library? Our goal is then to export the Kotlin Native library, but not necessarily as a fat binary if that works
    k
    8 replies · 2 participants
  • m

    Matej Kormuth

    10/15/2018, 8:22 PM
    Does anyone tried to use GLFW with kotlin native? Declarations like
    typedef struct GLFWwindow GLFWwindow;
    in GLFW are being mapped to
    kotlinx.cinterop.CPointer<cnames.structs.GLFWwindow>?
    and have "ERROR" texts in IDE next to them.
    d
    o
    +1
    16 replies · 4 participants
  • m

    Matej Kormuth

    10/15/2018, 11:16 PM
    How to use GLEW from Kotlin? Functions like
    glCreateShader
    are defined with preprocessor macro:
    #define glCreateShader GLEW_GET_FUN(__glewCreateShader)
    where macro is defined as
    #define GLEW_GET_FUN(x) x
    but in klib there is only
    __glewCreateShader
    variable
    public var __glewCreateShader: glew.PFNGLCREATESHADERPROC? /* = kotlinx.cinterop.CPointer<kotlinx.cinterop.CFunction<(glew.GLenum /* = kotlin.UInt */) -> glew.GLuint /* = kotlin.UInt */>>? */ /* compiled code */
    and not the function.
    m
    d
    6 replies · 3 participants
  • d

    David

    10/16/2018, 8:32 AM
    I have problems with a memory leak when sending objects from a kotlin framework to an objective c class. Basically, once the object has been sent to objective c it is never released. Have I done anything stupid or is this a bug? I will put the code in the thread, but the full project is available here: https://github.com/dtornqvist/LeakingProblem
    s
    o
    23 replies · 3 participants
  • a

    agrosner

    10/16/2018, 3:08 PM
    Syncing works fine. but when I go to build the Xcode project and run, when gradle run it gets this error
    s
    o
    5 replies · 3 participants
  • h

    Hamza

    10/17/2018, 12:54 AM
    Hi,is there any documentation on how the .def file works and what those paths really mean? I’ve been able to follow the kotlin-native github repo to get it working, but it would be better if i understand what’s actually going on
    o
    1 reply · 2 participants
  • h

    hmole

    10/17/2018, 9:05 AM
    How do I map NSError to kotlin Exception and throw it? This says it's not implmemented yet. https://github.com/JetBrains/kotlin-native/blob/master/OBJC_INTEROP.md#errors-and-exceptions
    s
    1 reply · 2 participants
  • q

    Quang Luong

    10/17/2018, 10:27 AM
    I am trying to make a Kotlin/Native wrapper for
    lwan
    web framework. But after cinterop and stuff, I always run into this issue ---- To compile normal app in C with lwan, this command would work clang runApp.c -o samplelwan -Wl,-whole-archive -I../src/lib ../build/src/lib/liblwan.a -Wl,-no-whole-archive -lz -lpthread -llua5.1 -lm
    -.txt
    o
    m
    27 replies · 3 participants
  • h

    hmole

    10/17/2018, 10:58 AM
    Is it intended that using function reference on a frozen(
    myObj::func
    ) object throws an error, but if you make a val out of it before freezing it works fine?
    o
    3 replies · 2 participants
  • y

    yusuf3000

    10/17/2018, 12:45 PM
    What does
    runtime assert: Unknown open method
    mean in layman terms?
    o
    2 replies · 2 participants
  • h

    hmole

    10/17/2018, 2:01 PM
    Is there a way to add entries to
    Info.plist
    for framework without doing it manually through updating the file after compilation?
    s
    o
    +2
    6 replies · 5 participants
  • r

    rafal.adasiewicz

    10/17/2018, 3:18 PM
    Hi, I am creating a simple multiplatform project (Android, iOS) and I have a problem with UI CoroutineDispatcher for iOS. As Roman Elizarov mentioned in this thread https://github.com/Kotlin/kotlinx.coroutines/issues/462#issuecomment-429233477 I’ve added https://github.com/JetBrains/kotlinconf-app/blob/master/konfios/konfswift/ui/UI.swift dispatcher to my iOS app, but for some reason compiler says that
    Kotlinx_coroutines_core_nativeCoroutineDispatcher
    is undeclared. Moreover, I’ve spotted that if I go with the second solution https://github.com/Kotlin/kotlinx.coroutines/issues/470#issuecomment-414635811 everything works fine and
    Kotlinx_coroutines_core_nativeCoroutineDispatcher
    is declared properly. Why does
    Kotlinx_coroutines_core_nativeCoroutineDispatcher
    type disappears in the first approach? I am using:
    coroutines - '0.30.2-eap13'
    kotlin_version = '1.3.0-rc-146'
    Gradle version =  4.7
    a
    8 replies · 2 participants
  • s

    spierce7

    10/18/2018, 5:58 AM
    I'm getting an Exception when trying to compile Kotlin/native, and the gradle stacktrace isn't very helpful:
    No descriptor for type {[@kotlin.ParameterName] T & Any}?
    h
    o
    +1
    7 replies · 4 participants
  • s

    spierce7

    10/18/2018, 1:13 PM
    @olonho I'm doing some theory crafting here. If I were to store an
    NSMutableArray
    cast to a
    List<>
    in the following object, would this have any problems being frozen shared between threads safely in Kotlin/native?
    s
    k
    +1
    48 replies · 4 participants
  • l

    louiscad

    10/18/2018, 3:19 PM
    Hi, I'd like to write this Swift code in Kotlin/Native:
    let label = UILabel(frame: CGRect(x: 0, y: 0, width: 300, height: 21))
            label.center = CGPoint(x: 160, y: 285)
            label.textAlignment = .center
            label.font = label.font.withSize(25)
            label.text = CommonKt.createApplicationScreenMessage()
            view.addSubview(label)
    Per the Obj-C interop doc, I should be able to write
    val label = UILabel.create(frame: CGRect.create(x = 0, y = 0, width = 300, height = 21))
    for the first line, but there's no
    create(…)
    function in the autocomplete when using IntelliJ CE 2018.3 EAP with Kotlin 1.3.0-rc-146… Can anyone give me a hint?
    r
    a
    +1
    6 replies · 4 participants
  • q

    Quang Luong

    10/18/2018, 5:15 PM
    I don't understand why the program just crashs with the segmentation fault (core dumped) but if I comment out line 18 (
    set_response(res)
    ), it would work. It does nothing except passing the response pointer around.
    -.kt
    o
    3 replies · 2 participants
  • n

    nayanjyoti

    10/18/2018, 7:27 PM
    Hi guys, I’m a total newbie on kotlin native/multiplatform projects. I tried to create a multi-platform project in idea community edition using the new project template. it created a build.gradle file like this.
    plugins {
        id 'kotlin-multiplatform' version '1.3.0-rc-146'
    }
    
    repositories {
        maven { url '<http://dl.bintray.com/kotlin/kotlin-eap>' }
        mavenCentral()
    }
    group 'com.example.sample'
    version '0.0.1'
    
    apply plugin: 'maven-publish'
    
    kotlin {
        targets {
            fromPreset(presets.jvm, 'jvm')
            fromPreset(presets.js, 'js')
            // For ARM, preset should be changed to presets.iosArm32 or presets.iosArm64
            // For Linux, preset should be changed to e.g. presets.linuxX64
            // For MacOS, preset should be changed to e.g. presets.macosX64
            fromPreset(presets.macosX64, 'macos')
        }
        sourceSets {
            commonMain {
                dependencies {
                    implementation 'org.jetbrains.kotlin:kotlin-stdlib-common'
                }
            }
            commonTest {
                dependencies {
                    implementation 'org.jetbrains.kotlin:kotlin-test-common'
                    implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
                }
            }
            jvmMain {
                dependencies {
                    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
                }
            }
            jvmTest {
                dependencies {
                    implementation 'org.jetbrains.kotlin:kotlin-test'
                    implementation 'org.jetbrains.kotlin:kotlin-test-junit'
                }
            }
            jsMain {
                dependencies {
                    implementation 'org.jetbrains.kotlin:kotlin-stdlib-js'
                }
            }
            jsTest {
                dependencies {
                    implementation 'org.jetbrains.kotlin:kotlin-test-js'
                }
            }
            macosMain {
                dependencies {
                }
            }
            macosTest {
            }
        }
    }
    in the macos main module i want to include the ncurses library. So I changed the part as
    macosMain {
                dependencies {
                 cinterop('ncurses') {
                        // something more
                    }
                }
            }
    I am getting error
    Could not find method cinterop() for arguments [ncurses, build_1mx5jx84o9toi8bpdxyehixos$_run_closure2$_closure6$_closure13$_closure21$_closure22@836eb38] on object of type org.jetbrains.kotlin.gradle.plugin.mpp.DefaultKotlinDependencyHandler.
    Also I’m a total newbie to c/cpp or native world, so i may be doing something really stupid. if anyone can help i would b really grateful.
    o
    6 replies · 2 participants
Powered by Linen
Title
n

nayanjyoti

10/18/2018, 7:27 PM
Hi guys, I’m a total newbie on kotlin native/multiplatform projects. I tried to create a multi-platform project in idea community edition using the new project template. it created a build.gradle file like this.
plugins {
    id 'kotlin-multiplatform' version '1.3.0-rc-146'
}

repositories {
    maven { url '<http://dl.bintray.com/kotlin/kotlin-eap>' }
    mavenCentral()
}
group 'com.example.sample'
version '0.0.1'

apply plugin: 'maven-publish'

kotlin {
    targets {
        fromPreset(presets.jvm, 'jvm')
        fromPreset(presets.js, 'js')
        // For ARM, preset should be changed to presets.iosArm32 or presets.iosArm64
        // For Linux, preset should be changed to e.g. presets.linuxX64
        // For MacOS, preset should be changed to e.g. presets.macosX64
        fromPreset(presets.macosX64, 'macos')
    }
    sourceSets {
        commonMain {
            dependencies {
                implementation 'org.jetbrains.kotlin:kotlin-stdlib-common'
            }
        }
        commonTest {
            dependencies {
                implementation 'org.jetbrains.kotlin:kotlin-test-common'
                implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
            }
        }
        jvmMain {
            dependencies {
                implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
            }
        }
        jvmTest {
            dependencies {
                implementation 'org.jetbrains.kotlin:kotlin-test'
                implementation 'org.jetbrains.kotlin:kotlin-test-junit'
            }
        }
        jsMain {
            dependencies {
                implementation 'org.jetbrains.kotlin:kotlin-stdlib-js'
            }
        }
        jsTest {
            dependencies {
                implementation 'org.jetbrains.kotlin:kotlin-test-js'
            }
        }
        macosMain {
            dependencies {
            }
        }
        macosTest {
        }
    }
}
in the macos main module i want to include the ncurses library. So I changed the part as
macosMain {
            dependencies {
             cinterop('ncurses') {
                    // something more
                }
            }
        }
I am getting error
Could not find method cinterop() for arguments [ncurses, build_1mx5jx84o9toi8bpdxyehixos$_run_closure2$_closure6$_closure13$_closure21$_closure22@836eb38] on object of type org.jetbrains.kotlin.gradle.plugin.mpp.DefaultKotlinDependencyHandler.
Also I’m a total newbie to c/cpp or native world, so i may be doing something really stupid. if anyone can help i would b really grateful.
o

orangy

10/18/2018, 7:58 PM
It should look something like this:
fromPreset(presets.macosX64, 'sdl2macos') {
                compilations.main {
                    cinterops {
                        sdl {
                            defFile = file("sdl2/interop/sdl2.def")
                        }
                    }
                }
            }
n

nayanjyoti

10/18/2018, 8:34 PM
thanks @orangy. this worked. gradle build is working. the def file i have is
headers = /usr/local/opt/ncurses/include/ncurses.h
headerFilter = /usr/local/opt/ncurses/include/ncursesw/*
linkerOpts.osx = -L/usr/local/opt/ncurses/lib -lncurses
The paths are all okay. the file
/usr/local/opt/ncurses/include/ncurses.h
is the header file from the installation of homebrew on mac mojave. I used the command
cinterop -def src/macosMain/ncurses.def -compilerOpts -I/usr/local/opt/ncurses/include -o src/macosMain/lib/ncurses
to generate the binding to look into the functions. On executing, a kotlin file is created at the path
src/macosMain/lib/ncurses-build/kotlin/ncurses/ncurses.kt
. The content od the file is empty. (apart from the package import and @file statements).content is below
@file:kotlinx.cinterop.InteropStubs
@file:Suppress("UNUSED_VARIABLE", "UNUSED_EXPRESSION")
package ncurses

import kotlin.native.SymbolName
import kotlinx.cinterop.*

// NOTE THIS FILE IS AUTO-GENERATED
This doesn’t seem right. I’m not even sure if I’m doing the right thing here. 😞
o

orangy

10/18/2018, 8:37 PM
You don’t need to run
cinterop
manually, gradle task should handle it for you. Please check https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md for more information about
.def
files
Also it’s better to ask Kotlin/Native related questions in #kotlin-native channel
🤔 2
n

nayanjyoti

10/18/2018, 8:42 PM
@orangy: Yes, I understand that. I was trying the cinterop when I hadn’t seen ur reply. However the generated file was empty like above. On running the gradle build, the generated kotlin file is empty, which doesn’t seem right. Can u suggest what I might be doing wrong? We r in the #kotlin-native channel only. 🙈
This is the cinterop section in build.gradle
fromPreset(presets.macosX64, 'macos') {
            compilations.main {
                cinterops {
                    ncurses {
                        defFile = file('src/macosMain/ncurses.def')
                        includeDirs '/usr/local/opt/ncurses/include'
                    }
                }
            }
        }
View count: 5