2016-12-10 21 views
0

我想从源代码编译OpenCV并创建一个使用新编译的OpenCV库的测试C++程序。OpenCV中的Hello World(编译和从Ubuntu上的源代码链接)

编译OpenCV似乎工作,我遵循this指南。

但是现在我想创建一个使用库的测试程序。

我跟着this指导,但一切出现工作,直到我试图命令:

./DisplayImage lena.jpg

这给了我下面的错误

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 /media/chris/Archive2/Archive/Programming/OpenCV/sav/opencv/modules/highgui/src/window.cpp, line 550 terminate called after throwing an instance of 'cv::Exception' what(): /media/chris/Archive2/Archive/Programming/OpenCV/sav/opencv/modules/highgui/src/window.cpp:550: 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

Aborted (core dumped)

terminal

提到的包似乎已安装 gtk

pkg-config

我试图重新启动我的电脑安装的软件包,我仍然得到同样的消息之后。

回答

相关问题