Created
January 25, 2016 17:13
Makefile for Installing OpenCV in Fedora 23 with Python 3 support.
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
install_opencv: | |
sudo dnf install --best --allowerasing \ | |
cmake python-devel numpy gcc gcc-c++ \ | |
python3-devel python3-numpy \ | |
gtk2-devel libdc1394-devel libv4l-devel ffmpeg-devel \ | |
gstreamer-plugins-base-devel libpng-devel libjpeg-turbo-devel \ | |
jasper-devel openexr-devel libtiff-devel libwebp-devel \ | |
tbb-devel eigen3-devel python-sphinx texlive git | |
if [ ! -d opencv/ ]; then \ | |
git clone https://github.com/Itseez/opencv.git; \ | |
fi | |
mkdir -p opencv/build | |
cd opencv/build && cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D BUILD_DOCS=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF \ | |
-D BUILD_EXAMPLES=OFF -D WITH_OPENCL=OFF -D WITH_CUDA=OFF \ | |
-D BUILD_opencv_gpu=OFF -D BUILD_opencv_gpuarithm=OFF \ | |
-D BUILD_opencv_gpubgsegm=OFF -D BUILD_opencv_gpucodec=OFF \ | |
-D BUILD_opencv_gpufeatures2d=OFF -D BUILD_opencv_gpufilters=OFF \ | |
-D BUILD_opencv_gpuimgproc=OFF -D BUILD_opencv_gpulegacy=OFF \ | |
-D BUILD_opencv_gpuoptflow=OFF -D BUILD_opencv_gpustereo=OFF \ | |
-D BUILD_opencv_gpuwarping=OFF .. | |
cd opencv/build && make | |
# cd opencv/build && sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment