Create only a subset of OpenCV (specifically for Android)

Since the OpenCV libraries according to http://opencv.willowgarage.com/wiki/Android do not start on my Android phone (HTC Wildfire) - crash while loading libs - - I want to reduce the modules compiled and related to the resulting .so- the library.

Does anyone know how to prevent "make" from compiling some specific modules in OpenCV? I found the CMakeLists.txt files useful (located in each folder) that allow me to remove some folders from compilation, but then I got stuck in dependency problems. Is it right to use CMakeLists.txt to exclude some folders?

In my specific case, I need cvMatchTemplate and some OpenCV-only color conversion methods. Thanks for any hint!

+4
source share

Source: https://habr.com/ru/post/1332265/


All Articles