macOS平台(intel)编译MAVSDK安卓平台SO库
1.下载MAVSDK:
git clone https://github.com/mavlink/MAVSDK.git --recursive
2.编译liblzma
修改CMakeLists.txt文件增加C与CXX指令-fPIC
set(CMAKE_C_FLAGS "-fPIC ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS}")
修改如下:
执行下面脚本生成并