Ask Your Question

Revision history [back]

Building opencv 3.2 with opencv_contrib on Windows 10 -- how to install?

Please note, I cannot publish links, so I've tried to hack together faux links below

I followed the instructions here: http + docs.opencv.org/3.2.0/d5/de5/tutorial_py_setup_in_windows.html, with minor modifications to include opencv_contrib (I set the OPENCV_EXTRA_MODULES_PATH field to the path ~/opencv_contrib/modules). Before beginning, I used git to checkout the 3.2.0 tagged commit for each project, which I had cloned from github.

I completed Step 16, but could not find the 'INSTALL' option for Step 17. Step 16 had several errors. See this screenshot: http + i.imgur.com/BZJHAMg.png. See also error code pasted below.

I did find an option CMakeTargets > INSTALL (see screenshot: http + i.imgur.com/fJIgUDX.png), but it didn't seem to do anything? It looks like it just rebuild the project. Much faster than the first time.

I'm using Visual Studio 2012. Thanks in advance for any help!

Error   1   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  235 1   opencv_xfeatures2d
Error   2   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  243 1   opencv_xfeatures2d
Error   3   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  244 1   opencv_xfeatures2d
Error   4   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  254 1   opencv_xfeatures2d
Error   5   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  265 1   opencv_xfeatures2d
Error   6   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    282 1   opencv_dnn
Error   7   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    283 1   opencv_dnn
Error   8   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    284 1   opencv_dnn
Error   9   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    285 1   opencv_dnn
Error   10  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    286 1   opencv_dnn
Error   11  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    287 1   opencv_dnn
Error   12  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    289 1   opencv_dnn
Error   13  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    290 1   opencv_dnn
Error   14  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    291 1   opencv_dnn
Error   15  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    293 1   opencv_dnn
Error   16  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    298 1   opencv_dnn
Error   17  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    300 1   opencv_dnn
Error   18  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    301 1   opencv_dnn
Error   19  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    185 1   opencv_ximgproc
Error   20  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    186 1   opencv_ximgproc
Error   21  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    188 1   opencv_ximgproc
Error   22  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    720 1   opencv_ximgproc
Error   23  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    721 1   opencv_ximgproc
Error   24  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    724 1   opencv_ximgproc
Error   25  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    725 1   opencv_ximgproc
Error   26  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    727 1   opencv_ximgproc
Error   27  error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn320.lib' ~\opencv\build3\modules\tracking\LINK   opencv_tracking
Error   28  error LNK1181: cannot open input file '..\..\lib\Release\opencv_xfeatures2d320.lib' ~\opencv\build3\modules\stitching\LINK  opencv_stitching
Error   29  error LNK1181: cannot open input file '..\..\lib\Release\opencv_ximgproc320.lib'    ~\opencv\build3\modules\optflow\LINK    opencv_optflow

Building opencv 3.2 with opencv_contrib on Windows 10 -- how to install?

Please note, I cannot publish links, so I've tried to hack together faux links below

I followed the instructions here: http + docs.opencv.org/3.2.0/d5/de5/tutorial_py_setup_in_windows.html, with minor modifications to include opencv_contrib (I set the OPENCV_EXTRA_MODULES_PATH field to the path ~/opencv_contrib/modules). Before beginning, I used git to checkout the 3.2.0 tagged commit for each project, which I had cloned from github.

I completed Step 16, but could not find the 'INSTALL' option for Step 17. Step 16 had several errors. See this screenshot: http + i.imgur.com/BZJHAMg.png. See also error code pasted below.

I did find an option CMakeTargets > INSTALL (see screenshot: http + i.imgur.com/fJIgUDX.png), but it didn't seem to do anything? It looks like it just rebuild rebuilt the project. Much faster than the first time.

I'm using Visual Studio 2012. Thanks in advance for any help!

