ERROR WHILE INSTALLING OPENCV-3.4.9 IN UNBUNTU 20.--OPENCV_VIDEOSTAB
make output:
(cv) jv@jv-VirtualBox:~/opencv/build$ make -j4
[ 0%] Built target gen-pkgconfig
[ 1%] Built target ippiw
[ 8%] Built target libwebp
[ 12%] Built target IlmImf
[ 13%] Built target quirc
[ 14%] Built target ittnotify
[ 14%] Built target gen_opencv_python_source
[ 17%] Built target libprotobuf
[ 22%] Built target opencv_core
[ 22%] Built target opencv_flann
[ 22%] Built target opencv_version
[ 23%] Built target opencv_ml
[ 23%] Built target opencv_surface_matching
[ 27%] Built target opencv_imgproc
[ 27%] Built target opencv_reg
[ 27%] Built target opencv_video
[ 28%] Built target opencv_photo
[ 29%] Built target opencv_imgcodecs
[ 30%] Built target opencv_shape
[ 31%] Built target opencv_features2d
[ 34%] Built target opencv_dnn
[ 35%] Built target opencv_videoio
[ 36%] Built target opencv_calib3d
[ 36%] Processing OpenCL kernels (superres)
[ 36%] Processing OpenCL kernels (objdetect)
Scanning dependencies of target opencv_ccalib
[ 37%] Built target opencv_highgui
Scanning dependencies of target opencv_superres
Scanning dependencies of target opencv_videostab
[ 37%] Building CXX object modules/ccalib/CMakeFiles/opencv_ccalib.dir/src/ccalib.cpp.o
Scanning dependencies of target opencv_objdetect
[ 37%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1.cpp.o
[ 37%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/deblurring.cpp.o
[ 37%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/cascadedetect.cpp.o
In file included from /home/jv/opencv/modules/core/include/opencv2/core.hpp:56,
from /home/jv/opencv_contrib/modules/ccalib/src/precomp.hpp:45,
from /home/jv/opencv_contrib/modules/ccalib/src/ccalib.cpp:46:
/home/jv/opencv/modules/core/include/opencv2/core/traits.hpp: In instantiation of ‘struct cv::traits::Type<cv::KeyPoint>’:
/home/jv/opencv/modules/core/include/opencv2/core/mat.inl.hpp:634:23: required from ‘cv::Mat::Mat(const std::vector<_Tp>&, bool) [with _Tp = cv::KeyPoint]’
/home/jv/opencv_contrib/modules/ccalib/src/ccalib.cpp:410:25: required from here
/home/jv/opencv/modules/core/include/opencv2/core/traits.hpp:366:8: error: ‘type’ is not a member of ‘cv::DataType<cv::KeyPoint>’
366 | { enum { value = DataType<T>::type }; };
| ^
make[2]: *** [modules/ccalib/CMakeFiles/opencv_ccalib.dir/build.make:63: modules/ccalib/CMakeFiles/opencv_ccalib.dir/src/ccalib.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:5485: modules/ccalib/CMakeFiles/opencv_ccalib.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 37%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/cascadedetect_convert.cpp.o
[ 37%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/fast_marching.cpp.o
[ 37%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/detection_based_tracker.cpp.o
[ 37%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/frame_source.cpp.o
[ 37%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1_cuda.cpp.o
[ 37%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/global_motion.cpp.o
[ 37%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/frame_source.cpp.o
[ 37%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/haar.cpp.o
[ 37%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/hog.cpp.o
[ 37%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/input_array_utility.cpp.o
[ 37%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/optical_flow.cpp.o
[ 37%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/main.cpp ...
here's the exact error location:
so, ccalib, not videostab