Ask Your Question
0

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 https://github.com/tzutalin/build-ope... and this tutorial https://github.com/alexkarargyris/Caf... 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 https://zami0xzami.wordpress.com/2016... 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, CMake.app 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
0

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 478 times

Last updated: Jul 27 '16