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

相关推荐
IT运维爱好者4 小时前
Ubuntu 22.04.4操作系统初始化详细配置
linux·运维·服务器·ubuntu
yangshuo12816 小时前
风车邮箱系统详细使用指南:Windows与Ubuntu双平台解析
linux·windows·ubuntu
谢平康7 小时前
ubuntu扩展逻辑卷并调整文件系统大小步骤
linux·运维·ubuntu
PWRJOY7 小时前
在 Ubuntu 24.04 系统上安装和管理 Nginx
linux·nginx·ubuntu
威桑12 小时前
解决Ubuntu下使用CLion构建Qt项目时找不到已安装的模块的问题
linux·运维·ubuntu
Hello.Reader1 天前
Ubuntu 一站式部署 RabbitMQ 4 并“彻底”迁移数据目录的终极实践
ubuntu·rabbitmq·ruby
foo1st1 天前
MySQL 8(Ubuntu 18.04.6 LTS)安装笔记
笔记·mysql·ubuntu
老兵发新帖2 天前
Ubuntu 上安装 Conda
linux·ubuntu·conda
foo1st2 天前
Tomcat Web应用(Ubuntu 18.04.6 LTS)部署笔记
ubuntu·tomcat
cosX+sinY2 天前
ubuntu 20.04 编译运行lio-sam,并保存为pcd
linux·ubuntu·机器人