Building libuvc on Ubuntu
1 | git clone https://github.com/saki4510t/UVCCamera.git |
打开Android Studio,File->Open打开UVCCamera文件夹。
修改Project/build.gradle文件,修改以下部分:
1 | ext { |
File->Project Structure,修改Android SDK location和Android NDK
location,例如Android SDK location: /home/luohanjie/Android/Sdk
,Android NDK location: /home/luohanjie/Android/Sdk/ndk/android-ndk-r21
。
修改Project/libuvccamera/src/main/jni/Application.mk,
1 | APP_PLATFORM := android-21 |
然后Build->Make Project。