How to build contrib as static library [closed]

asked 2019-11-04 13:40:15 -0500

genesys gravatar image

updated 2019-11-04 13:40:41 -0500

I'm trying to build OpenCV with extramodules (aruco in particular) as static library.

I have set the OPENCV_EXTRA_MODULES_PATH correctly to the modules directory of contrib and I have set BUILD_opencv_aruco to ture.

When I build using ninja

ninja install

I get in my install directory .a files for the opencv project (libopencv_core.a for example or libopencv_imgproc.a), but no lib file for aruco.

How do I properly compile OpenCV to static libraries including extra modules?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-13 14:10:33.797766


can you show us the cmake output ? (maybe it was disabled for some reason)

berak gravatar imageberak ( 2019-11-04 14:29:48 -0500 )edit