Qt5.7.1支持gstreamer1.0
来源:互联网 发布:淘宝gxg官方店是正品吗 编辑:程序博客网 时间:2024/05/16 05:40
Qt5.7.1支持gstreamer1.0
为了能让qmultimedia使用gstreamer1.0,真的是煞费苦心,各种心酸苦辣,宝宝心里苦,可是宝宝不说。现在终于实现了,感觉好开心。ps,看老外网站说,5.8版本(beta)已经默认支持了gstreamer1.0,不过没测试。(balabala)
cd /opt/qt-everywhere-opensource-src-5.7.1/qtbase/
2.下载依赖(download the build dependencies):
$ sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libx11-xcb-dev libxcb-glx0-dev
$ sudo apt-get install libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev
$ sudo apt-get install gstreamer1.0*
$ sudo apt-get install libgstreamer1.0*
$ sudo apt-get install libxcb-xinerama0-dev
3.configure
执行下列语句(excute)
./configure -gstreamer 1.0
然后你就会看见gstreamer 1.0 yes,哈哈哈哈(congratulations,then you can see the gstreamer 1.0 yes)
4.make
执行下列语句(excute)
make -j 4 && sudo make isntall
5.坐等(hold on)
6.安装qtcreator4.2(install qtcreator4.2 form qt website)
刚开始以为,opensource会自带qtcreator,但是找啊找,都找遍了还是没找到,才知道,qtcreator是分开安装的。(at first ,I don't know qtcreator need to be install separately)
注意的是qmake的位置,因为我在安装qt5.7时候没有自己指定安装路径,所以默认路径是/usr/local/Qt-5.7.1/bin/qmake,如果你的不是,请自己更改
8.运行qtcreator(open qtcretor(ide))
随便新建一个项目(new a project)
给个例子的地址吧(或者在welcome examples 搜video 最后一个即可)(serch in welcome examples,keyword “video” the last one)
如果qtcreator4 没有examples,这里我把他上传至百度网盘公开链接https://pan.baidu.com/s/1qXKLrcC(if you have not the examps,click here)
我试验了RMVB和mp4都支持,(support rmvb MP4,others no test)
为了能让qmultimedia使用gstreamer1.0,真的是煞费苦心,各种心酸苦辣,宝宝心里苦,可是宝宝不说。现在终于实现了,感觉好开心。ps,看老外网站说,5.8版本(beta)已经默认支持了gstreamer1.0,不过没测试。(balabala)
1.进入解压目录(enter decompression path)
cd /opt/qt-everywhere-opensource-src-5.7.1/qtbase/
2.下载依赖(download the build dependencies):
$ sudo apt-get install libfontconfig1-dev libfreetype6-dev libx11-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libx11-xcb-dev libxcb-glx0-dev
$ sudo apt-get install libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev
$ sudo apt-get install gstreamer1.0*
$ sudo apt-get install libgstreamer1.0*
$ sudo apt-get install libxcb-xinerama0-dev
3.configure
执行下列语句(excute)
./configure -gstreamer 1.0
然后你就会看见gstreamer 1.0 yes,哈哈哈哈(congratulations,then you can see the gstreamer 1.0 yes)
4.make
执行下列语句(excute)
make -j 4 && sudo make isntall
5.坐等(hold on)
6.安装qtcreator4.2(install qtcreator4.2 form qt website)
刚开始以为,opensource会自带qtcreator,但是找啊找,都找遍了还是没找到,才知道,qtcreator是分开安装的。(at first ,I don't know qtcreator need to be install separately)
7.安装qtmultimedia和其他一些模块(install qtmultimedia) and others models
cd cd /opt/qt-everywhere-opensource-src-5.7.1/然后执行下边语句
注意的是qmake的位置,因为我在安装qt5.7时候没有自己指定安装路径,所以默认路径是/usr/local/Qt-5.7.1/bin/qmake,如果你的不是,请自己更改
8.运行qtcreator(open qtcretor(ide))
随便新建一个项目(new a project)
在左边Projects点击,(click the left Projects)
点击manage kits(click the manage kits)
点击qtversion,点击auto-detected,(click qtversion then click the auto-detected)
点击qtversion,选择/usr/local/Qt-5.7.1/bin/qmake(qtversion,select '/usr/local/Qt-5.7.1/bin/qmake' )
9.找个播放器测试一下(test)给个例子的地址吧(或者在welcome examples 搜video 最后一个即可)(serch in welcome examples,keyword “video” the last one)
如果qtcreator4 没有examples,这里我把他上传至百度网盘公开链接https://pan.baidu.com/s/1qXKLrcC(if you have not the examps,click here)
我试验了RMVB和mp4都支持,(support rmvb MP4,others no test)
参考
http://blog.csdn.net/liuysheng/article/details/7826487
http://fmattdev.blogspot.com/2016/07/compiling-qt-57-for-gstreamer-10-on.html
Thanks qtforum's SGaist,I refer to yours reply.
0 0
- Qt5.7.1支持gstreamer1.0
- Qt5.7.1支持gstreamer1.0
- bk -gstreamer1.0 install
- vs2017 + QT5.10.0 + 5.7.0 支持xp
- linux学习笔记2---gstreamer1.0 安装与简介
- Qt5支持中文
- qt5 中文路径 支持
- Qt5.6支持高分辨率
- Qt5 支持高清屏
- Qt5支持双屏显示
- gstremer 1.2 compile and install on raspberry pi(在树莓派上编译gstreamer1.2,gstreamer1.0及以上版本的编译可参照此教程)
- VS2012编译安装VTK-6.2.0_支持Qt5.2.1
- VS2013编译安装VTK-6.2.0_支持Qt5.4.2
- vs2013 gstreamer1.4.5 配置
- gstreamer1.2.4安装
- Qt5.2支持c++11
- qt5 支持高清屏幕
- qt5.0
- Android 浮动窗口进阶——画中画,浮动视频
- 根据IP地址查询
- 类加载器详解 (转至http://blog.csdn.net/jiangwei0910410003/article/details/17733153)
- Android--hw_get_module解析
- @1x,@2x,@3x 资源文件自动分包工具-android 篇
- Qt5.7.1支持gstreamer1.0
- android TV架构启动流程分析(三)
- 前端面试问题三
- FloatMath.sqrt android6.0 23报错
- Web前端研发工程师编程能力提升之路
- C# 中的 ConfigurationManager类引用方法
- angularjs checkbox双向绑定
- Android获取屏幕长宽
- 贝叶斯分类初识