Code Monkey home page Code Monkey logo

Comments (4)

davidepianca98 avatar davidepianca98 commented on May 23, 2024

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.

alkurop avatar alkurop commented on May 23, 2024

With recommended set up

Screenshot 2023-07-25 at 14 26 25

still have error e: Could not find "openssl-macos-arm64"

It only works when I move the libs to home/.konan/klib

Screenshot 2023-07-25 at 14 10 13

At this point my final script is:

Screenshot 2023-07-25 at 14 45 39

but library only imports from .konan/klibfolder
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.

davidepianca98 avatar davidepianca98 commented on May 23, 2024

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.

alkurop avatar alkurop commented on May 23, 2024

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.
Screenshot 2023-07-25 at 18 29 31

Maybe this method will help to resolve the iOS issue too?

from kmqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.