ubuntu20.04.6下运行VLC-Qt例子simple-player
下载examples-master.zip(https://github.com/vlc-qt/examples),编译运行simple-player
参考链接:
https://blog.csdn.net/szn1316159505/article/details/143743735
本文运行环境
Qt 5.15.2
Qt creator 5.0.2
主要步骤:
1,安装VLC
2,下载vlc-qt-master.zip,编译安装vlc-qt
(前提:sudo apt-get install qtdeclarative5-dev ,sudo apt-get install libvlc-dev libvlccore-dev)
3,simple-player.pro, 添加以下配置:
LIBS += -L/usr/local/lib/ -lVLCQtCore -lVLCQtWidgets
INCLUDEPATH += /usr/local/include
DEPENDPATH += /usr/local/include
4,qtcreator打开simple-player.pro,编译运行,ok