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