我想使用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
答案 0 :(得分:1)
好吧,你必须重新开始重建opencv(highgui模块)。
运行cmake(或cmake-gui),并调整设置,直到确认gui支持:
GUI:
QT: NO
Win32 UI: YES
OpenGL support: NO
VTK support: NO
(嗯,这就是胜利,但是你有一个GTK条目,应该'打开')
答案 1 :(得分:0)
在解压缩目录中查找CMakeLists.txt
,您可以在其中找到启用和禁用不同支持的选项。