Ask Your Question
0

CV_NO_GUI_ERROR thrown on Windows 8

asked Jun 26 '13

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?

Thanks,

-Arrigo

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jun 26 '13

berak gravatar image

updated Jun 26 '13

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 !

Preview: (hide)

Comments

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

Arrigo gravatar imageArrigo (Jun 26 '13)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 (Jun 26 '13)edit

you're good with cmake ?

berak gravatar imageberak (Jun 26 '13)edit

can you please report your cmake version ?

berak gravatar imageberak (Jun 27 '13)edit

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

berak gravatar imageberak (Jun 28 '13)edit

Question Tools

Stats

Asked: Jun 26 '13

Seen: 659 times

Last updated: Jun 26 '13