In file included from test_blenders.cpp:42: test_precomp.hpp:7:10: fatal error: opencv2/ts.hpp: No such file or directory 7 | #include “opencv2/ts.hpp” | ^~~~~~~~~~~~~~~~ compilation terminated
It is saying this error again and again even though this file directory is present?
i still do not see any proper error msg ,
however, most tests need additional data from here
(you need to clone another gh repo), e.g. the missing xml file is here
┌──(aashka㉿Technology)-[~/opencv/modules/core/test]
└─$ g++ test_operations.cpp -o test_operations -I/home/aashka/opencv/modules/core/test/
In file included from test_operations.cpp:43:
test_precomp.hpp:7:10: fatal error: opencv2/ts.hpp: No such file or directory
7 | #include “opencv2/ts.hpp”
| ^~~~~~~~~~~~~~~~
or
┌──(aashka㉿Technology)-[~/opencv/modules/core/test]
└─$ g++ test_operations.cpp -o test_operations -I/home/aashka/opencv/modules/core/include -I/home/aashka/opencv/build/include -L/home/aashka/opencv/build/lib -lopencv_core
In file included from test_operations.cpp:43:
test_precomp.hpp:7:10: fatal error: opencv2/ts.hpp: No such file or directory
7 | #include “opencv2/ts.hpp”
| ^~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
i send you the screenshot of this only i wrote the library and all then only error came ,i didnt wrote that way it was showing in vscode the way you quote out , if we run via the run symbol it is showing “g++ test_operations.cpp -o test_operations” way only,i didnt wrote it like this , i wrote the complete path in terminal than ran the code and the the error was shown i didnt did it that way ,sorry about the screenshot i didnt knew , i was not getting why the error is coming thats why i send