mavlink / MAVSDK-Java

MAVSDK client for Java.
73 stars 42 forks source link

How does MavSdk-Java mavsdk-server connect with mavsdk-core (C++)? QUESTION #160

Open Ba0Nguyen opened 4 months ago

Ba0Nguyen commented 4 months ago

For Android, I am using the below code inside of grade dependency to use the SDK. How does the mavsdk-server link with mavsdk-core? Does it link by downloading a prebuilt file of mavsdk-core from GitHub or I have an installed mavsdk-core system on my computer?

The reason I am asking is because when I try to use a modified sdk-java with new function in for example, core plugin and/or core.proto. It will have trouble linking with mansdk-core and crash the app.

implementation 'io.mavsdk:mavsdk:2.0.1' implementation 'io.mavsdk:mavsdk-server:2.0.0'

I am using the modified mavsdk dependency through a .jar file.

Screenshot 2024-05-12 at 4 27 30 PM

I would really appreciate if someone could give me guidance on how I can use the modified mavsdk-java and link it with my modified mavsdk-core. I think I need to add a PATH into my project to tell it to use the modified mavsdk-core headers file.

JonasVautherin commented 4 months ago

For Android, gradle gets the prebuilt binaries from src/main/prebuiltLibs, which are downloaded here.

If you want to use your own, I'd say just comment out those lines and put your binaries instead.