Build specific modules OpenCV

前端 未结 3 1206
北荒
北荒 2020-12-09 17:08

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 goog

相关标签:
3条回答
  • 2020-12-09 17:21

    you can toggle each module by specifying it to cmake:

    -DBUILD_opencv_xxxx=OFF # where xxxx is the module in question, and ON or OFF is your requested state
    

    with cmake

    0 讨论(0)
  • 2020-12-09 17:25

    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 ..

    0 讨论(0)
  • 2020-12-09 17:39

    you can use Cmake GUI to see what you are building just point Cmake GUI to the directory of opencv source code. then you choose the compiler version you would like to compile with.

    Once generation is done. you have a very nice UI representation of what you would like to build.

    0 讨论(0)
提交回复
热议问题