Created
August 5, 2016 14:37
-
-
Save siddMahen/d2b49d8fc50f9c8196fb37542745ae51 to your computer and use it in GitHub Desktop.
Installing OpenCV v3.1.0 on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Clone the git repo into ~/opencv | |
2. Clone the opencv_contrib repo into ~/opencv_contrib | |
3. In both dirs, run git checkout 3.1.0 | |
4. In ~/opencv, mkdir build; cd build; and run the cmake command below: | |
cmake -D WITH_CUDA=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D PYTHON2_PACKAGES_PATH=/Users/siddmahen/miniconda2/envs/tensorflow/lib/python2.7/site-packages \ | |
-D PYTHON2_LIBRARY=/Users/siddmahen/miniconda2/envs/tensorflow/bin \ | |
-D PYTHON2_INCLUDE_DIR=/Users/siddmahen/miniconda2/envs/tensorflow/include/python2.7 \ | |
-D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=ON \ | |
-D BUILD_EXAMPLES=ON \ | |
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules .. | |
where the appropriate flags are modified. | |
5. Always in ~/opencv/build, run make; make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment