OSX version 10.11.3
1. Install homebrew, open terminal, write instruction
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. After the installation is complete, the terminal input
Brew Help, the interface appears as follows: Installation complete
3. Install the Wget,doxygen tool in order to generate final technical documentation
Brew Install Wgetbrew Install Doxygen
4. Download the Cmakegui tool, as below, after installation launchpad display as follows
Http://mac.softpedia.com/get/Development/Compilers/CMake.shtml
5. Download OSX version of opencv3.1.0 on OPENCV website
http://opencv.org/
6. After the download of the source package decompression, in the source package to create a release file
Because Opencv3 after xfeature2d and some other functions of double separated, so in order to solve the problem once and for all, we have to download opencv_contrib-master, the address is as follows
Https://github.com/Itseez/opencv_contrib
After the download is complete decompression, the folder should be this way
In the CMake configuration, open the CMake
Write the OpenCV directory in the where is the source code
/users/dengxiaojun/desktop/opencv/opencv-3.1.0
Fill in the Where to build the binaries
/users/dengxiaojun/desktop/opencv/opencv-3.1.0/release
(Here the address varies according to your actual address, according to the place that you store OPENCV decision)
8. Click Configure in the lower left corner to start the first configuration, select Unix Makefile in the popup interface and nothing else.
Configuration complete, shown below
9. Now to integrate the contrib into the OPENCV main frame, enter extra in the CMake main interface search, select
Opencv_extra_modules_path, enter the MODULES path of the Opencv_contrib_master library we just downloaded in its value
/users/dengxiaojun/desktop/opencv/opencv_contrib-master/modules (different placement positions, please be flexible)
10, configure again, click Configure, wait for configuration to complete
11. After completion, you can start execution, click Generate, and the execution will be completed soon. Show generating done
12. Open the terminal and go to the release directory of the open3.1.0 we just created, as follows
/Your storage location/opencv3.1.0/release/There is now a makefile file
13, enter make and start compiling. Wait for the compilation to complete, as follows
14. After the compilation is complete, type sudo make install, enter the administrator password, install complete, install the final directory in
/usr/local/,/usr/local/lib/is stored in the library file/usr/local/include is a header file
15. Here is the basic installation, the final step, to generate a help document, into the/release/doc/ , the terminal input Doxygen, start compiling the Help file, compile, the doc directory will have a doxygen directory,/releaese/doc/doxygen/html/, which is the Help file, open the index.html file with the browser, You can see the full picture of the help, or you can copy it to Windows and compile it into a CHM with relevant software for easy viewing later.
Enjoy it
OSX under compile install opencv3.1.0 and Opencv_contrib_master