Last active
August 29, 2015 14:19
-
-
Save hitigon/f7cf77fa2a8eb034af91 to your computer and use it in GitHub Desktop.
openCV2 w/ python supports
This file contains 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
#! /bin/bash | |
sudo yum install -y python-devel numpy # 2.6.9 | |
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.10/opencv-2.4.10.zip | |
unzip opencv-2.4.10 | |
cd opencv-2.4.10 | |
mkdir build | |
cd build | |
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON .. | |
make | |
sudo make install | |
sudo ln -s /usr/local/lib/python2.6/dist-packages/cv2.so /home/xad/blueprints/cv2.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment