Highgui module build fails keeping appearing in the build process
Hi everyone, I've been quite frustrated and desperate to find the way to fix this really bizarre error about the task of linking OpenCV to QT SDK using CMake-gui. I've already tried to fix this problem for a week straight, but I kept having this following build error Basically saying that opencv_highgui not be able to build its target with the QT option.
[26%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/opencv_highgui_pch_dephelp.cxx.obj
Linking CXX static library ....\lib\libopencv_highgui_pch_dephelpd.a
[ 26%] Built target opencv_highgui_pch_dephelp
[ 26%] Generating precomp.hpp.gch/opencv_highgui_Debug.gch
[ 26%] Built target pch_Generate_opencv_highgui
mingw32-make2: *** No rule to make target 'C:/opencv2.4.12/opencv/sources/modules/highgui/', needed by 'modules/highgui/qrc_window_QT.cpp'. Stop.
CMakeFiles\Makefile2:1982: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
mingw32-make1: * [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 makefile:145: recipe for target 'all' failed mingw32-make: * [all] Error 2
I was able to fix a bunch of major and minor issues for the configuration process, but couldn't get over this build error when compiling MinGW 32 with the command mingw32-make.
I followed the instruction recommended here Instruction for building OpenCV for QT SDK. One of my friend got it worked before, but I don't know why it keeps getting build errors for me.
I'm really looking for the correct fix soon since I couldn't make any progress with this one.