I'm currently trying to install my first program, OpenCV. I'm using this user guide to help me.
I ran the following line and successfully downloaded OpenCV:
Now I'm trying to build/install the package. The guide says I need to run this line:
However, I get the error that the command cmake is not found. There is a directory in the downloaded OpenCV files entilted cmake but I'm not sure if any of the files in there are related to my problem. I know cmake is a program to help build/install, is it possible that I don't have it?
In our case we install opencv-3.0.0.exe pre-build SDK in C: OpenCV. The installer. Click then on.
Start the GUI version of CMake (cmake-gui).
||||||||||| Please direct any questions or bugs regarding software to the company that developed the program. We are merely a software download directory and search engine of shareware, freeware programs available on the Internet. Rocket Download is not responsible for any problems that may occur from downloading or installing software that listed here.
Select the folder
C:OpenCVsourcesas the source directory.
Select the folder
C:OpenCVbuildsas the build directory.
Enable the Grouped and Advanced checkboxes just below the build directory name. These will impact the way the packages information will be displayed in the CMake GUI in the following steps.
Press the “Configure” button. A window pops up, letting you specify the compiler (and IDE) you want to use. Pick Visual Studio 10, 32-bit or 64-bit according to your Matlab version. Select also “Use default native compilers” and click Finish.
In case you would like to redo all the steps from the beginning (if you made a mistake somewhere, for instance), you can clear CMake cache in the menu option “File > Delete Cache”.
CMake will start out and based on your system variables will try to automatically locate as many packages as possible. You can modify the packages to use for the build in the WITH > WITH_X menu points (where X is the package abbreviation).
Configure CMake until all the elements are found. Follow the instructions below.
If you don’t need it, you might want to deactivate the Python module both in 32-bit and 64-bit versions since it might not build correctly.
Once you are comfortable with your CMake configuration, press Generate and close CMake.
Here is an alternate version of those instructions, but it does not goes as deep in the details as this tutorial: http://seevisionc.blogspot.co.uk/2014/03/compiling-opencv-30-with-matlab-support.html.