今天运行python , import cv2, 每次执行cv2.imshow('frame',gray)
都会报错This application failed to start because it could not find or load the Qt platform plugin "xcb".
参考http://stackoverflow.com/questions/30483753/python-app-xcb-plugin-fail
重新编译opencv 2.4, 终于解决了。说是opencv qt 不能运行与qt5.x
Okey, I have figured it out.
During cmake i set flag -D WITH_QT=OFF since I read somewhere that it doesnt work for Qt5.x