1.下载好mavsdk并进入mavsdk目录
2.生成docker安卓平台文件
docker run --rm dockcross/android-arm64 >./dockcross-android-arm64
3.生成makefile
./dockcross-android-arm64 cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MAVSDK_SERVER=ON -DBUILD_SHARED_LIBS=OFF -Bbuild/android-arm64 -S.
makefile生成成功
编译:
./dockcross-android-arm64 cmake --build build/android-arm64 -j8
编译成功