Skip to content

(3.4) android: backport build_sdk.py - #13967

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:backport_android_build_py
Mar 5, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:backport_android_build_py

Conversation

@alalek

@alalek alalek commented Mar 4, 2019 •

Copy link
Copy Markdown
Member

backport #13939

force_builders=Android pack

@alalek

alalek commented Mar 5, 2019

Copy link
Copy Markdown
Member Author

👍

@opencv-pushbot
opencv-pushbot merged commit 480c6da into opencv:3.4 Mar 5, 2019
@alalek alalek mentioned this pull request Mar 5, 2019
@hurzl

hurzl commented Mar 5, 2020 •

Copy link
Copy Markdown

Can't find cmake

Executing: ['~/Android/Sdk/cmake/3.10.2.4988404/bin/cmake', '--version']
Failed: can't concat str to bytes
Traceback (most recent call last):
  File "~/android/opencv/opencv-3.4.9/platforms/android/build_sdk.py", line 440, in <module>
    builder = Builder(args.work_dir, args.opencv_dir, args)
  File "~/android/opencv/opencv-3.4.9/platforms/android/build_sdk.py", line 155, in __init__
    self.cmake_path = self.get_cmake()
  File "~/android/opencv/opencv-3.4.9/platforms/android/build_sdk.py", line 171, in get_cmake
    raise Fail("Can't find cmake")
__main__.Fail: Can't find cmake
# ~/Android/Sdk/cmake/3.10.2.4988404/bin/cmake --version
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
#

cmake installed from Android Studio

@alalek

alalek commented Mar 5, 2020

Copy link
Copy Markdown
Member Author

Failed: can't concat str to bytes

Python version? OS?

~/

Some shells can't handle that properly. Try to use full path.

@hurzl

hurzl commented Mar 5, 2020 •

Copy link
Copy Markdown

Python version? OS?

Python 3.8.1
linux 4.19.102-1-MANJARO

Some shells can't handle that properly. Try to use full path.

I removed that only here

... Maybe it should be added somewhere that python2 is needed?

SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: build/install platform: android port/backport done Label for maintainers. Authors of PR can ignore this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants