opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

Module cvv requires gcc12 to compile

Open derinsh opened this issue 2 years ago • 1 comments

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

derinsh avatar Jun 09 '23 21:06 derinsh

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, ...).

mshabunin avatar Jun 13 '23 18:06 mshabunin