I am trying to compile an Android Studio project that uses C++ openCV NDK. As seen below I am getting an error.
Build command failed.
Error while executing process C:\Eclipse\sdk\cmake\3.6.4111459\bin\[login to view URL] with arguments {--build K:\AndroidProjects\icm
FAILED: K:\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi --gcc-toolchain=K:/NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64 --sysroot=K:/NDK/sysroot -Dbiocore_EXPORTS -I../../../../src/main/headers -isystem K:/NDK/sources/cxx-stl/llvm-libc++/include -isystem K:/NDK/sources/android/support/include -isystem K:/NDK/sources/cxx-stl/llvm-libc++abi/include -isystem K:/NDK/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Wa,--noexecstack -Wformat -Werror=format-security -std=c++11 -fexceptions -std=c++17 -O0 -fno-limit-debug-info -fPIC -MD -MT
In file included from ../../../../src/main/headers\opencv2/core/[login to view URL]:
../../../../src/main/headers\opencv2/core/[login to view URL]:16: error: 'ext/atomicity.h' file not found with <angled> include; use "quotes" instead
#include <ext/atomicity.h>
^~~~~~~~~~~~~~~~~
"ext/atomicity.h"
In file included from K:\Git-Repository\iCheckmates Nabin mods - May 23 2018\iCheckMates\iCheckMates\biocore\src\main\cpp\iris_matcher\[login to view URL]:
In file included from K:\Git-Repository\iCheckmates Nabin mods - May 23 2018\iCheckMates\iCheckMates\biocore\src\main\cpp\iris_matcher/OsiCircle.h:12:
In file included from ../../../../src/main/headers\opencv2/core/[login to view URL]:
In file included from ../../../../src/main/headers\opencv2/core/[login to view URL]:
../../../../src/main/headers\opencv2/core/ext/atomicity.h:38:10: fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
^~~~~~~~~~~~~~~~~~
2 errors generated.
There are several more of the same as above.
If you are familiar with CMake, CMakeLists, openCV within Gradle / Studio and "KNOW WHY" I am getting this error please get in touch.
I assume it is a config issue but I cannot fine it.
Hi
Good day.
As a senior mobile and Android developer, I am very interested in this job.
I have 10 years experience with Android and Android studio.
I am able to start now and can finish asap.
Looking forward to your hearing.
Thank you