Skip to content
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

Build OpenCV4Android with cmdline-tools #23642

Closed
wants to merge 1 commit into from

Conversation

dkurt
Copy link
Member

@dkurt dkurt commented May 18, 2023

Pull Request Readiness Checklist

resolves #21735

Fix build process with the following pipeline. Note that versioning of cmdline-tools is different. The latest one is 9.0.

wget https://dl.google.com/android/repository/commandlinetools-linux-9477386_latest.zip
unzip commandlinetools-linux-9477386_latest.zip -d sdk
yes | ./sdk/cmdline-tools/bin/sdkmanager --licenses --sdk_root=./sdk/
./sdk/cmdline-tools/bin/sdkmanager --install "cmake;3.22.1" --sdk_root=./sdk/
./sdk/cmdline-tools/bin/sdkmanager --install "ndk;25.1.8937393" --sdk_root=./sdk/
./sdk/cmdline-tools/bin/sdkmanager --install "build-tools;33.0.2" --sdk_root=./sdk/

python3 $HOME/opencv/platforms/android/build_sdk.py --sdk_path=$HOME/sdk --no_samples_build --config=$HOME/opencv/platforms/android/ndk-25.config.py

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@dkurt dkurt added this to the 4.8.0 milestone May 18, 2023
@dkurt dkurt changed the title Build OpenCV4Android using command-line sdk manager Build OpenCV4Android with cmdline-tools May 18, 2023
@dkurt
Copy link
Member Author

dkurt commented May 18, 2023

track #21736

@dkurt dkurt closed this May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building OpenCV for Android using Android cmdline-tools
1 participant