Ask Your Question

Revision history [back]

Build OpenCV 3.3.1 with Android / Gradle / CMake

What I want to do :

  • build library OpenCV 3.3.1 from native cpp files using Android / Gradle / Cmakelists.txt

Using :

  • OpenCV_3.3.1

  • Android Studio 2.2.3

  • Gradle 2.14.1

I create a module "opencv_3.3.1", inside the build.gradle file I insert a block cmake { } with the path of "opencv/CMakeLists.txt"

Result : Gradle runs some tasks, but none cpp file is compiled.

I look at so many documentation that I don't know what to do now ! I am a experienced programmer, but I am a novice with Android and with OpenCV.

Thank you for your help, Bernard