Ask Your Question

CV_NO_GUI_ERROR thrown on Windows 8

asked 2013-06-25 19:28:48 -0500

Arrigo gravatar image

I have compiled from sources OpenCV 2.4.5 with Visual Studio 2010 under Windows 8. I have verified that the WITH_WIN32UI option is checked in the CMake configuration, however when I call imshow() I get:

OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support ... , file ......\modules\highgui\src\window.cpp, line 501

I assume that the WITH_WIN32UI options refers to "Rebuild the library with Windows..."

Any ideas?



edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2013-06-26 02:04:29 -0500

berak gravatar image

updated 2013-06-26 02:16:33 -0500

hi there, i thought this would only happen to me ;)

checking WITH_WIN32UI in cmake should result in a preprocessor flag named HAVE_WIN32UI , but somehow this does not happen here ( xp, vs2009, opencv2.4.9 btw )

unfortunately, i don't know, how to fix the cmake issues, but i found a way to fix the resulting vcproj.

so, in your opencv.sln, fix the highgui project:

  • c++ / preprocessor defs , add HAVE_WIN32UI (for both debug & release!)
  • add modules/highgui/src/window_w32.cpp to that project (the actual window impl)
  • recompile

be aware, that all those changes will get overwritten, whenever you rerun cmake !

and please report back, so we can do a bug report on this !

edit flag offensive delete link more


hi berak, that fixed it, thanks! I just created a Bug #3116 to report this problem.

Arrigo gravatar imageArrigo ( 2013-06-26 10:45:31 -0500 )edit

ah, nice ! saves me from doing it ;)

there must be something in the cmake generation, that evaluates the os/version, so we're both poorly tested "edge cases" (xp here, win8 on your side)

berak gravatar imageberak ( 2013-06-26 11:16:55 -0500 )edit

you're good with cmake ?

berak gravatar imageberak ( 2013-06-26 13:00:30 -0500 )edit

can you please report your cmake version ?

berak gravatar imageberak ( 2013-06-27 17:14:54 -0500 )edit

just for the record, updating cmake seems to do the trick.

berak gravatar imageberak ( 2013-06-28 14:46:03 -0500 )edit

Question Tools


Asked: 2013-06-25 19:28:48 -0500

Seen: 510 times

Last updated: Jun 26 '13