2

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.

3
  • It can't find the directory C:/opencv2.4.12/opencv/sources/modules/highgui/. Is it there? Commented Jun 24, 2016 at 9:20
  • @Velkan, it's physically existed in the directory, but I don't know why the build error says the highgui module is not found. Commented Jun 24, 2016 at 18:18
  • In my case it searches for modules/highgui/CMakeFiles/opencv_highgui.dir/all, What i have here is modules/highgui/CMakeFiles/opencv_highgui.dir/src Commented Apr 7, 2017 at 20:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.