编译dlib
新建项目,选择c++支持,在CMakeLists.txt中添加dlib:
include(src/main/cpp/dlib/cmake)
再链接dlib库
target_link_libraries( # Specifies the target library.
native-lib
dlib
# Links the target library to the log library
# included in the NDK.
${log-lib} )