Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build specific modules OpenCV

Tags:

I'd like to ask how can I specify OpenCV modules to build by cmake ex. I'd like to build only core, highgui and improc.

Thank you for your responses because I googled it and I can't find it. :(

Mari

like image 702
user47779 Avatar asked Aug 31 '14 16:08

user47779


1 Answers

In the CMakeCache.txt file there is an option BUILD_LIST. You can edit that file directly or specify it on the command line

CMakeCache.txt, relevant line

//Build only listed modules (comma-separated, e.g. 'videoio,dnn,ts') BUILD_LIST:STRING=

Command line

cmake -DBUILD_LIST=core,highgui,improc ..

like image 194
Jason Avatar answered Dec 24 '22 10:12

Jason