Env settings:
OS: Windows 10 64bit
ToolChain: MinGW-W64 configured with "x86_64-8.1.0-posix-seh-rt_v6-rev0"
IDE: JetBrain CLion
Build Type: Debug
CMake Options:
-DENABLE_PRECOMPILED_HEADERS=OFF
-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules
-DOPENCV_TEST_DATA_PATH=../opencv_extra/testdata
-DBUILD_EXAMPLES=ON
-DBUILD_JAVA=OFF
-DBUILD_opencv_xfeatures2d=ON
-DBUILD_opencv_calib3d=ON
-DBUILD_opencv_apps=OFF
-DBUILD_opencv_aruco=OFF
-DBUILD_opencv_besegm=OFF
-DBUILD_opencv_bioinspired=OFF
-DBUILD_opencv_ccalib=OFF
-DBUILD_opencv_dnn=OFF
-DBUILD_opencv_dnn_objdetect=OFF
-DBUILD_opencv_flann=ON
-DBUILD_opencv_fuzzy=OFF
-DBUILD_opencv_hdf=OFF
-DBUILD_opencv_hfs=OFF
-DBUILD_opencv_java_bindings_generator=OFF
-DBUILD_opencv_js=OFF
-DBUILD_opencv_legacy=OFF
-DBUILD_opencv_line_descriptor=OFF
-DBUILD_opencv_ml=OFF
-DBUILD_opencv_objdetect=OFF
-DBUILD_opencv_optflow=OFF
-DBUILD_opencv_photo=OFF
-DBUILD_opencv_pref_core=OFF
-DBUILD_opencv_python3=OFF
-DBUILD_opencv_python_bindings_generator=OFF
-DBUILD_opencv_shape=OFF
-DBUILD_opencv_stereo=OFF
-DBUILD_opencv_stitching=OFF
-DBUILD_opencv_structured_light=OFF
-DBUILD_opencv_surface_matching=OFF
-DBUILD_opencv_tracking=OFF
-DBUILD_opencv_video=OFF
-DBUILD_opencv_ximgproc=OFF
-DBUILD_opencv_xphoto=OFF
-DWITH_1394=OFF
-DWITH_CUDA=OFF
-DWITH_IPP=OFF
-DWITH_MSMF=OFF
-DWITH_OPENCL=OFF
-G "MinGW Makefiles" ..
Problem:
When running the ../features2d/test/test_fast.cpp
, it outputs the following information:
Testing started at 9:04 ...
C:\Users\laurence\dev\opencv\cmake_build_w_contrib_mingw\bin\opencv_test_features2dd.exe --
1. gtest_filter=Features2d_FAST.*:Features2d_FAST/*.*:*/Features2d_FAST.*/*:*/Features2d_FAST/*.*
--gtest_color=no CTEST_FULL_OUTPUT OpenCV version: 4.0.0-pre OpenCV VCS
version: cc9211f-dirty Build type:
Debug Compiler:
C:/Dev/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/g++.exe
(ver 8.1.0) unknown file: Failure
C++ exception with description
"basic_string::_M_construct null not
valid" thrown in auxiliary test code
(environments or event listeners).
Process finished with exit code 1
Empty test suite.
Before running debugging, there were following break points:
- line
CV_FastTest test;
in thetest_fast.cpp
- line
test.safe_run();
in thetest_fast.cpp
- line
data_search_subdir.push_back(modulename);
ints.cpp
- line
rng = RNG(params.rng_seed);
ints.cpp
When debugging, it go through the points 1 to 4 , and exit the void TS::init( const string& modulename )
in ts.cpp
with data_path
valued "C:\\Users\\u\\base\\opencv_extra\\testdata/cv/""
then, however, it directly outputs the above error information. I don't know exact code line that triggered the error.
Online searching of the error suggests that it may caused by there are certain needed components haven't compiled. However, given the test_fast.cpp
is in feature2d
and the cmake options
applied, it doesn't seems to be the case here.
Any suggestions on what may missed?