I am trying to rebuild OpenCV manager apk after modifying native camera. However, the build crashes with the following error.
Scanning dependencies of target android_package
make[2]: * No rule to make target bin/classes.jar.dephelper', needed by
package/bin/OpenCV_2.4.9_binary_pack_armv7a-release-unsigned.apk'. Stop.
make[1]: [platforms/android/package/CMakeFiles/android_package.dir/all] Error 2
make[1]: ** Waiting for unfinished jobs....
Linking CXX static library ../../lib/armeabi-v7a/libopencv_videostab_pch_dephelp.a
Steps I took are: cd opencv/platforms sh ./scripts/cmake_android_arm.sh cd build_android_arm make -j2
The /scripts/cmake_android_arm.sh was modified as follows to generate apk. cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DBUILD_ANDROID_PACKAGE=ON -DBUILD_ANDROID_SERVICE=ON -DBUILD_ANDROID_PACKAGE=ON -DBUILD_ANDROID_SERVICE=ON -DANDROID_NATIVE_API_LEVEL=14 -DCMAKE_TOOLCHAIN_FILE=../android/android.toolchain.cmake $@ ../..