Error when compiling (linking) opencv Highgui with mingw
Hello, i have tried for hours now to compile the opencv files. i followed the guide here (https://wiki.qt.io/How_to_setup_Qt_an...) and trying to get it working with QT. i also turned off BUILD_PROTOBUF and BUILD_opencv_videoio. When i compile i get a huge error message at "[ 88%] Linking CXX shared library ....\bin\libopencv_highgui343.dll". Here is the first few lines of the error message:
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj):window_QT.cpp:(.text$_ZN10CvWinModelD1Ev[__ZN10CvWinModelD1Ev]+0xf): undefined reference to _imp___ZN7QWidgetD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj):window_QT.cpp:(.text$_ZN10CvWinModelD0Ev[__ZN10CvWinModelD0Ev]+0x15): undefined reference to
_imp___ZN7QWidgetD2Ev'
CMakeFiles\opencv_highgui.dir/objects.a(window_QT.cpp.obj):window_QT.cpp:(.text$_ZN14OpenGlViewPort7setSizeE5QSize+0x13): undefined reference to `_imp___ZN7QWidget14updateGeometryEv'
And that continues for miles. I hope someone can help me cause im in the dark here.
im on a windows 10 64, with intel i5-7300HQ
Thanks!
do you absolutely need qt support ?
(it also seems, your qt version does not match, what the highgui bindinnngs expect)
Im using this for a course so yes, i need qt. So it might be my Qt installation that is wrong version?
that's what i am suspecting. (but i never used this, so idk.)
no, don't do that, it's entirely unrelated. and you probably NEED a webcam, while you for sure dont NEED extra qt functionality
I know i dont need qt functionality, but it makes it easier in class. thanks for the anwsers, ill try to install an earlier version of Qt.