I have built OpenCV on Windows x64 using MSVC compiler.
The steps are mentioned below:
git clone GitHub - opencv/opencv: Open Source Computer Vision Library
git clone GitHub - opencv/opencv_contrib: Repository for OpenCV's extra modules
I have also cloned opencv_extra repository and checkout to branch 4.10.0.
set OPENCV_TEST_DATA_PATH=C:\path\to\opencv_extra\testdata
cd opencv
git checkout tags/4.10.0
mkdir build
cd build
cmake -S .. -B . -G “Visual Studio 17 2022” -DCMAKE_BUILD_TYPE=Release -DBUILD_opencv_world=ON -DBUILD_TESTS=ON -DBUILD_PERF_TESTS=ON -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules -DWITH_ITT=OFF -DWITH_OPENCL=OFF -DWITH_OPENCLAMDBLAS=OFF -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCL_D3D11_NV=OFF -DWITH_DIRECTML=OFF -DWITH_DIRECTX=OFF -DWITH_ADE=OFF
cmake --build . --config Release
cmake --build . --target INSTALL --config Release
Command used to run the test → opencv_test_videoio.exe --gtest_filter=Media.audio/1
Issue: I try to run the test by using the command mentioned above but test execution is getting hanged. Is there any additional setup or configuration is required in order to execute the test on windows.
Observation: The test is getting hanged while built using MSVC and the test is getting failed using LLVM clang compiler (but not getting hanged).
Thanks