How to Intregrate an OpenCv with NDK?
i have make changes cmlists.txt I Got Error Execution failed for task ':app:externalNativeBuildDebug'.
Build command failed. Error while executing process C:\Users\Lenovo\AppData\Local\Android\Sdk\cmake\3.10.2.4988404\bin\cmake.exe with arguments {--build C:\Users\Lenovo\Pictures\jp\crop\CricleDection\app.externalNativeBuild\cmake\debug\armeabi-v7a --target native-lib} [1/2] Building CXX object CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o FAILED: CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o C:\Users\Lenovo\AppData\Local\Android\sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi19 --gcc-toolchain=C:/Users/Lenovo/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/Lenovo/AppData/Local/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Dnative_lib_EXPORTS -I/sdk/native/jni/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -mfpu=vfpv3-d16 -fno-addrsig -march=armv7-a -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -stdlib=libc++ -std=c++11 -frtti -fexceptions -std=gnu++11 -O0 -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o -MF CMakeFiles\native-lib.dir\src\main\cpp\native-lib.cpp.o.d -o CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o -c ../../../../src/main/cpp/native-lib.cpp ../../../../src/main/cpp/native-lib.cpp:3:10: fatal error: 'opencv2/core/core.hpp' file not found #include <opencv2 core="" core.hpp="">
My Cmlists.txt cmake_minimum_required(VERSION 3.4.1)
set(pathToOpenCV /C:/Users/Lenovo/Pictures/jp/opcv/3.4.3/OpenCV-android-sdk/sdk/native) include_directories(${pathToOpenCV}/jni/include) add_library( # Sets the name of the library. native-lib src/main/cpp/native-lib.cpp )
add_library( lib_opencv SHARED IMPORTED ) set_target_properties(lib_opencv PROPERTIES IMPORTED_LOCATION /C:/Users/Lenovo/Pictures/jp/crop/Native/app/src/main/jniLibs/${ANDROID_ABI}/libopencv_java3.so)
find_library(log-lib log )
target_link_libraries( native-lib ${log-lib} lib_opencv) #EDIT