-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nativeMain build error (commonMain -> mingwX64 native #29
Comments
more error message, `Execution failed for task ':compileKotlinNative'.
|
Thanks for the logs! I'll have a look into it. |
The artifact for mingwx64 is published, but the common library module.xml doesn't contain it. I'll have to look into what is going on with gradle publishing there. |
Hey @hansimmmi this should be fixed in the snapshot release now. The original cause was somewhat of a regression. When kotlin enabled automatic cross-compiling on linux for windows targets I disabled windows target on linux build because it didn't have access to libsodium that was being built on a real windows machine. I forgot that it will remove mingw from the module.xml. Now it's fixed by leaving the target on linux, but disabling linking, compilation and publishing. Could you please try the snapshot and tell me if everything is working as expected? This is the snapshot version setup:
If everything is fine I'll release a stable 0.8.8 with this fix. Thanks! |
@ionspin Thank you for prompt reply! `Task :compileCommonMainKotlinMetadata FAILED java.lang.IllegalStateException: e: Could not find "/Users///*/build/kotlinSourceSetMetadata/commonMain/com.ionspin.kotlin-multiplatform-crypto-libsodium-bindings/com.ionspin.kotlin-multiplatform-crypto-libsodium-bindings-commonMain.klib" in [/Users//Library/Application Support/kotlin/daemon] Execution failed for task ':compileCommonMainKotlinMetadata'.
|
Just in case, I ran build the module in Windows machine, has similar issue with snapshot build.
|
Hi @hansimmmi , I tried the latests snapshot by using a standalone project on mac, windows and a fresh linux virtual machine and I cannot reproduce the problem you are seeing and I suspect it might be a problem with your gradle caches. Could you try to run your gradle build with |
@ionspin After remove all the caches it build ok now. Thank you for prompt action! |
Hi, I am trying to test the module on Multiplatform on android, iOS and native platform, Kmm project build fine for android and IOS project, but error with native Main.
simply added sourceSet of commonMain with
implementation("com.ionspin.kotlin:multiplatform-crypto-libsodium-bindings:0.8.7")
My mingwX64 setup is
mingwX64("native") { binaries { sharedLib { baseName = "libnative" } } }
Any idea?
`mtkSharedModule:nativeMain: Could not resolve com.ionspin.kotlin:multiplatform-crypto-libsodium-bindings:0.8.7.
Required by:
project :
Possible solution:
The text was updated successfully, but these errors were encountered: