-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Can't use client library for macos arm 64 #18
Comments
Hello, as you can see the file that could not be found is here https://github.com/davidepianca98/KMQTT/tree/master/kmqtt-common/src/nativeInterop and is bundled with the dependencies you included. I suggest trying to invert the lines so that common is before client in the commonMain section.
Let me know if this works. Yes the project is compatible also with linuxArm64, you just need to include the target in the |
Your final script is correct. Unfortunately the problem is that with Apple targets the openssl klib doesn't get included in the dependency package, as mentioned in #17. I still haven't found a solution for that. |
I cloned the repo and published
common
andclient
to maven local.My project script is just one file
I have my
main
function insrc/commonMain/kotlin/Main
Intellij indexer shows that I can import the MQTT library. Project compilation fails with
e: Could not find "openssl-macos-arm64" in [projectDir, /Users/alex/.konan/klib, /Users/alex/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.0/klib/common, /Users/alex/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.0/klib/platform/macos_arm64]
The text was updated successfully, but these errors were encountered: