The C++ files for an Android project should always be located in a subdirectory named jni
. This subdirectory should also contain our C++ code's dependencies and a type of compilation instruction named
Makefiles. Specifically, we need to create the following new folders and files inside our Second Sight project folder:
jni/include/opencv2/
: This folder contains the header files (the definitions of types and functions) for OpenCV's C++ interface. Into this folder, copy the contents of<opencv>/sdk/native/jni/include/opencv2/
. (Replace<opencv>
with the path to OpenCV4Android on your system.)jni/libs/
: This folder contains the library files (the compiled implementations) for OpenCV's C++ interface and OpenCV's dependencies. Into this folder, copy the contents of<opencv>/sdk/native/libs/
and<opencv>/sdk/native/3rdparty/libs/
.jni/Application.mk
: This Makefile describes the type of environment in which our C++ library will be used. The environment...