在调用opencv时出现了上面的一些问题,发现是少了一些依赖 apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev 把这些依赖装上就行了