I’ve tried openCV 4.8.0 and 4.9.0; same errors.
Here is where the 1st error occurs:
7 errors detected in the compilation of "/home/dk/opencv490/opencv_contrib-4.9.0/modules/cudaarithm/src/cuda/minmax.cu".
CMake Error at cuda_compile_1_generated_minmax.cu.o.RELEASE.cmake:282 (message):
Error generating file
/home/dk/opencv490/opencv-4.9.0/build/modules/cudaarithm/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_minmax.cu.o
Here is where the 2nd error occurs:
[ 35%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/softmax_layer.cpp.o
In file included from /home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn.hpp:,
from /home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:12,
from /home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:8,
from /home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/recurrent_layers.cpp:49:
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNDescriptor(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNMode, int, int, bool, const cv::dnn::cuda4dnn::csl::cudnn::DropoutDescriptor&) [with T = __half]’:
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:541:23: required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = __half]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21: required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = __half]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:194:37: required from ‘cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/recurrent_layers.cpp:763:48: required from here
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:122:58: error: ‘cudnnSetRNNDescriptor_v6’ was not declared in this scope; did you mean ‘cudnnSetRNNDescriptor_v8’?
122 | CUDA4DNN_CHECK_CUDNN(cudnnSetRNNDescriptor_v6(
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
22 | ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
| ^~~~
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘size_t cv::dnn::cuda4dnn::csl::cudnn::getRNNWorkspaceSize(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&) [with T = __half; size_t = long unsigned int]’:
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:553:58: required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = __half]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21: required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = __half]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:194:37: required from ‘cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/recurrent_layers.cpp:763:48: required from here
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:166:50: error: ‘cudnnGetRNNWorkspaceSize’ was not declared in this scope; did you mean ‘cudnnGetRNNWeightSpaceSize’?
166 | CUDA4DNN_CHECK_CUDNN(cudnnGetRNNWorkspaceSize(handle.get(), rnnDesc.get(), seqLength,
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
22 | ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
| ^~~~
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNDescriptor(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>::RNNMode, int, int, bool, const cv::dnn::cuda4dnn::csl::cudnn::DropoutDescriptor&) [with T = float]’:
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:541:23: required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = float]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21: required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = float]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:196:37: required from ‘cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/recurrent_layers.cpp:763:48: required from here
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:122:58: error: ‘cudnnSetRNNDescriptor_v6’ was not declared in this scope; did you mean ‘cudnnSetRNNDescriptor_v8’?
122 | CUDA4DNN_CHECK_CUDNN(cudnnSetRNNDescriptor_v6(
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
22 | ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
| ^~~~
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘size_t cv::dnn::cuda4dnn::csl::cudnn::getRNNWorkspaceSize(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&) [with T = float; size_t = long unsigned int]’:
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:553:58: required from ‘cv::dnn::cuda4dnn::csl::LSTM<T>::LSTM(cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::dnn::cuda4dnn::csl::LSTM<T>::params_type&) [with T = float]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:48:21: required from ‘cv::dnn::cuda4dnn::LSTMOp<T>::LSTMOp(cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, const cv::Mat&, const cv::Mat&, const cv::Mat&, const cv::dnn::cuda4dnn::RNNConfiguration&) [with T = float]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../op_cuda.hpp:196:37: required from ‘cv::Ptr<cv::dnn::dnn4_v20231225::BackendNode> cv::dnn::make_cuda_node(int, Args&& ...) [with NodeType = cv::dnn::cuda4dnn::LSTMOp; Args = {cv::dnn::cuda4dnn::csl::Stream, cv::dnn::cuda4dnn::csl::cudnn::Handle, cv::Mat&, cv::Mat&, cv::Mat&, cv::dnn::cuda4dnn::RNNConfiguration&}]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/recurrent_layers.cpp:763:48: required from here
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:166:50: error: ‘cudnnGetRNNWorkspaceSize’ was not declared in this scope; did you mean ‘cudnnGetRNNWeightSpaceSize’?
166 | CUDA4DNN_CHECK_CUDNN(cudnnGetRNNWorkspaceSize(handle.get(), rnnDesc.get(), seqLength,
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
22 | ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
| ^~~~
[ 35%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/split_layer.cpp.o
[ 35%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/tile_layer.cpp.o
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘void cv::dnn::cuda4dnn::csl::cudnn::LSTMForward(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, const cv::dnn::cuda4dnn::csl::cudnn::FilterDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = float]’:
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:563:34: required from ‘void cv::dnn::cuda4dnn::csl::LSTM<T>::inference(cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = float]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:79:23: required from ‘void cv::dnn::cuda4dnn::LSTMOp<T>::forward(const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendWrapper> >&, const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendWrapper> >&, cv::dnn::cuda4dnn::csl::Workspace&) [with T = float]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:63:10: required from here
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:182:50: error: ‘cudnnRNNForwardInference’ was not declared in this scope
182 | CUDA4DNN_CHECK_CUDNN(cudnnRNNForwardInference(handle.get(), rnnDesc.get(), seqLength,
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
22 | ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
| ^~~~
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp: In instantiation of ‘void cv::dnn::cuda4dnn::csl::cudnn::LSTMForward(const cv::dnn::cuda4dnn::csl::cudnn::Handle&, const cv::dnn::cuda4dnn::csl::cudnn::RNNDescriptor<T>&, const cv::dnn::cuda4dnn::csl::cudnn::FilterDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptor<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<const T>, int, const cv::dnn::cuda4dnn::csl::cudnn::TensorDescriptorsArray<T>&, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::DevicePtr<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = __half]’:
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/tensor_ops.hpp:563:34: required from ‘void cv::dnn::cuda4dnn::csl::LSTM<T>::inference(cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorSpan<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::TensorView<T>, cv::dnn::cuda4dnn::csl::WorkspaceInstance) [with T = __half]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:79:23: required from ‘void cv::dnn::cuda4dnn::LSTMOp<T>::forward(const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendWrapper> >&, const std::vector<cv::Ptr<cv::dnn::dnn4_v20231225::BackendWrapper> >&, cv::dnn::cuda4dnn::csl::Workspace&) [with T = __half]’
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/recurrent_cells.hpp:63:10: required from here
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/recurrent.hpp:182:50: error: ‘cudnnRNNForwardInference’ was not declared in this scope
182 | CUDA4DNN_CHECK_CUDNN(cudnnRNNForwardInference(handle.get(), rnnDesc.get(), seqLength,
/home/dk/opencv490/opencv-4.9.0/modules/dnn/src/layers/../cuda4dnn/primitives/../../cuda4dnn/csl/cudnn/cudnn.hpp:22:53: note: in definition of macro ‘CUDA4DNN_CHECK_CUDNN’
22 | ::cv::dnn::cuda4dnn::csl::cudnn::detail::check((call), CV_Func, __FILE__, __LINE__)
| ^~~~
make[2]: *** [modules/dnn/CMakeFiles/opencv_dnn.dir/build.make:1386: modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/recurrent_layers.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:5793: modules/dnn/CMakeFiles/opencv_dnn.dir/all] Error 2
[ 35%] Building CXX object modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/src/pyramids.cpp.o
[ 35%] Building CXX object modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/src/remap.cpp.o
[ 36%] Building CXX object modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/src/resize.cpp.o
[ 36%] Building CXX object modules/cudawarping/CMakeFiles/opencv_cudawarping.dir/src/warp.cpp.o
[ 36%] Linking CXX shared library ../../lib/libopencv_cudawarping.so
[ 36%] Built target opencv_cudawarping
make: *** [Makefile:166: all] Error 2
openCV build config:
--
-- General configuration for OpenCV 4.9.0 =====================================
-- Version control: unknown
--
-- Extra modules:
-- Location (extra): /home/dk/opencv490/opencv_contrib-4.9.0/modules
-- Version control (extra): unknown
--
-- Platform:
-- Timestamp: 2024-04-25T20:21:23Z
-- Host: Linux 6.5.0-28-generic x86_64
-- CMake: 3.22.1
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/gmake
-- Configuration: RELEASE
--
-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3
-- requested: SSE3
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_1 (16 files): + SSSE3 SSE4_1
-- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
-- FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
-- AVX (8 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- AVX2 (36 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- AVX512_SKX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ standard: 11
-- C++ Compiler: /usr/bin/g++-11 (ver 11.4.0)
-- C++ flags (Release): -fsigned-char -ffast-math -fno-finite-math-only -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -ffast-math -fno-finite-math-only -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/gcc-11
-- C flags (Release): -fsigned-char -ffast-math -fno-finite-math-only -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fopenmp -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -ffast-math -fno-finite-math-only -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fopenmp -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release): -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
-- Linker flags (Debug): -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
-- ccache: NO
-- Precompiled headers: NO
-- Extra dependencies: m pthread cudart_static dl rt nppc nppial nppicc nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cudnn cufft -L/usr/local/cuda/lib64 -L/usr/lib/x86_64-linux-gnu
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: alphamat cannops cvv hdf java julia matlab ovis python2 sfm ts viz
-- Applications: examples apps
-- Documentation: NO
-- Non-free algorithms: NO
--
-- GUI: GTK3
-- GTK+: YES (ver 3.24.33)
-- GThread : YES (ver 2.72.4)
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
-- WEBP: build (ver encoder: 0x020f)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.37)
-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.3.0)
-- JPEG 2000: build (ver 2.5.0)
-- OpenEXR: /usr/lib/x86_64-linux-gnu/libImath-2_5.so /usr/lib/x86_64-linux-gnu/libIlmImf-2_5.so /usr/lib/x86_64-linux-gnu/libIex-2_5.so /usr/lib/x86_64-linux-gnu/libHalf-2_5.so /usr/lib/x86_64-linux-gnu/libIlmThread-2_5.so (ver 2_5)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES
--
-- Video I/O:
-- DC1394: NO
-- FFMPEG: YES
-- avcodec: YES (58.134.100)
-- avformat: YES (58.76.100)
-- avutil: YES (56.70.100)
-- swscale: YES (5.9.100)
-- avresample: NO
-- GStreamer: YES (1.20.3)
-- v4l/v4l2: YES (linux/videodev2.h)
--
-- Parallel framework: TBB (ver 2020.2 interface 11102)
--
-- Trace: YES (with Intel ITT)
--
-- Other third-party libraries:
-- Intel IPP: 2021.10.0 [2021.10.0]
-- at: /home/dk/opencv490/opencv-4.9.0/build/3rdparty/ippicv/ippicv_lnx/icv
-- Intel IPP IW: sources (2021.10.0)
-- at: /home/dk/opencv490/opencv-4.9.0/build/3rdparty/ippicv/ippicv_lnx/iw
-- VA: NO
-- Lapack: NO
-- Eigen: NO
-- Custom HAL: NO
-- Protobuf: build (3.19.1)
-- Flatbuffers: builtin/3rdparty (23.5.9)
--
-- NVIDIA CUDA: YES (ver 12.4, CUFFT CUBLAS NVCUVID NVCUVENC FAST_MATH)
-- NVIDIA GPU arch: 50 52 60 61 70 75 80 86 89 90
-- NVIDIA PTX archs: 90
--
-- cuDNN: YES (ver 9.1.0)
--
-- OpenCL: YES (no extra features)
-- Include path: /home/dk/opencv490/opencv-4.9.0/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: /home/dk/.virtualenvs/cv/bin/python (ver 3.10.12)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython3.10.so (ver 3.10.12)
-- numpy: /home/dk/.virtualenvs/cv/lib/python3.10/site-packages/numpy/core/include (ver 1.26.4)
-- install path: ~/.virtualenvs/cv/lib/python3.10/site-packages/cv2/python-3.10
--
-- Python (for build): /home/dk/.virtualenvs/cv/bin/python
--
-- Java:
-- ant: NO
-- Java: NO
-- JNI: NO
-- Java wrappers: NO
-- Java tests: NO
--
-- Install to: /usr/local
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dk/opencv490/opencv-4.9.0/build
I’ve tried many things… nothing helps. Maybe need to install OLDER GCC? Not sure exactly how I should do that safely.
Need some advice on what my issue is.