Android 配置多个 cmake
android同时可运行yolov5和yolo11模型,externalNativeBuild 配置多个cmake
externalNativeBuild {cmake {version "3.18.1"path file('libs/y5/CMakeLists.txt')}cmake {version '3.22.1'path file('libs/y11/CMakeLists.txt')} }
编译时出现错误:
ld: error: undefined symbol: std::__ndk1::__libcpp_verbose_abort(char const*
NDK出现错误,查看原ndk版本为25.1.8937393,而yolo11编译需26以上。
修改
ndkVersion '26.1.10909125'
编译通过!