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

相关推荐
Maki Winster4 小时前
Peek-Ubuntu上Gif录制工具-24.04LTS可装
linux·ubuntu·peek
Maki Winster5 小时前
在 Ubuntu 下配置 oh-my-posh —— 普通用户 + root 各自使用独立主题(共享可执行)
linux·运维·ubuntu
Imagine Miracle8 小时前
Ubuntu for ARM 更换为阿里云镜像源
arm开发·ubuntu·阿里云
kikikidult1 天前
(2025.07)解决——ubuntu20.04系统开机黑屏,左上角光标闪烁
笔记·ubuntu
BD_Marathon1 天前
Ubuntu:Mysql服务器
服务器·mysql·ubuntu
0wioiw01 天前
Ubuntu基础(监控重启和查找程序)
linux·服务器·ubuntu
Tipriest_1 天前
Ubuntu常用的软件格式deb, rpm, dmg, AppImage等打包及使用方法
linux·运维·ubuntu
GBXLUO1 天前
windows的vscode无法通过ssh连接ubuntu的解决办法
vscode·ubuntu
笑衬人心。1 天前
Ubuntu 22.04 修改默认 Python 版本为 Python3 笔记
笔记·python·ubuntu
物联网老王2 天前
Ubuntu Linux Cursor 安装与使用一
linux·运维·ubuntu