Comments (4)
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.
Also I suggest removing the dependecies of the macosMain section as they get automatically included.
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.github.davidepianca98:kmqtt-common:0.4.1")
implementation("com.github.davidepianca98:kmqtt-client:0.4.1")
}
}
}
Let me know if this works.
Yes the project is compatible also with linuxArm64, you just need to include the target in the kotiln
section.
from kmqtt.
With recommended set up
still have error e: Could not find "openssl-macos-arm64"
It only works when I move the libs to home/.konan/klib
At this point my final script is:
but library only imports from .konan/klib
folder
Is there a way to avoid, and import library from a project folder?
PS: I see that openssl.def
has local paths from your machine.
from kmqtt.
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.
from kmqtt.
hm, actually I looked once again at the error 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 first place it looks for the is projectDir
(the actual name is replaced).
Once I placed the libraries into the root dir It started working, without need to mention open-ssl
in the script. Safely removed library from .konan
, cleaned project and it still works.
Until there's a way to place libs into a folder, keeping them in project dir.
Maybe this method will help to resolve the iOS issue too?
from kmqtt.
Related Issues (20)
- Can we use it in Android App as a background process? HOT 1
- Suggestions HOT 7
- Can we compile this code for android and iOS ? HOT 1
- HTTP header matching should be case insensitive to support more clients HOT 2
- Kotlin native could not find "openssl" HOT 8
- Can't download iOS dependencies (KMM) HOT 19
- Recurring crash of Client on JVM HOT 1
- Seeking help HOT 1
- Can't subscribe to topics after invoking client.run() HOT 5
- Unable to import MQTTClient in KMM project HOT 4
- connect to activemq HOT 6
- no default value for publishReceived
- callback for connect / disconnect & manage LWT HOT 2
- Artifact publication on Maven Central? HOT 3
- iOSBuild failed with Could not find 'openssl-its-simulator-arm64' HOT 2
- ssl server certificate not found (IOS only) HOT 4
- Failing to compile with Kotlin and Gradle KTS HOT 4
- "Unable to parse TLS packet header"-error caused by 0-byte-channel-read HOT 4
- Username and Password in the PacketInterceptor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kmqtt.