Ask Your Question

Revision history [back]

I tried multiple cmake options to see if these failed tests would go away. The original cmake with 34 failed tests is: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D WITH_CUDA=ON -D WITH_TBB=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D WITH_FFMPEG=1 -D WITH_OPENGL=ON -D BUILD_DOCS=1 -DBUILD_TESTS=ON -D OPENCV_TEST_DATA_PATH=../../opencv_extra/testdata -D OPENCV_ENABLE_NONFREE=ON -D BUILD_opencv_cudacodec=OFF ..

After I turned ENABLE_FAST_MATH, CUDA_FAST_MATH, WITH_CUBLAS, WITH_FFMPEG and to OFF, the build was able to pass all tests except Core_globbing.accuracy. Unfortunately, I am not sure whether turning all four off are necessary as I don't have time to test, I do think WITH_FFMPEG can be kept ON. Here was the command I used:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D WITH_CUDA=ON -D WITH_TBB=ON -D WITH_OPENGL=ON -D BUILD_DOCS=1 -DBUILD_TESTS=ON -D OPENCV_TEST_DATA_PATH=../../opencv_extra/testdata -D OPENCV_ENABLE_NONFREE=ON -D BUILD_opencv_cudacodec=OFF ..