Skip to content

Instantly share code, notes, and snippets.

@cwedgwood
Forked from soundkitchen/install_opencv.sh
Created January 15, 2016 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwedgwood/79ff15434b89c71f0e48 to your computer and use it in GitHub Desktop.
Save cwedgwood/79ff15434b89c71f0e48 to your computer and use it in GitHub Desktop.
Amazon Linux AMI に OpenCV インスコしてみた。
# run as root
yum update
yum install gcc gcc-c++ make cmake
reboot
# run also as root
mkdir -p src/opencv
cd src
curl -O http://jaist.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.3/OpenCV-2.4.3.tar.bz2
tar jxf OpenCV-2.4.3.tar.bz2
cd opencv
cmake ../OpenCV-2.4.3
make
make install
echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf
ldconfig
ldconfig -p|grep cv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment