opencv_contrib
opencv_contrib copied to clipboard
Module cvv requires gcc12 to compile
System information (version)
- OpenCV => master
- Operating System / Platform => Linux 64-bit
- Compiler => g++-10
Detailed description
Compilation of cvv fails with gcc10 due to error: unrecognized command-line option -mno-direct-extern-access a flag that seems to have been added in gcc12. Is there a workaround to allow compilation with gcc10?
Steps to reproduce
Compile opencv and opencv_contrib with gcc10
OpenCV does not use this command-line option (https://github.com/search?q=repo%3Aopencv%2Fopencv_contrib+direct-extern-access&type=code), please check your local configuration (CFLAGS, CXXFLAGS, CMAKE_CXX_FLAGS, ...).