Skip to content

Instantly share code, notes, and snippets.

@wuerges
Created January 25, 2016 17:13
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wuerges/b3c32dfcc6302aa1c105 to your computer and use it in GitHub Desktop.
Save wuerges/b3c32dfcc6302aa1c105 to your computer and use it in GitHub Desktop.
Makefile for Installing OpenCV in Fedora 23 with Python 3 support.
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