Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion buildAndPackageOpenCV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
21 changes: 21 additions & 0 deletions buildOpenCV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down