Building OpenCV_contrib for OpenCV 3, Windows GUI

来源:互联网 发布:如何注册网站域名 编辑:程序博客网 时间:2024/05/21 06:35


本文转自:http://www.answers.opencv.org/question/45782/building-opencv_contrib-for-opencv-3-windows-gui/

I am using CMake 3.0.2 GUI on Windows 7. So far, I haven't found a command line version so I am using the GUI.

The steps I am using (from the readme):

  1. start cmake-gui

  2. select the opencv source code folder and the folder where binaries will be built (the 2 upper forms of the interface)

  3. press the configure button. you will see all the opencv build parameters in the central interface

  4. browse the parameters and look for the form called OPENCV_EXTRA_MODULES_PATH (use the search form to focus rapidly on it)

  5. complete this OPENCV_EXTRA_MODULES_PATH by the proper pathname to the <opencv_contrib>/modules value using its browse button.

  6. press the configure button followed by the generate button (the first time, you will be asked which makefile style to use)

  7. build the opencv core with the method you chose



Here is how the folder containing the sources and build looks like:

So the Master branch is in the "Sources" folder and the extra module are in the "Contrib" folder.

Following the instructions, the CMake part seems to work well. But, when I try to build it in Visual Studio, various errors about "No such files or directory" in "descriptors.hpp" and "types.hpp" and some problems with undeclared identifiers in the Saliency module.

There could be a lot of reasons for this. A knowledgeable person told me in a comment that I should launch CMake from the same build folder than for the main repo, but I don't see how with the GUI...

0 0
原创粉丝点击