Skip to content

Instantly share code, notes, and snippets.

@brunodoamaral
Created April 26, 2018 16:02
Show Gist options
  • Save brunodoamaral/258950154b6649b95738d18710287904 to your computer and use it in GitHub Desktop.
Save brunodoamaral/258950154b6649b95738d18710287904 to your computer and use it in GitHub Desktop.
Compile OpenCV 3.1.0 on Centos 6.9 with Anaconda 3
cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/path/to/anaconda3/ \
-D BUILD_NEW_PYTHON_SUPPORT=ON \
-D BUILD_OPENCV_PYTHON3=OFF \
-D BUILD_OPENCV_PYTHON2=OFF \
-D INSTALL_C_EXAMPLES=OFF \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_JPEG=ON \
-D BUILD_JASPER=ON \
-D BUILD_TIFF=ON \
-D BUILD_PNG=ON \
-D PYTHON_DEFAULT_EXECUTABLE=/path/to/anaconda3/bin/python \
-D HAVE_VIDEOIO=NO \
-D WITH_FFMPEG=NO ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment