Skip to content

Instantly share code, notes, and snippets.

@maksymx
Created April 5, 2016 10:55
Show Gist options
  • Save maksymx/13a29c715915cb38076dc0f3f0a500ea to your computer and use it in GitHub Desktop.
Save maksymx/13a29c715915cb38076dc0f3f0a500ea to your computer and use it in GitHub Desktop.
Install OpenCV 2.4.11 Fedora 21
yum install cmake
yum install python-devel numpy
yum install gcc gcc-c++
yum install gtk2-devel libdc1394-devel libv4l-devel ffmpeg-devel gstreamer-plugins-base-devel libpng-devel libjpeg-turbo-devel jasper-devel openexr-devel
yum install libtiff-devel libwebp-devel tbb-devel eigen3-devel python-sphinx texlive
pushd /tmp
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.11/opencv-2.4.11.zip
unzip opencv-2.4.11.zip
cd opencv-2.4.11
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
sed -i 's#/lib/libbz2.so.1#/lib64/libbz2.so.1#g' CMakeCache.txt
make -j 4
sudo make install
sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment