csdnmuzzilee 2015-06-17 05:11 采纳率: 0%
浏览 2053

运行基于qt的opencv程序时提示安装libgt2.0-dev

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 /work/tools/OpenCV-2.3.1/modules/highgui/src/window.cpp, line 275
terminate called after throwing an instance of 'cv::Exception'
what(): /work/tools/OpenCV-2.3.1/modules/highgui/src/window.cpp:275: 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

可是我这是用qmake编译出来的可执行文件啊,为什么还要安装gtk?另外我安装了pkg-config,qte的移植经测试也是正确的

  • 写回答

1条回答

  • oyljerry 2015-06-17 05:48
    关注

    这个库的版本不支持你当前的os环境吧

    评论

报告相同问题?

悬赏问题

  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建