Skip to content

Instantly share code, notes, and snippets.

@qingswu
Created July 8, 2016 09:15
Show Gist options
  • Save qingswu/1c688af97953c2833c96c43092e94c72 to your computer and use it in GitHub Desktop.
Save qingswu/1c688af97953c2833c96c43092e94c72 to your computer and use it in GitHub Desktop.
OpenCV compile with CUDA and python2 in OS X
cmake -DWITH_CUDA=ON -DWITH_CUFFT=ON -DWITH_CUBLAS=ON -DCMAKE_BUILD_TYPE=Release -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -DBUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_DOCS=OFF -DCUDA_ARCH_BIN=3.0 -DCUDA_ARCH_PTX=3.0 -DPYTHON2_LIBRARY=$(python-config --prefix)/lib/libpython2.7.dylib -DPYTHON2_INCLUDE_DIR=$(python-config --prefix)/include/python2.7 ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment