加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 07:08:18 所属栏目:百科 来源:网络整理
导读:我想使用LibHand手势库,但我无法在Ubuntu 13.10上启动它. 我已经成功编译了它(在克服了与链接器相关的几个问题之后),但是当运行pose_designer时,OpenCV库记录了GUI支持函数没有实现,指示我安装libgtk2.0-dev和pkg-config.但是,在安装这些软件包并重建OpenCV
我想使用LibHand手势库,但我无法在Ubuntu 13.10上启动它.

我已经成功编译了它(在克服了与链接器相关的几个问题之后),但是当运行pose_designer时,OpenCV库记录了GUI支持函数没有实现,指示我安装libgtk2.0-dev和pkg-config.但是,在安装这些软件包并重建OpenCV库之后,问题仍然存在.受具有类似OpenCV问题(OpenCV error: the function is not implemented)的人员的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条目应该’打开’)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读