【qml】使用qmlglsink插件

可能在gst-plugins-bad、gst-plugins-base、gst-plugins-good
下载gst-plugins-bad源码
./configure
查看config.log中QT相关,看是否有result: yes,若为no看错误提示。
比如报缺Qt5Qml.pc 则安装sudo apt-get install qtdeclarative5-dev
最新的gst-plugins-good(因为后来的qmlglsink被移动到gst-plugins-good)源码git中有qmlglsink的demo,可直接用qtcreator编译,但是并不见界面内容,通过export GST_DEBUG=3 发现如下错误:
qtglutility gstqtglutility.cc:145:gst_qt_get_gl_wrapcontext: Unknown platform
进入源码通过ctags发现没定义HAVE_QT_X11,该宏是在configure阶段检测定义,查看config.log发现如下错:
No package ‘Qt5X11Extras’ found
sudo apt-get install libqt5x11extras5-dev

原文:https://blog.csdn.net/zxr1521904712/article/details/81328640

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值