How can i build opencv 3.2.0 on Android with build_sdk.py

asked 2017-04-03 07:13:21 -0600

ho__oh gravatar image

I run the file /platforms/android/build_sdk.py but get the following error:

[1173/1190] Building OpenCV Android library project
FAILED: bin/classes.jar bin/classes.jar.dephelper
cd /Users/hailuongquang/3rd/opencv/build/lean_android/o4a && /usr/local/bin/ant -q -noinput -k debug -Djava.target=1.6 -Djava.source=1.6 && /usr/local/Cellar/cmake/3.7.2/bin/cmake -E touch /Users/hailuongquang/3rd/opencv/build/lean_android/o4a/bin/classes.jar.dephelper
Buildfile: build.xml does not exist!
Build failed
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "opencv/platforms/android/build_sdk.py", line 305, in <module>
    builder.build_library(abi, do_install)
  File "opencv/platforms/android/build_sdk.py", line 150, in build_library
    execute(["ninja"])
  File "opencv/platforms/android/build_sdk.py", line 20, in execute
    raise Fail("Child returned: %s" % retcode)
__main__.Fail: Child returned: 1

Could any help me with this?

edit retag flag offensive close merge delete

Comments

I totally agree. The amount of help centered around building OpenCV4Android is really not good. But,it looks like it is trying to do some form of installation. But, in case you were wondering about usage, here is another question about the same thing, that was answered: http://answers.opencv.org/question/73...

Hope it helps!

g3org3 gravatar imageg3org3 ( 2017-07-14 14:33:05 -0600 )edit