Hello, I just want to use Kotlin Native to access ...
# kotlin-native
c
Hello, I just want to use Kotlin Native to access OpenCV library But, cinterops only process c header but not c++ header Unfortunately OpenCV only has full access with c++ header, is there any solution can I access c++ header with cinterops to generate klib?
k
I can tell you how I worked around this, but you're not going to like it 🙂
I created a shim Obj-C/++ framework and used that with cinterop
c
It seems this is a solution, but could it use in Windows or Linux build?
s
Sadly, you'll need a c wrapper library.
c
Ok.... I will try it.
m
Or you can try
cinterop
from this branch: https://github.com/JetBrains/kotlin-native/pull/3262
c
Intresting, I will try it
building cinterop tools from source is really slow. hah