-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ubuntu build make error #1950
Comments
I meet a similar error, any suggestion?
Opencv and opencv_contrib are both 4.1.0. |
Complete compiler command line is required via |
I solved it by copying opencv/modules/features2d to my build directory. |
@middlto |
I also have this problem. |
I solve this problem we can't find these file then modify the relative path to absolute path #include "/data/raid/project/software/opencv4.0.0/modules/features2d/test/test_detectors_regression.impl.hpp" |
There are special lines to handle that. Request is still the same:
|
I got the error too.
|
For some reason there is missing What is CMake version used? |
It seems like cmake building break by network problem. When I delete build folder and rebuild again, the problem is gone. |
Same problem, and solved it by your method! Thanks! It is a workaround to make the compilation continue. 😄 |
Workaround1: What is version of CMake used? |
Cmake 3.10.2. And here is the command I used under directory cmake -DOPENCV_EXTRA_MODULES_PATH=/home/kerry/workspace/opencv_contrib-4.1.2/modules -DOPENCV_GENERATE_PKGCONFIG=ON .. Repositories are downloaded from corresponding release page. |
Still can't reproduce with:
Please check for these lines in CMake output (no errors are expected)
and check "Unavailable" list of modules - |
yes,it works!just do it——Copy the 'features2d' directory from ‘’opencv / modules /‘’ to ‘build/’. |
i add “include_directories("${CMAKE_CURRENT_SOURCE_DIR}/modules")” in CMakelist.txt。it works also |
please see: opencv/opencv_contrib#1950 Signed-off-by: Yi Qingliang <niqingliang2003@gmail.com>
@nihuizhidao cp -r ~/opencv/modules/features2d ~/opencv/build |
Looks like this mostly happens if there isn't any networking during the configure step. |
edit the file: |
great!it solve my problem! |
this worked and solved my errors while cmake. |
make -j8 error
Scanning dependencies of target opencv_test_ximgproc
/home/zkl/zklcode/code/pycv/opencv_contrib/modules/xfeatures2d/test/test_rotation_and_scale_invariance.cpp:7:82: fatal error: features2d/test/test_detectors_invariance.impl.hpp: No such file or directory
compilation terminated.
Scanning dependencies of target opencv_perf_xfeatures2d
modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/build.make:110: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_rotation_and_scale_invariance.cpp.o' failed
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_rotation_and_scale_invariance.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target opencv_test_aruco
[ 86%] Building CXX object modules/aruco/CMakeFiles/opencv_test_aruco.dir/test/test_misc.cpp.o
CMakeFiles/Makefile2:14780: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all' failed
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: