But i am getting the following error
D:\opencv\opencv_4_5_1\opencv\modules\core\src\system.cpp: In function ‘T cv::parseOption(const string&) [with T = unsigned int; std::string = std::basic_string]’:
D:\opencv\opencv_4_5_1\opencv\modules\core\src\system.cpp:1902:24: error: ‘stoull’ is not a member of 'std’
size_t v = (size_t)std::stoull(valueStr);
^
modules\world\CMakeFiles\opencv_world.dir\build.make:1132: recipe for target 'modules/world/CMakeFiles/opencv_world.dir//core/src/system.cpp.o’ failed
mingw32-make[2]: *** [modules/world/CMakeFiles/opencv_world.dir//core/src/system.cpp.o] Error 1
CMakeFiles\Makefile2:1923: recipe for target ‘modules/world/CMakeFiles/opencv_world.dir/all’ failed
mingw32-make[1]: *** [modules/world/CMakeFiles/opencv_world.dir/all] Error 2
Makefile:180: recipe for target ‘all’ failed
mingw32-make: *** [all] Error 2
I was able to build 3.4.11 successfully using the above method.
Please suggest what changes i have to do to build it.
Thanks for the quick reply. But with android-ndk-r18b, i get the following error
CMake Error at platforms/android/android.toolchain.cmake:628 (message):
Could not find any working toolchain in the NDK. Probably your Android NDK
is broken.
Call Stack (most recent call first):
D:/opencv/cmake-3.19.3-win64-x64/share/cmake-3.19/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:99 (enable_language)
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!
I am new to opencv. Am i missing something. For me only the lower versions of ndk are working. For the latest ndk, i get the ble mentioned error