由于习惯性,我已经安装啦OpenCV的源码,原本以为,直接通过编译QT工程就可以进行视频显示,但是实际编译工程
:
找不到 -lpulse-mainloop-glib,/usr/bin/ld: 找不到 -lpulse问题
通过参考博客
https://blog.csdn.net/hengqiaqia/article/details/78615479
解决。博客里用到的方法应该是先查找依赖库,其实这个库在本机上是有的,不知道为什么路径不对,所以采用复制到/usr/lib命令。
编译通过啦,但是运行有错误,视频画面并不能显示。
通过博客解决:
https://blog.csdn.net/weixin_44100850/article/details/89856826库
需要提到的是,解决的方法我装了很多库
sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get gstreamer1.0-plugins-bad
等等命令,都无法解决,如参考博客说的,可能这些对Ubutun14.04还是有,但是对于16.04版本,只能通过命令
sudo apt-get install ubuntu-restricted-extras