Skip to content

Instantly share code, notes, and snippets.

@arcaduf
Last active September 6, 2017 10:23
Show Gist options
  • Save arcaduf/9cbf65972316697a74a96a8c9adb0928 to your computer and use it in GitHub Desktop.
Save arcaduf/9cbf65972316697a74a96a8c9adb0928 to your computer and use it in GitHub Desktop.
Installing OpenCV
Download directly the Git repo of opencv and opencv_contrib;
Type: "cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D INSTALL_PYTHON_EXAMPLES=ON -D WITH_IPP=OFF -D BUILD_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
"make -j 4"
"sudo make install"
"sudo ldconfig"
Even if it runs on 4 cores, building OpenCV requires 4/4.5 h, so equip yourself with patience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment