Skip to content

Commit b76f2e1

Browse files
Readme: how to avoid having .so overwritten (#187)
* Readme: how to avoid having .so overwritten This expands the docs on how to debug by copying in .so files. * Update README.md Co-authored-by: Jonas Vautherin <[email protected]> --------- Co-authored-by: Jonas Vautherin <[email protected]>
1 parent 85a2f3d commit b76f2e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ ossrhPassword=<password>
132132

133133
Sometimes you just need to rebuild `mavsdk_server` or even `libmavsdk_server.so` a couple of times to directly debug a problem.
134134

135-
This can be achieved with the Gradle [composite builds](https://docs.gradle.org/current/userguide/composite_builds.html). This is already setup in the Android example project [here](https://github.com/mavlink/MAVSDK-Java/blob/main/examples/android-client/settings.gradle#L3-L11) (just uncomment the lines to build `sdk` and/or `mavsdk_server` from sources, as described in the Gradle documentation).
135+
This can be achieved with the Gradle [composite builds](https://docs.gradle.org/current/userguide/composite_builds.html). This is already setup in the Android example project [here](https://github.com/mavlink/MAVSDK-Java/blob/main/examples/android-client/settings.gradle#L3-L11) (just uncomment the lines to build `sdk` and/or `mavsdk_server` from sources).
136+
136137

137138
Then you can just build the example and it will in turn build `mavsdk_server`.
138139

@@ -146,4 +147,6 @@ tools/generate_mavlink_headers.sh
146147
./dockcross-android-arm64 cmake --build build/android-arm64 --target install && cp build/android-arm64/install/lib/libmavsdk_server.so ../mavsdk-android-test/mavsdk_server/src/main/prebuiltLibs/arm64-v8a/libmavsdk_server.so
147148
```
148149

150+
To avoid keep getting the file overwritten, comment out the [function downloading and extracting the .so library artifacts](https://github.com/mavlink/MAVSDK-Java/blob/85a2f3d5f96d67c1919f52c67f5f6bdbc7607486/mavsdk_server/build.gradle#L24-L53).
151+
149152
Now build, install, run the Android app again.

0 commit comments

Comments
 (0)