NAO机器人中xx.cpp文件运行遇到问题及其解决办法
2015-07-12 10:38
603 查看
如果你遇到了如下问题:
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 cvWaitKey, file /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp, line 354
terminate called after throwing an instance of ‘cv::Exception’
what(): /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp:354: 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 cvWaitKey
进入naoqi-sdk/lib目录下,删除所有libopencvxxx.so文件即可
产生该问题原因:
sdk中的opencv没有gtk,不会支持namewindow这样的函数,因为在nao端是没有必要的。在ubuntu上自己编译安装opencv并将sdk中lib下的libopen**.so的库全部替换,rebuild你的代码,就会ok了,ubuntu14.04会出现这个问题
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 cvWaitKey, file /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp, line 354
terminate called after throwing an instance of ‘cv::Exception’
what(): /home/opennao/src/OpenCV-2.3.1/modules/highgui/src/window.cpp:354: 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 cvWaitKey
进入naoqi-sdk/lib目录下,删除所有libopencvxxx.so文件即可
产生该问题原因:
sdk中的opencv没有gtk,不会支持namewindow这样的函数,因为在nao端是没有必要的。在ubuntu上自己编译安装opencv并将sdk中lib下的libopen**.so的库全部替换,rebuild你的代码,就会ok了,ubuntu14.04会出现这个问题
相关文章推荐
- 创建和使用动态链接库 (C++)
- C++ 常见崩溃问题分析
- 在C语言中单独用a[5]是什么意思
- C语言动态分配内存知识
- WinSock2简单的服务器与客户端(C语言实现)
- [C++]VS与第三方工具下载
- [C++]VAssistX函数添加注释功能设置
- [C++]Microsoft Visual Studio (VS)2010 功能设置
- [C++]VisualAssistX中文注释提示错误 解决办法
- [C++]Microsoft Visual Studio (VS)2010 常用快捷键大全
- DES加密的C语言实现
- C++箴言:理解 typename 的两个含义
- Android NDK C++ 开发利器:Android Studio
- C++设计模式--观察员
- c语言,链表
- hdu 1231, dp ,maximum consecutive sum of integers, find the boundaries, possibly all negative, C++
- sizeof,终极无惑『转』
- KeyPoint类型者转化为c++普通类型
- OpenGL蓝宝书第五章代码勘误以及惯性坐标系去解释模型变换:Pyramid.cpp
- Lowest Common Ancestor of a Binary Search Tree