Skip to content

Update README.md #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# OpenCV_Android_SDK

## Download sourcecode:
## OpenCV_Android_SDK

./build.sh download or ./build.sh download [version]
### Setup Enviroment:

## Build:
This setup to build OpenCV Android SDK for Android 9 (28) and Android 10 (30) and build on Ubuntu 18.
- sdk cmdline-tools path: /mnt/d/Android-SDK/cmdline-tools/bin
- SDK path: `/mnt/d/Android-SDK/Linux`
- NDK path: `/mnt/d/Android-SDK/Linux/ndk/21.4.7075529`

./build.sh or ./build.sh [version]
1. Install JDK: `sudo apt install default-jdk`
2. Install [sdk cmdline-tools](https://developer.android.com/studio#command-tools "sdk cmdline-tools") and add sdk cmdline-tools path to `.bashrc`
3. Download SDK, NDK, CMake: `sdkmanager "platform-tools" "platforms;android-28" "platforms;android-30" "ndk;21.4.7075529" "cmake;3.10.2.4988404" "build-tools;28.0.3" "build-tools;30.0.3" --sdk_root=/mnt/d/Android-SDK/Linux`

### Download OpenCV sourcecode:

`./build.sh download` or `./build.sh download [version]`

### Build OpenCV Android SDK:
edit config file: config.sh
then run `./build.sh` or `./build.sh [version]`