在树莓派上使用opencv C++调用树莓派sci相机失败

问题描述 投票:0回答:0

运行程序后,

mmap: No such device
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(3.4.8) /home/pi/Downloads/opencv-3.4.8/modules/highgui/src/window.cpp:658: error: (-2: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 function 'cvShowImage'

已放弃

试过'install libgtk2.0-dev and pkg-config, then re-run cmake ',但失败了

c++ opencv
© www.soinside.com 2019 - 2024. All rights reserved.