m4xw / rosettadrone_mini2

The Rosetta Drone 2 Project. Enable Mavlink and H.264 on DJI drones. Supports Mini 2 with Virt Stick Litchi CSV and DJI Waypoint class interpreters
BSD 3-Clause "New" or "Revised" License
28 stars 7 forks source link

Another instance of: FAILED: libdjivideojni.so #4

Closed tr0043t closed 3 years ago

tr0043t commented 3 years ago

Hi. Especially given the perpetual pushing back of the Mini 2 MSDK by DJI (now supposedly end of December -- don't hold your breath!) I'm very pleased to see this project! I've worked quite a bit with MAVLink and QGC, so I hope I'm able to contribute going forward (more waypoint actions would be high on my list). However, I'm so far unable to get an apk build, with linking currently stopped at:

FAILED: libdjivideojni.so

I've seen some discussion of this in other forks, but no general form solutions. Any advice on getting a runnable build (I've tried on Linux, CrOS, and Win10) would be greatly appreciated. I'm assuming no working apk is available for testing? Thanks very much!

tr0043t commented 3 years ago

After forcing a complete refresh from the repository, the build got past the failure noted above. The build now fails at the end with lint issues, which I'm looking at now ... Thanks!

tr0043t commented 3 years ago

This appears to be the problem:

Missing Default ../../src/main/res/layout-land/dialog_waypointsetting.xml:2: The layout "dialog_waypointsetting" in layout-land has no declaration in the base layout folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

3 android:layout_width="match_parent" 4 android:layout_height="wrap_content" 5 android:orientation="vertical"

tr0043t commented 3 years ago

And ... through the expedient of disabling lint, I'm now getting successful signed apk builds. Not installed or tested yet, but major progress. Thanks again for this great work!

tr0043t commented 3 years ago

Installed OK and MSDK registered OK ...

tr0043t commented 3 years ago

And it works! Bravo!

m4xw commented 3 years ago

I just copy the libs together in the intermediate build folder. I think smth goes south merging the libs together (jniLibs vs jar provided), didnt bother investigating tho. Gonna close it as u got it running.