Skip to content

Instantly share code, notes, and snippets.

@drhirsch
Created September 5, 2016 03:08
Show Gist options
  • Save drhirsch/52f07898b702bf6182fc6345ec0d6da5 to your computer and use it in GitHub Desktop.
Save drhirsch/52f07898b702bf6182fc6345ec0d6da5 to your computer and use it in GitHub Desktop.
Minimal OpenCV 3.1 cmake command
cmake -DBUILD_TIFF=ON -DBUILD_opencv_java=OFF -DWITH_CUDA=OFF -DENABLE_AVX=OFF -DWITH_OPENGL=OFF -DWITH_OPENCL=OFF -DWITH_IPP=OFF -DWITH_TBB=OFF -DWITH_EIGEN=OFF -DWITH_V4L=OFF -DWITH_VTK=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -DPYTHON3_EXECUTABLE=$(which python3) -DPYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON3_PACKAGES_PATH=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment