ttypic / kmm-embedded-c Goto Github PK
View Code? Open in Web Editor NEWExtending KMM shared module with C/C++ code. Repo for https://hackernoon.com/how-to-extend-a-kmm-shared-module-with-cc-code
Extending KMM shared module with C/C++ code. Repo for https://hackernoon.com/how-to-extend-a-kmm-shared-module-with-cc-code
Hi @ttypic
Was trying to complete your tutorial on adding C code into KMP project but I'm hitting a bump.
Basically after setting everything up I'm able to run Android app without problem and it works fine with JNI etc.
However with iOS I'm constantly getting following error while trying to run the app:
> Task :shared:cinteropSha256IosSimulatorArm64 UP-TO-DATE
> Task :shared:iosSimulatorArm64Sha256 UP-TO-DATE
> Task :shared:compileKotlinIosSimulatorArm64 UP-TO-DATE
> Task :shared:linkDebugFrameworkIosSimulatorArm64 FAILED
error: Compilation failed: Linking globals named 'sha256_transform': symbol multiply defined!
* Source files:
* Compiler version: 1.9.10
* Output kind: FRAMEWORK
error: java.lang.Error: Linking globals named 'sha256_transform': symbol multiply defined!
at org.jetbrains.kotlin.backend.konan.llvm.DefaultLlvmDiagnosticHandler.handle(diagnosticReport.kt:25)
at org.jetbrains.kotlin.backend.konan.llvm.LlvmDiagnosticCollector.flush(diagnostics.kt:36)
at org.jetbrains.kotlin.backend.konan.llvm.LinkModulesKt.llvmLinkModules2(linkModules.kt:37)
at org.jetbrains.kotlin.backend.konan.CompilerOutputKt.linkAllDependencies(CompilerOutput.kt:129)
at org.jetbrains.kotlin.backend.konan.CompilerOutputKt.linkBitcodeDependencies(CompilerOutput.kt:155)
...
I'm wondering If you might have any guidance on what might be happening here on the iOS side. Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.