ubuntu 20.04,
haved finished ./install_dependices
cuda version = 11.6;
i set use_cuda = 1;
and then happened the error:
Scanning dependencies of target opencv_python3
[ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
[ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_numpy.cpp.o
[ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_convert.cpp.o
[ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_util.cpp.o
[ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_highgui.cpp.o
In file included from /home/robot/plvs/Thirdparty/opencv/build/modules/python_bindings_generator/pyopencv_generated_include.h:93,
from /home/robot/plvs/Thirdparty/opencv/modules/python/src2/cv2.cpp:11:
/home/robot/plvs/Thirdparty/opencv/opencv_contrib-4.8.0/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp:121:26: warning: ‘virtual void cv::cuda::DescriptorMatcher::clear()’ can be marked override [-Wsuggest-override]
121 | CV_WRAP virtual void clear() = 0;
| ^~~~~
/home/robot/plvs/Thirdparty/opencv/opencv_contrib-4.8.0/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp:125:26: warning: ‘virtual bool cv::cuda::DescriptorMatcher::empty() const’ can be marked override [-Wsuggest-override]
125 | CV_WRAP virtual bool empty() const = 0;
| ^~~~~
In file included from /home/robot/plvs/Thirdparty/opencv/build/modules/python_bindings_generator/pyopencv_custom_headers.h:23,
from /home/robot/plvs/Thirdparty/opencv/modules/python/src2/cv2.cpp:88:
/home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:85:27: error: ‘GInferOutputs’ in namespace ‘cv’ does not name a type
85 | GAPI_EXPORTS_W inline cv::GInferOutputs infer(const String& name, const cv::GInferInputs& inputs)
| ^~~~~
/home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:90:23: error: ‘GInferOutputs’ does not name a type
90 | GAPI_EXPORTS_W inline GInferOutputs infer(const std::string& name,
| ^~~~~
/home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:97:23: error: ‘GInferListOutputs’ does not name a type
97 | GAPI_EXPORTS_W inline GInferListOutputs infer(const std::string& name,
| ^~~~~
/home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:104:23: error: ‘GInferListOutputs’ does not name a type
104 | GAPI_EXPORTS_W inline GInferListOutputs infer2(const std::string& name,
| ^~~~~
In file included from /home/robot/plvs/Thirdparty/opencv/build/modules/python_bindings_generator/pyopencv_custom_headers.h:24,
from /home/robot/plvs/Thirdparty/opencv/modules/python/src2/cv2.cpp:88:
/home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/pyopencv_gapi.hpp:15:49: error: ‘GNetPackage’ in namespace ‘cv::gapi’ does not name a type; did you mean ‘GKernelPackage’?
15 | using gapi_GNetPackage = cv::gapi::GNetPackage;
| ^~~
| GKernelPackage
/home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/pyopencv_gapi.hpp:16:49: error: ‘ie’ in namespace ‘cv::gapi’ does not name a type
16 | using gapi_ie_PyParams = cv::gapi::ie::PyParams;
| ^~
/home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/pyopencv_gapi.hpp:17:49: error: ‘onnx’ in namespace ‘cv::gapi’ does not name a type
17 | using gapi_onnx_PyParams = cv::gapi::onnx::PyParams;
ubuntu 20.04, haved finished ./install_dependices cuda version = 11.6; i set use_cuda = 1; and then happened the error: Scanning dependencies of target opencv_python3 [ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o [ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_numpy.cpp.o [ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_convert.cpp.o [ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_util.cpp.o [ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir//src2/cv2_highgui.cpp.o In file included from /home/robot/plvs/Thirdparty/opencv/build/modules/python_bindings_generator/pyopencv_generated_include.h:93, from /home/robot/plvs/Thirdparty/opencv/modules/python/src2/cv2.cpp:11: /home/robot/plvs/Thirdparty/opencv/opencv_contrib-4.8.0/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp:121:26: warning: ‘virtual void cv::cuda::DescriptorMatcher::clear()’ can be marked override [-Wsuggest-override] 121 | CV_WRAP virtual void clear() = 0; | ^~~~~ /home/robot/plvs/Thirdparty/opencv/opencv_contrib-4.8.0/modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp:125:26: warning: ‘virtual bool cv::cuda::DescriptorMatcher::empty() const’ can be marked override [-Wsuggest-override] 125 | CV_WRAP virtual bool empty() const = 0; | ^~~~~ In file included from /home/robot/plvs/Thirdparty/opencv/build/modules/python_bindings_generator/pyopencv_custom_headers.h:23, from /home/robot/plvs/Thirdparty/opencv/modules/python/src2/cv2.cpp:88: /home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:85:27: error: ‘GInferOutputs’ in namespace ‘cv’ does not name a type 85 | GAPI_EXPORTS_W inline cv::GInferOutputs infer(const String& name, const cv::GInferInputs& inputs) | ^
~~~~ /home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:90:23: error: ‘GInferOutputs’ does not name a type 90 | GAPI_EXPORTS_W inline GInferOutputs infer(const std::string& name, | ^~~~~ /home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:97:23: error: ‘GInferListOutputs’ does not name a type 97 | GAPI_EXPORTS_W inline GInferListOutputs infer(const std::string& name, | ^~~~~ /home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/python_bridge.hpp:104:23: error: ‘GInferListOutputs’ does not name a type 104 | GAPI_EXPORTS_W inline GInferListOutputs infer2(const std::string& name, | ^~~~~ In file included from /home/robot/plvs/Thirdparty/opencv/build/modules/python_bindings_generator/pyopencv_custom_headers.h:24, from /home/robot/plvs/Thirdparty/opencv/modules/python/src2/cv2.cpp:88: /home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/pyopencv_gapi.hpp:15:49: error: ‘GNetPackage’ in namespace ‘cv::gapi’ does not name a type; did you mean ‘GKernelPackage’? 15 | using gapi_GNetPackage = cv::gapi::GNetPackage; | ^~~| GKernelPackage /home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/pyopencv_gapi.hpp:16:49: error: ‘ie’ in namespace ‘cv::gapi’ does not name a type 16 | using gapi_ie_PyParams = cv::gapi::ie::PyParams; | ^~ /home/robot/plvs/Thirdparty/opencv/modules/gapi/misc/python/pyopencv_gapi.hpp:17:49: error: ‘onnx’ in namespace ‘cv::gapi’ does not name a type 17 | using gapi_onnx_PyParams = cv::gapi::onnx::PyParams;how can i solve it ? thank you!