OpenCV 3.0 videoio error

前端 未结 1 1702
温柔的废话
温柔的废话 2020-12-29 07:22

I tried to compile OpenCV 3.0 alpha library for Qt Creator 5.4 with CMake 3.1.0, but I have error:

[ 44%] Building CXX object modules/videoio/CMakeFiles/open         


        
相关标签:
1条回答
  • 2020-12-29 07:35

    I just ran into the same issue when compiling opencv3.0.0 on windows with mingw. I found a solutions following this link.

    Go in the repository where opencv sources are located.

    For me it was "C:/opencv/sources/".

    Go to the "Cmake/" folder and search for the file named "OpenCVCompilerOptions.cmake"

    You just comment the line :

    add_extra_compiler_option(-Werror=non-virtual-dtor)
    

    So it should become

    #add_extra_compiler_option(-Werror=non-virtual-dtor)
    

    Now, you're good to configure and generate the makefile with cmake, the mingw32-make command line should work fine.

    0 讨论(0)
提交回复
热议问题