Ask Your Question

Build opencv 3.1.0 extra module for android on Mac?

asked 2016-07-22 10:04:29 -0500

gi gravatar image

updated 2016-07-22 12:56:52 -0500

Hi, I'm new to OpenCV and want to use SIFT and SURF features detector on Android Studio that is available on opencv_contrib. I'm using these tutorial (with modification) to build opencv 3.1.0 extra module and this tutorial but it shows the same error like this, eventhough I already declared it -DANDROID_NDK=/Documents/android-ndk-r8e

-- Caffe: NO -- Protobuf: NO -- Glog: NO

CMake Error at /Users/giovinnakhoharja/build-opencv-for-android/android-ndk-downloader/opencv/platforms/android/android.toolchain.cmake:447 (message): Could not find neither Android NDK nor Android standalone toolchain.

I can show you the ErrorLog if you want. And then I try to use CMake GUI with some modification of this tutorial but even when I already make new entry of ANDROID_NDK, after I press configure (using Unix Makefiles because Mac don't have MinGW) the variable ANDROID_NDK is missing.

I have El Captian 10.11.1, 3.6.0, Android NDK r8e Darwin x86_64 (because CMakeList.txt says that it supports only r5-r10). I already install CMake on command line. Can someone tell me what is wrong?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-27 05:16:26 -0500

gi gravatar image

I've finally found tutorial that works for me. I've decided to downgrade my OpenCV to version 2.4.11, and it works like a charm.

Youtube tutorial

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-07-22 09:55:04 -0500

Seen: 543 times

Last updated: Jul 27 '16