我按照这些步骤()安装了OpenCV.在尝试编译一个示例后,我收到此错误:
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/nick/.Apps/opencv/modules/highgui/src/window.cpp, line 516
terminate called after throwing an instance of 'cv::Exception'
what(): /home/nick/.Apps/opencv/modules/highgui/src/window.cpp:516: 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 …Run Code Online (Sandbox Code Playgroud) 每当我调用cv :: waitKey()时,我都会收到此错误:
ASSERT: "false" in file qasciikey.cpp, line 501
Run Code Online (Sandbox Code Playgroud)
我不确定为什么会收到此错误。我在Windows上通过MobaXterm连接的Ubuntu Server 14.04 EC2实例上运行。如果我在普通的ubuntu机器上运行所有相同的代码,则一切正常。
这是发生这种情况的行:
char key = cvWaitKey(33);
Run Code Online (Sandbox Code Playgroud)