Opencv highgui module in windows 10 [closed]

asked 2015-08-26 08:14:39 -0600

Ričards gravatar image

updated 2015-08-27 08:15:43 -0600


I Built opencv 3.0 master branch from source using cmake and visual studio 2013 community version. Aditional support was enabled for CUDA and VTK. Everything built fine, but when I call function imshow(), I get following error in console:

opencv error: Unspecified error (function ins not implemented. Rebuild the library with windows, GTK+ 2.x or Carbon support)....

It seems that it has something to do with window UI framework. In cmake configuration Win32UI option was selected and no errors appeared while building


Fix: By following suggestions in comments I rebuild OpenCV with Qt support (beforehand installing Qt 5.5 itself) and it solved the problem.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LBerger
close date 2015-08-27 09:41:06.389876


Try this post be sure to delete highgui.lib before rebuild opencv. I've windows 10 with vs2013 and it's ok

LBerger gravatar imageLBerger ( 2015-08-26 08:30:58 -0600 )edit

I guess the problem is that you need to rebuild OpenCV with the GTK-support activated, or you can use Qt instead. -D WITH_GTK=ON or WITH_QT=ON. For the latter you will need to download and install the Qt libraries though.

theodore gravatar imagetheodore ( 2015-08-26 08:36:11 -0600 )edit

Errors message is here as @theodore say be sure that in cmake one option is checked



I cannot find WITH_GTK on windows.

LBerger gravatar imageLBerger ( 2015-08-26 08:43:18 -0600 )edit

Thanks for replies. Will try to rebuild with Qt support. Weird thing is that previously building OpenCV I didn't have to explicitly set GTK+ support. Also CMake GUI version doesn't seem to include that option.

Ričards gravatar imageRičards ( 2015-08-26 08:43:27 -0600 )edit

If you execute the following code, you can know the information about compiled OpenCV library.

#include <opencv2/core.hpp>
#include <iostream>

int main(int argc, char **argv)
    std::cout<< cv::getBuildInformation() << std::endl;
    return 0;

And, please tell me the version of Qt that you installed?

dandelion1124 gravatar imagedandelion1124 ( 2015-08-26 10:06:04 -0600 )edit