I have downloaded OpenCV project for android and the sample projects that came bundled with it contains several errors.... Only the projects that contain the NDK code has th
@Nolan's answer followed by @Michael's comment solved it for me. Here are the combined steps:
The following includes should be defined under Include directories
${NDKROOT}/platforms/android-9/arch-arm/usr/include
${ProjDirPath}/../../sdk/native/jni/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi-v7a/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.4.3/include
Make sure ${NDKROOT} is defined as an environment variable. If it's not go ahead and add it under C/C++ Build - Environment
Cheers.
I had the same problem and was able to resolve these and other errors encountered while following the OpenCV tutorial by using the following include paths:
${NDKROOT}/platforms/android-9/arch-arm/usr/include
${ProjDirPath}/../../sdk/native/jni/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi-v7a/include
${NDKROOT}/sources/cxx-stl/gnu-libstdc++/4.4.3/include