I am trying to call OpenCV library to do image processing in real time for a java camera application. below is the error log. Could this be a problem with my CMakeLists.txt file? Note that the program was working before I added 2 functions to the native-lib.cpp file.
Information:Gradle tasks [:app:assembleDebug] Error:15:18:49.601 [ERROR] [system.err] Note: Some input files use or override a deprecated API. 15:18:49.601 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details. 15:19:00.656 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.656 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 15:19:00.656 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.656 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong: 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:externalNativeBuildDebug'. 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Build command failed. 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Error while executing process C:\Users\Akira\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app.externalNativeBuild\cmake\debug\x86_64 --target native-lib} 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] [1/1] Linking CXX shared library ........\build\intermediates\cmake\debug\obj\x86_64\libnative-lib.so 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILED: cmd.exe /C "cd . && C:\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=x86_64-none-linux-android --gcc-toolchain=C:/Android/android-sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/windows-x86_64 --sysroot=C:/Android/android-sdk/ndk-bundle/sysroot -fPIC -isystem C:/Android/android-sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot C:/Android/android-sdk/ndk-bundle/platforms/android-23/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnative-lib.so -o ........\build\intermediates\cmake\debug\obj\x86_64\libnative-lib.so CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o C:/Users/Akira/AndroidStudioProjects/OpencvCamera2/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so -llog -latomic -lm "C:/Android/android-sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64/libgnustl_static.a" && cd ." 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/Android/android-sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/windows-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin\ld: error: C:/Users/Akira/AndroidStudioProjects/OpencvCamera2/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so: incompatible target 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:27: error: undefined reference to 'cv::FastFeatureDetector::create(int, bool, int)' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:28: error: undefined reference to 'cv::noArray()' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:31: error: undefined reference to 'cv::circle(cv::_InputOutputArray const&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:43: error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:46: error: undefined reference to 'cv::equalizeHist(cv::_InputArray const&, cv::_OutputArray const&)' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:51: error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/opencv-3.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/include\opencv2/core/mat.inl.hpp:592: error: undefined reference to 'cv::fastFree(void)' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/opencv-3.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/include\opencv2/core/mat.inl.hpp:704: error: undefined reference to 'cv::Mat::deallocate()' 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ninja: build stopped: subcommand failed. 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is: 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:externalNativeBuildDebug'. 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) 15:19:00.657 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.internal.UncheckedException: Build command failed. 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Error while executing process C:\Users\Akira\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app.externalNativeBuild\cmake\debug\x86_64 --target native-lib} 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] [1/1] Linking CXX shared library ........\build\intermediates\cmake\debug\obj\x86_64\libnative-lib.so 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILED: cmd.exe /C "cd . && C:\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=x86_64-none-linux-android --gcc-toolchain=C:/Android/android-sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/windows-x86_64 --sysroot=C:/Android/android-sdk/ndk-bundle/sysroot -fPIC -isystem C:/Android/android-sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot C:/Android/android-sdk/ndk-bundle/platforms/android-23/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnative-lib.so -o ........\build\intermediates\cmake\debug\obj\x86_64\libnative-lib.so CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o C:/Users/Akira/AndroidStudioProjects/OpencvCamera2/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so -llog -latomic -lm "C:/Android/android-sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64/libgnustl_static.a" && cd ." 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/Android/android-sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/windows-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin\ld: error: C:/Users/Akira/AndroidStudioProjects/OpencvCamera2/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so: incompatible target 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:27: error: undefined reference to 'cv::FastFeatureDetector::create(int, bool, int)' 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:28: error: undefined reference to 'cv::noArray()' 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:31: error: undefined reference to 'cv::circle(cv::_InputOutputArray const&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)' 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:43: error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)' 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:46: error: undefined reference to 'cv::equalizeHist(cv::_InputArray const&, cv::_OutputArray const&)' 15:19:00.658 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:51: error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/opencv-3.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/include\opencv2/core/mat.inl.hpp:592: error: undefined reference to 'cv::fastFree(void)' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/opencv-3.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/include\opencv2/core/mat.inl.hpp:704: error: undefined reference to 'cv::Mat::deallocate()' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ninja: build stopped: subcommand failed. 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:63) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:40) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:76) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:731) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:705) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 27 more 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: Build command failed. 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Error while executing process C:\Users\Akira\AppData\Local\Android\Sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {--build C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app.externalNativeBuild\cmake\debug\x86_64 --target native-lib} 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] [1/1] Linking CXX shared library ........\build\intermediates\cmake\debug\obj\x86_64\libnative-lib.so 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILED: cmd.exe /C "cd . && C:\Android\android-sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=x86_64-none-linux-android --gcc-toolchain=C:/Android/android-sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/windows-x86_64 --sysroot=C:/Android/android-sdk/ndk-bundle/sysroot -fPIC -isystem C:/Android/android-sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=23 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -frtti -fexceptions -O0 -fno-limit-debug-info -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a --sysroot C:/Android/android-sdk/ndk-bundle/platforms/android-23/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libnative-lib.so -o ........\build\intermediates\cmake\debug\obj\x86_64\libnative-lib.so CMakeFiles/native-lib.dir/src/main/cpp/native-lib.cpp.o C:/Users/Akira/AndroidStudioProjects/OpencvCamera2/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so -llog -latomic -lm "C:/Android/android-sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86_64/libgnustl_static.a" && cd ." 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/Android/android-sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/windows-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin\ld: error: C:/Users/Akira/AndroidStudioProjects/OpencvCamera2/app/src/main/jniLibs/armeabi-v7a/libopencv_java3.so: incompatible target 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:27: error: undefined reference to 'cv::FastFeatureDetector::create(int, bool, int)' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:28: error: undefined reference to 'cv::noArray()' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:31: error: undefined reference to 'cv::circle(cv::_InputOutputArray const&, cv::Point_<int>, int, cv::Scalar_<double> const&, int, int, int)' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:43: error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:46: error: undefined reference to 'cv::equalizeHist(cv::_InputArray const&, cv::_OutputArray const&)' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:\Users\Akira\Documents\Academic\Spring 2018 Courses\CS 309\OpenCVTest\OpencvCamera2\app\src\main\cpp/native-lib.cpp:51: error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/opencv-3.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/include\opencv2/core/mat.inl.hpp:592: error: undefined reference to 'cv::fastFree(void*)' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] C:/opencv-3.2.0-android-sdk/OpenCV-android-sdk/sdk/native/jni/include\opencv2/core/mat.inl.hpp:704: error: undefined reference to 'cv::Mat::deallocate()' 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ninja: build stopped: subcommand failed. 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.tasks.ExternalNativeBuildTaskUtils.executeBuildProcessAndLogError(ExternalNativeBuildTaskUtils.java:302) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.tasks.ExternalNativeBuildTask.executeProcessBatch(ExternalNativeBuildTask.java:292) 15:19:00.659 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.tasks.ExternalNativeBuildTask.build(ExternalNativeBuildTask.java:184) 15:19:00.660 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) 15:19:00.660 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 39 more 15:19:00.660 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.660 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 15:19:00.660 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org 15:19:00.660 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 15:19:00.660 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 23s
Information:1 error Information:0 warnings Information:See complete output in console