The library is compiled without QT support in function displayOverlay [closed]
I am using static OpenCV 3.0 libraries with Qt 5.4. I am having compilation errors about cv::displayOverlay():
OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in displayOverlay, file C:\Programs\opencv\sources\modules\highgui\src\window.cpp, line 446
terminate called after throwing an instance of 'cv::Exception'
what(): C:\Programs\opencv\sources\modules\highgui\src\window.cpp:446: error: (-213) The library is compiled without QT support in function displayOverlay
and
undefined reference to `_imp___ZN7QWidgetD2Ev'
Could it be that I am missing a static library? As a note, I compiled OpenCV myself and have made sure that WITH_QT was checked. I have no problems when using the dynamic libraries.
Actually that means that you added the with_QT option but that CMAKE didn't succeed in finding the complete QT installation itself. Run the CMAKE-gui interface, press configure and look which paths he doesn't find, then configure them manually.
try a
cerr << cv::getBuildInformation();
to check, if qt support was actually compiled in.I checked my CMAKE paths and I believe they were correct. This is my full compilation error:
I noticed that there was a CvWinModel class in window_QT.h but it doesn't help me much. This error is so cryptic and I've looked everywhere. I am not sure what else I can try. Any help would be really appreciated!
Did you run the code from @berak? If so what was the output?
i must say, i'm confused now.
"OpenCV Error: The function/feature is not implemented" - this is a runtime error. this means, that the program must have compiled and linked at some stage before.
"undefined reference to `_imp___ZN7QWidgetD2Ev'" - this is a linker error, no program will be built.
@berak, sorry for the confusion! I had "OpenCV Error: The function/feature is not implemented" before I recompiled openCV. After recompiling OpenCV using WITH_QT = ON, I only had the linker error.
@StevenPuttemans Because of the linker errors, I haven't been able to enter runtime mode so I can't yet run cerr << cv::getBuildInformation();.
where to use the WITH_QT=ON option? @Liimyd