Skip to content

Instantly share code, notes, and snippets.

@rghose
Forked from mitmul/install_opencv2.4.8.sh
Last active August 29, 2015 14:00
Show Gist options
  • Save rghose/50c14f976b66b2afbd22 to your computer and use it in GitHub Desktop.
Save rghose/50c14f976b66b2afbd22 to your computer and use it in GitHub Desktop.
This will make opencv
#! /bin/bash
sudo yum install -y gcc g++ gtk+-devel libjpeg-devel libtiff-devel jasper-devel libpng-devel zlib-devel cmake unzip
sudo yum install -y yum-priorities
wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo yum install -y eigen3-devel —enablerepo=epel
pip install numpy
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.8/opencv-2.4.8.zip
unzip opencv-2.4.8
cd opencv-2.4.8
mkdir build
cd build
cmake \
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLES=OFF \
-DWITH_OPENCL=OFF \
-Wno-dev ../
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment