qt-extended 中如何支持gstreamer 播放引擎(ubuntu)
来源:互联网 发布:vb6.0数据库编程教程 编辑:程序博客网 时间:2024/06/04 22:18
刚刚想了解下,在板子上的qt文件系统里头,怎么装一个自己的软件,然后移植。
从来没做过这个过程。搜索到这个文章,感觉挺有用的。以gstreamer 为例子。
1.ubuntu系统 安装gstreamer 依赖的库文件。
2 qt-extended的配置: 让gstreamer 被配置到。
../qt-extended-4.4.2/configure -mediaengines gstreamer
3.编译qt-extended
4.运行 qt-extended
qt-extended的Documents目录
我还尝试了下,安装automake,据说这个可以自动生成makefile文件。
root@ubuntu:/home/zhangbin# apt-get install automake
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
autoconf autotools-dev m4
Suggested packages:
autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool
The following NEW packages will be installed:
autoconf automake autotools-dev m4
0 upgraded, 4 newly installed, 0 to remove and 115 not upgraded.
Need to get 1,685kB of archives.
After this operation, 4,915kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://Ubuntu.srt.cn/ubuntu/ lucid/main m4 1.4.13-3 [241kB]
Err http://Ubuntu.srt.cn/ubuntu/ lucid/main m4 1.4.13-3
Could not connect to Ubuntu.srt.cn:80 (211.155.227.167). - connect (111: Connection refused)
Get:2 http://Ubuntu.cn99.com/ubuntu/ lucid/main m4 1.4.13-3 [241kB]
Get:3 http://Ubuntu.cn99.com/ubuntu/ lucid/main autoconf 2.65-3ubuntu1 [772kB]
Get:4 http://Ubuntu.cn99.com/ubuntu/ lucid/main autotools-dev 20090611.1 [64.1kB]
Get:5 http://Ubuntu.cn99.com/ubuntu/ lucid/main automake 1:1.11.1-1 [608kB]
Fetched 1,460kB in 4min 39s (5,217B/s)
Selecting previously deselected package m4.
(Reading database ... 143039 files and directories currently installed.)
Unpacking m4 (from .../archives/m4_1.4.13-3_i386.deb) ...
Selecting previously deselected package autoconf.
Unpacking autoconf (from .../autoconf_2.65-3ubuntu1_all.deb) ...
Selecting previously deselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20090611.1_all.deb) ...
Selecting previously deselected package automake.
Unpacking automake (from .../automake_1%3a1.11.1-1_all.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up m4 (1.4.13-3) ...
Setting up autoconf (2.65-3ubuntu1) ...
Setting up autotools-dev (20090611.1) ...
Setting up automake (1:1.11.1-1) ...
update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.
以上过程,说明了cn99比srt好,应该放在前面。
=============================================================
转载自http://www.cuteqt.com/blog/?p=253
qt-extended 中如何支持gstreamer 播放引擎(ubuntu)
两个条件
首先,需要系统里有gstreamer的开发库文件,在ubuntu中安装过程如下
sudo apt-get install libgstreamer0.10-devsudo apt-get install libgstreamer-plugins-base0.10-dev
其次,需要在配置编译过程中将gstreamer的选项使能。
../qt-extended-4.4.2/configure -mediaengines gstreamer
这样就可以编译带gstreamer的qt-extened了。
./bin/qbuild./bin/qbuild image
在你运行qt-extended主程序的时候,如果你的Documents目录下有媒体文件,
那么进入媒体播放器找到你的媒体文件了
./bin/runqtopia
此时可能还不能播放,你需要安装gstreamer不同媒体格式的codec,比如mp3就是
sudo aptitude install gstreamer0.10-fluendo-mp3
若想知道还有哪些插件,可以用下面命令查看
aptitude search gstreamer|grep plugin
—————————————————————-
附:如果刚装好的ubuntu系统,希望能编译qt-extend-4.4 以后版本的话.
有几个先决条件.
1.最好先装好 qt-x11-4.4 以后的版本
2.一些必要的开发工具需要装
sudo apt-get install gcc g++ automakesudo aptitude install libx11-dev libxtst-dev libxext-devsudo aptitude install libpng-dev
- qt-extended 中如何支持gstreamer 播放引擎(ubuntu)
- qt-extended 中如何支持gstreamer 播放引擎(ubuntu)
- Qt-extended中如何用Gstreamer支持流媒体
- qt中如何播放声音
- Qt库支持Phonon播放多媒体的编译(Ubuntu)
- gstreamer中playbin的播放原理
- gstreamer中playbin的播放原理
- gstreamer中playbin的播放原理
- QT creator 中添加gstreamer动态库
- ubuntu支持qt程序
- ubuntu下 gstreamer 的配置及播放音视频例子
- Ubuntu下使用GStreamer开发简单的mp3播放器
- Ubuntu下使用GStreamer开发简单的mp3播放器
- gstreamer在linux ubuntu上实现音乐播放应用实例
- 如何在VLC中支持IPv6 RTSP流媒体播放
- 在Ubuntu环境中QT支持c++11的方法
- QT如何支持中文
- Gstreamer框架中使用gst-launch进行流媒体播放
- android HttpURLConnection.getInputStream()问题
- nutch1.2 修改jsp页面后,想打包部署到tomcat中,有几个地方需要修改的。
- nutch-1.0 的分布式查询部署
- 从阿里高层辞职想到的
- 测试
- qt-extended 中如何支持gstreamer 播放引擎(ubuntu)
- linux下USB转串口的应用和minicom的设置(ubuntu)
- 我的WCF之旅(1):创建一个简单的WCF程序
- 再次使用worldwind
- js正则表达式
- gc draw and fill使用的颜色区别
- 我虚拟机上的源 ---sources.list
- 下不了
- 动态创建窗体