cvNamedWindow函数未实现,无法启动LibHand



我想使用LibHand手势库,但是我无法在Ubuntu 13.10上启动它。

我已经成功地编译了它(在克服了与链接器相关的几个问题之后),但是当运行pose_designer时,OpenCV库记录GUI支持功能没有实现,指示我安装libgtk2.0-dev和pkg-config。然而,在安装这些包并重新构建OpenCV库之后,问题仍然存在。受到具有可比OpenCV问题(OpenCV错误:功能未实现)的人的SO帖子的启发,我切换到libqt。不幸的是,这个问题仍然存在。

下面附上了日志文件的摘录。这个错误的原因是什么?

WARNING: the mesh 'hand.mesh' includes vertices with more than 4 bone
  assignments. The lowest weighted assignments beyond this limit have been
  removed, so your animation may look slightly different. To eliminate this,
  reduce the number of bone assignments per vertex on your mesh to 4.
OpenCV Error: Unspecified error (The function is not implemented. Rebuild
  the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu
  or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure
  script) in cvNamedWindow, file /home/user/Downloads/opencv-2.4.8/modules/highgui
  /src/window.cpp, line 483
Exception: /home/user/Downloads/opencv-2.4.8/modules/highgui/src/window.cpp:483:
  error: (-2) The function is not implemented. Rebuild the library with Windows,
  GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install
  libgtk2.0-dev and pkg-config, then re-run cmake or configure script
  in function cvNamedWindow

好吧,你必须回去重建opencv (highgui模块)。

运行cmake(或cmake- GUI),并调整设置,直到确认GUI支持:

  GUI: 
    QT:                          NO
    Win32 UI:                    YES
    OpenGL support:              NO
    VTK support:                 NO

(好吧,这是为了赢,但您将有一个GTK条目应该'on')

在解压目录中找到CMakeLists.txt,您可以在其中找到启用和禁用不同支持的选项。

  1. Windows WITH_VFW "Include Video for Windows support"
  2. Carbon WITH_CARBON "使用Carbon代替Cocoa作为UI "
  3. GTK + 2。x WITH_GTK_2_X "Use GTK version 2"

相关内容

  • 没有找到相关文章

最新更新