Artem-Darius Weber
bb2dc1e41e
|
2 months ago | |
---|---|---|
.. | ||
code_fragments | 2 months ago | |
examples | 2 months ago | |
librealsense | 2 months ago | |
tools/camera | 2 months ago | |
.gitignore | 2 months ago | |
build.gradle | 2 months ago | |
config.cmake | 2 months ago | |
gradle.properties | 2 months ago | |
gradlew | 2 months ago | |
gradlew.bat | 2 months ago | |
readme.md | 2 months ago | |
settings.gradle | 2 months ago |
readme.md
Build RealSense SDK for Android OS
This document describes how to build the Intel® RealSense™ SDK 2.0 including headless tools and examples for Android devices.
Read about Android support here.
Instructions
Build With Gradle
To build the AAR from command line, simply navigate to <librealsense_root_dir>/wrappers/android
and run gradlew assembleRelease
on Windows host or ./gradlew assembleRelease
on Linux host.
If the build succeeded, the generated AAR will be located in <librealsense_root_dir>/wrappers/android/librealsense/build/outputs/aar
Build With Android Studio
- Download and install Android Studio IDE.
- Clone the latest RealSense™ SDK 2.0 to your host machine.
- Open Android Studio
- Open the Android project: Menu Bar-->File-->Open-->path to build.gradle
- In the gradle tasks run :librealsense-->build-->assembleRelease:
The build will take few minutes since the library is built for 4 different ABI configurations.
If the build succeeded, the generated AAR will be located in <librealsense_root_dir>/wrappers/android/librealsense/build/outputs/aar
You can also build and run any of the example apps from this project by selecting it from the 'Configuration box' and run it while your target phone is connected: