Created
November 30, 2012 06:19
-
-
Save alingogo/4174096 to your computer and use it in GitHub Desktop.
opencvのインストール
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
#!/bin/sh | |
sudo yum -y install gcc gcc-c++ make python libjpeg-devel libtiff-devel jasper-devel libpng-devel zlib-devel cmake | |
mkdir ~/tmp | |
cd ~/tmp | |
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.2/OpenCV-2.4.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fopencvlibrary%2Ffiles%2Fopencv-unix%2F2.4.2%2F&ts=1344353647&use_mirror=jaist | |
tar xvf OpenCV-2.4.2.tar.bz2 | |
sudo mkdir /usr/local/src/opencv | |
cd /usr/local/src/opencv | |
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_1394=NO ~/tmp/OpenCV-2.4.2 | |
sudo gmake -j 2 | |
sudo make install | |
export LD_LIBRARY_PATH="/usr/local/lib" | |
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" |
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
* 前提 | |
** yum更新とOS再起動 | |
--------------------- | |
sudo yum check-update | |
sudo yum update | |
sudo reboot | |
--------------------- | |
* wget -qO- https://raw.github.com/gist/4174096/opencv_install | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment