gpt4 book ai didi

c++ - cvNamedWindow - 功能未实现,无法启动 LibHand

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:17:41 26 4
gpt4 key购买 nike

我想使用 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 条目)

关于c++ - cvNamedWindow - 功能未实现,无法启动 LibHand,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22716625/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com