Making Android SDK Error
when i make android sdk with opencv i get this error.
C:\Windows\system32>c:/python27/python "C:/Users/Hafiz Muhammad Imran/Downloads/Compressed/opencv-master/opencv/platforms/android/build_sdk.py" build_dir f:/opencv
Args: Namespace(build_doc=False, extra_modules_path=None, extra_pack=None, ndk_path=None, no_ccache=False, opencv_dir='f:/opencv', sdk_path=None, sign_with=None, work_dir='build_dir')
Android NDK path: C:\android-ndk-r10e\
Android SDK path: C:\Android\sdk\platform-tools\
Check dir C:\Windows\system32\build_dir (create: True, clean: False)
Check dir f:\opencv (create: False, clean: False)
Check dir C:\Windows\system32\build_dir\o4a (create: True, clean: True)
Removing file: C:\Windows\system32\build_dir\o4a\CMakeCache.txt
Removing dir: C:\Windows\system32\build_dir\o4a\CMakeFiles
Check dir C:\Windows\system32\build_dir\javadoc (create: True, clean: True)
Check dir C:\Windows\system32\build_dir\OpenCV-android-sdk (create: True, clean: True)
Detected OpenCV version: 3.1.0-dev
Detected Engine version: 3.10
Check dir C:\Windows\system32\build_dir\build_service_armeabi-v7a (create: True, clean: True)
=====
===== Building library for armeabi-v7a (arm-linux-androideabi-4.8)
=====
Executing: ['cmake', '-GNinja', "-DCMAKE_TOOLCHAIN_FILE='f:\\opencv\\platforms\\android\\android.toolchain.cmake'", '-DWITH_OPENCL=OFF', '-DWITH_CUDA=OFF', '-DWITH_IPP=OFF', '-DBUILD_EXAMPLES=OFF', '-DBUILD_TESTS=OFF', '-DBUILD_PERF_TESTS=OFF', '-DBUILD_DOCS=OFF', '-DBUILD_ANDROID_EXAMPLES=ON', '-DINSTALL_ANDROID_EXAMPLES=ON', '-DANDROID_STL=gnustl_static', '-DANDROID_NATIVE_API_LEVEL=9', "-DANDROID_ABI='armeabi-v7a with NEON'", '-DWITH_TBB=ON', '-DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.8', 'f:\\opencv', '-DNDK_CCACHE=ccache', '-DBUILD_TESTS=ON', '-DINSTALL_TESTS=ON']
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "C:/Users/Hafiz Muhammad Imran/Downloads/Compressed/opencv-master/opencv/platforms/android/build_sdk.py", line 305, in <module>
builder.build_library(abi, do_install)
File "C:/Users/Hafiz Muhammad Imran/Downloads/Compressed/opencv-master/opencv/platforms/android/build_sdk.py", line 148, in build_library
execute(cmd)
File "C:/Users/Hafiz Muhammad Imran/Downloads/Compressed/opencv-master/opencv/platforms/android/build_sdk.py", line 20, in execute
raise Fail("Child returned: %s" % retcode)
__main__.Fail: Child returned: 1
My envoirment Variables are also set