terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.5-dev) /home/wzw/opencv4.5.5/modules/highgui/src/window.cpp:1251:
error: (-2:Unspecified error) The function is not implemented. Rebuild the library with
Windows, GTK+ 2.x or Cocoa 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'
这是因为opencv_highgui这个库依赖GTK图形库。而虚拟机的libgtk是x64,RK3566是arm的libgtk。对于这个问题,可以在RK3566通过源码编译opencv_highgui.so这个库,然后替换交叉编译的opencv_highgui.so。
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.5-dev) /home/wzw/opencv4.5.5/modules/highgui/src/window.cpp:1251:
error: (-2:Unspecified error) The function is not implemented. Rebuild the library with
Windows, GTK+ 2.x or Cocoa 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'
这是因为opencv_highgui这个库依赖GTK图形库。而虚拟机的libgtk是x64,RK3566是arm的libgtk。对于这个问题,可以在RK3566通过源码编译opencv_highgui.so这个库,然后替换交叉编译的opencv_highgui.so。