From d2bfefb425b4ab2b823a2e68ee327e64efd9137f Mon Sep 17 00:00:00 2001 From: Vinay Date: Wed, 7 Aug 2019 14:21:01 +0530 Subject: [PATCH] Script compitability with CUDA 10 version is done --- buildAndPackageOpenCV.sh | 21 ++++++++++++++++++++- buildOpenCV.sh | 21 +++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/buildAndPackageOpenCV.sh b/buildAndPackageOpenCV.sh index f2a0d9a..59bf429 100755 --- a/buildAndPackageOpenCV.sh +++ b/buildAndPackageOpenCV.sh @@ -139,6 +139,26 @@ cd build # Check OpenCV documentation for details +#cmake below lines if Cuda version is 10 +time cmake -D CMAKE_BUILD_TYPE=RELEASE \ + -D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} \ + -D WITH_CUDA=ON \ + -D CUDA_ARCH_BIN=${ARCH_BIN} \ + -D CUDA_ARCH_PTX="" \ + -D ENABLE_FAST_MATH=ON \ + -D CUDA_FAST_MATH=ON \ + -D WITH_CUBLAS=ON \ + -D WITH_LIBV4L=ON \ + -D WITH_GSTREAMER=ON \ + -D WITH_GSTREAMER_0_10=OFF \ + -D WITH_QT=ON \ + -D WITH_OPENGL=ON \ + -D WITH_NVCUVID=OFF \ + -D BUILD_opencv_cudacodec=OFF \ + ../ + + +#cmake below lines if Cuda version is less than 10 time cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} \ -D WITH_CUDA=ON \ @@ -152,7 +172,6 @@ time cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D WITH_GSTREAMER_0_10=OFF \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \ - -D CPACK_BINARY_DEB=ON \ ../ if [ $? -eq 0 ] ; then diff --git a/buildOpenCV.sh b/buildOpenCV.sh index 5236422..a2576d7 100755 --- a/buildOpenCV.sh +++ b/buildOpenCV.sh @@ -138,6 +138,27 @@ cd build # There are also switches which tell CMAKE to build the samples and tests # Check OpenCV documentation for details + +#cmake below lines if Cuda version is 10 +time cmake -D CMAKE_BUILD_TYPE=RELEASE \ + -D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} \ + -D WITH_CUDA=ON \ + -D CUDA_ARCH_BIN=${ARCH_BIN} \ + -D CUDA_ARCH_PTX="" \ + -D ENABLE_FAST_MATH=ON \ + -D CUDA_FAST_MATH=ON \ + -D WITH_CUBLAS=ON \ + -D WITH_LIBV4L=ON \ + -D WITH_GSTREAMER=ON \ + -D WITH_GSTREAMER_0_10=OFF \ + -D WITH_QT=ON \ + -D WITH_OPENGL=ON \ + -D WITH_NVCUVID=OFF \ + -D BUILD_opencv_cudacodec=OFF \ + ../ + + +#cmake below lines if Cuda version is less than 10 time cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} \ -D WITH_CUDA=ON \