Error   1   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  235 1   opencv_xfeatures2d
Error   2   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  243 1   opencv_xfeatures2d
Error   3   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  244 1   opencv_xfeatures2d
Error   4   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  254 1   opencv_xfeatures2d
Error   5   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  265 1   opencv_xfeatures2d
Error   6   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    282 1   opencv_dnn
Error   7   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    283 1   opencv_dnn
Error   8   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    284 1   opencv_dnn
Error   9   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    285 1   opencv_dnn
Error   10  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    286 1   opencv_dnn
Error   11  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    287 1   opencv_dnn
Error   12  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    289 1   opencv_dnn
Error   13  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    290 1   opencv_dnn
Error   14  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    291 1   opencv_dnn
Error   15  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    293 1   opencv_dnn
Error   16  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    298 1   opencv_dnn
Error   17  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    300 1   opencv_dnn
Error   18  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    301 1   opencv_dnn
Error   19  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    185 1   opencv_ximgproc
Error   20  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    186 1   opencv_ximgproc
Error   21  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    188 1   opencv_ximgproc
Error   22  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    720 1   opencv_ximgproc
Error   23  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    721 1   opencv_ximgproc
Error   24  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    724 1   opencv_ximgproc
Error   25  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    725 1   opencv_ximgproc
Error   26  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    727 1   opencv_ximgproc
Error   27  error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn320.lib' ~\opencv\build3\modules\tracking\LINK   opencv_tracking
Error   28  error LNK1181: cannot open input file '..\..\lib\Release\opencv_xfeatures2d320.lib' ~\opencv\build3\modules\stitching\LINK  opencv_stitching
Error   29  error LNK1181: cannot open input file '..\..\lib\Release\opencv_ximgproc320.lib'    ~\opencv\build3\modules\optflow\LINK    opencv_optflow

Building opencv 3.2 with opencv_contrib on Windows 10 -- how to install?

Please note, I cannot publish links, so I've tried to hack together faux links below

I followed the instructions here: http + docs.opencv.org/3.2.0/d5/de5/tutorial_py_setup_in_windows.html, here: with minor modifications to include opencv_contrib (I set the OPENCV_EXTRA_MODULES_PATH field to the path ~/opencv_contrib/modules). Before beginning, I used git to checkout the 3.2.0 tagged commit for each project, which I had cloned from github.

I completed Step 16, but could not find the 'INSTALL' option for Step 17. Step 16 had several errors. See this screenshot: http + i.imgur.com/BZJHAMg.png. screenshot: See also error code pasted below.

I did find an option CMakeTargets > INSTALL (see screenshot: http + i.imgur.com/fJIgUDX.png), screenshot ), but it didn't seem to do anything? It looks like it just rebuilt the project. Much faster than the first time.

I'm using Visual Studio 2012. Thanks in advance for any help!

Error   1   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  235 1   opencv_xfeatures2d
Error   2   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  243 1   opencv_xfeatures2d
Error   3   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  244 1   opencv_xfeatures2d
Error   4   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  254 1   opencv_xfeatures2d
Error   5   error C3861: 'round': identifier not found  ~\opencv_contrib\modules\xfeatures2d\src\boostdesc.cpp  265 1   opencv_xfeatures2d
Error   6   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    282 1   opencv_dnn
Error   7   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    283 1   opencv_dnn
Error   8   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    284 1   opencv_dnn
Error   9   error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    285 1   opencv_dnn
Error   10  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    286 1   opencv_dnn
Error   11  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    287 1   opencv_dnn
Error   12  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    289 1   opencv_dnn
Error   13  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    290 1   opencv_dnn
Error   14  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    291 1   opencv_dnn
Error   15  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    293 1   opencv_dnn
Error   16  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    298 1   opencv_dnn
Error   17  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    300 1   opencv_dnn
Error   18  error C3416: 'cv::dnn::createLayerFromCaffe' : an explicit specialization may not be explicitly instantiated    ~\opencv_contrib\modules\dnn\src\caffe\layer_loaders.cpp    301 1   opencv_dnn
Error   19  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    185 1   opencv_ximgproc
Error   20  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    186 1   opencv_ximgproc
Error   21  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    188 1   opencv_ximgproc
Error   22  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    720 1   opencv_ximgproc
Error   23  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    721 1   opencv_ximgproc
Error   24  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    724 1   opencv_ximgproc
Error   25  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    725 1   opencv_ximgproc
Error   26  error C3861: 'round': identifier not found  ~\opencv_contrib\modules\ximgproc\src\fast_line_detector.cpp    727 1   opencv_ximgproc
Error   27  error LNK1181: cannot open input file '..\..\lib\Release\opencv_dnn320.lib' ~\opencv\build3\modules\tracking\LINK   opencv_tracking
Error   28  error LNK1181: cannot open input file '..\..\lib\Release\opencv_xfeatures2d320.lib' ~\opencv\build3\modules\stitching\LINK  opencv_stitching
Error   29  error LNK1181: cannot open input file '..\..\lib\Release\opencv_ximgproc320.lib'    ~\opencv\build3\modules\optflow\LINK    opencv_optflow