Failed to build OpenCV for Android 2.4.11 under Ubuntu 16.04

asked 2017-01-23 07:29:38 -0500

Hi, i am getting error when try to build OpenCV for Android (version 2.4.11) under Ubunto 16.04. It failed at 97% Building OpenCV Android library project with error Buildfile: build.xml does not exist! Build failed modules/java/CMakeFiles/opencv_java.dir/build.make:17555: recipe for target 'bin/classes.jar' failed make[2]: [bin/classes.jar] Error 1 CMakeFiles/Makefile2:6551: recipe for target 'modules/java/CMakeFiles/opencv_java.dir/all' failed make[1]: [modules/java/CMakeFiles/opencv_java.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: * [all] Error 2

i checked the link 17555 to 17557 of build.make is as following:-

@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold --progress-dir=/home/mx/opencv2_4_11/opencv-2.4.11/mybuild/CMakeFiles --progress-num=$(CMAKE_PROGRESS_101) "Building OpenCV Android library project"
/usr/bin/ant -q -noinput -k debug
/usr/bin/cmake -E touch /home/mx/opencv2_4_11/opencv-2.4.11/mybuild/bin/classes.jar.dephelper

Does anyone has any idea on the error and why this occur? Thanks.

edit retag flag offensive close merge delete


Did you find a solution so far?

YuriiChernyshov gravatar imageYuriiChernyshov ( 2017-03-19 21:37:30 -0500 )edit