Bananasmoothii
01/03/2025, 10:03 PMbuildSrc
folder is huge. For instance, Skiko doesn't even have a CMakeLists.txt
, and I don't understand how it works without it.
Superpowered has an example about how to use the library with React Native, but I'm not sure about how to adapt it to Kotlin Multiplatform. (This example does have a CMakeLists.txt
)
Maybe there is a simpler example than Skiko that would allow me to run C++ code from Compose Multiplatform ?appgen
01/04/2025, 6:25 AMappgen
01/04/2025, 6:26 AMSargun Vohra
01/04/2025, 8:02 AMcinterop
.
If you're targeting web, I assume you'd have to compile the C++ library to Wasm and call into that, if it's possible at all.Michael Paus
01/04/2025, 9:10 AMSargun Vohra
01/04/2025, 10:48 AMSargun Vohra
01/04/2025, 10:50 AMSargun Vohra
01/04/2025, 10:51 AMMichael Paus
01/04/2025, 11:08 AMBananasmoothii
01/04/2025, 11:11 AMSargun Vohra
01/04/2025, 11:21 AMBananasmoothii
01/04/2025, 12:36 PMiosMain/kotlin/Greeting.ios.kt
, why is it necessary to have a freeMemoryNative
function if the code is wrapped in a memScoped
? Isn't the point of memScoped
to free all the memory after leaving?
• The Gradle build file uses the cklib
plugin, but I'm not sure about how useful it is since android has externalNativeBuild { cmake ...
and iOS has cinterops... Also, ./gradlew.bat build
works even with the cklib section and plugin commented out, but as I am on Windows, I cannot test iOS builds...appgen
01/05/2025, 1:16 AMmemScoped
is sufficientappgen
01/05/2025, 1:18 AMcklib
is not in use, it's a hangover from original sampleappgen
01/05/2025, 1:20 AMMichael Paus
01/05/2025, 9:29 AMBananasmoothii
01/05/2025, 11:03 AMBananasmoothii
01/05/2025, 12:32 PMappgen
01/06/2025, 4:08 AMappgen
01/06/2025, 4:09 AMFrançois
01/06/2025, 7:01 AMBananasmoothii
01/06/2025, 7:45 AMBananasmoothii
01/06/2025, 7:46 AMappgen
01/06/2025, 9:33 AMappgen
01/06/2025, 9:35 AMappgen
01/06/2025, 9:39 AMappgen
01/06/2025, 9:40 AMappgen
01/06/2025, 9:45 AMappgen
01/06/2025, 9:49 AMBananasmoothii
01/06/2025, 10:37 AMBananasmoothii
01/07/2025, 5:07 PMappgen
01/08/2025, 10:19 AMBananasmoothii
01/08/2025, 10:19 AMBananasmoothii
01/08/2025, 10:20 AMappgen
01/09/2025, 12:58 AMappgen
01/09/2025, 1:02 AMBananasmoothii
01/09/2025, 4:30 PMAndy Dent
02/14/2025, 2:36 AMbasically create a C wrapper for c++ header files containing methods you wish to expose.something to consider, at least if you run into problems, is building a plain C program to call the libs and ensure that all is well before the complexities of interop come in on top