Created
January 19, 2016 07:53
-
-
Save thanhnguyentang/861543fd48635699876c to your computer and use it in GitHub Desktop.
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
| echo "Removing any pre-installed ffmpeg and x264" | |
| sudo apt-get -qq remove ffmpeg x264 libx264-dev | |
| echo "Updating and Instaling dependencies" | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get install build-essential git libjpeg-dev libpng-dev libtiff5-dev libjpeg8-dev libjasper-dev libpng12-dev libavcodec-dev libavformat-dev libswscale-dev pkg-config cmake libgtk2.0-dev libeigen3-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev sphinx-common libtbb-dev yasm libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libopenexr-dev libgstreamer-plugins-base1.0-dev libavutil-dev libavfilter-dev libavresample-dev libatlas-base-dev gfortran libv4l-dev | |
| echo "Setting up the build" | |
| mkdir release | |
| cd release | |
| cmake -DBUILD_TIFF=ON -DBUILD_opencv_java=OFF -DWITH_CUDA=OFF -DENABLE_AVX=ON -DWITH_OPENGL=ON -DWITH_OPENCL=ON -DWITH_IPP=ON -DWITH_TBB=ON -DWITH_EIGEN=ON -DWITH_V4L=ON -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$(python -c "import sys; print(sys.prefix)") -DPYTHON_EXECUTABLE=$(which python) -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON_PACKAGES_PATH=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") .. | |
| echo "Compiling OpenCV" | |
| make -j4 | |
| make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment