编译Qt 4.8.5
2013-11-07 13:18
253 查看
在PC上编译QT 4.8.5
1,将网络音频系统(Network Audio System)编译到QT里面
需要安装lib库
然后就可以使用如下代码播放声音
参考文档
http://qt-project.org/wiki/Build_Qt_For_Linux
./configure --prefix=/opt/qt-4.8.5.nas -nomake tools -nomake docs -opensource -confirm-license -system-nas-sound
1,将网络音频系统(Network Audio System)编译到QT里面
-system-nas-sound
需要安装lib库
apt-get intalll libaudio-dev apt-get install libxt-dev
然后就可以使用如下代码播放声音
if(QSound::isAvailable()){ QSound::play("./sound.wav"); } QSound player("/root/c/1.wav"); player.play();
参考文档
http://qt-project.org/wiki/Build_Qt_For_Linux
相关文章推荐
- 编译Qt4.8.5源码
- [Qt4]编译64位Qt 4.8.5并配置到VS2010中使用
- Qt4.8.5编译mysql5.7.30驱动
- QT4.8.5 源码编译记录
- qt4.8.5 编译安装
- Qt工作历程-在wince上的编译Qt4.8.5
- ipp sample cmake编译uic、application、picnic时需要Qt4(已安装Qt4.8.5)cmakelist.txt修改
- Qt4.8.5编译qvfb出现undefined reference to `png_create_write_struct'问题解决办法
- 交叉编译Qt-4.8.5
- Qwt6.1.0源码编译--Qt4.8.5
- [mark]vs2012编译qt4.8.5
- Qt 4.8.5 Windows/Ubuntu下x64编译
- Ubuntu下编译安装QT-4.8.5
- (亲测)WIN7+VS2010+QT4.8.1+静态编译 (可以百度网盘下载QT4.8.5 x64编译结果)
- qt 4.8.5 vs 2012编译
- 移植qt-4.8.5至 mini2440建立交叉编译及qt运行环境
- Qt 4.8.5 静态编译小结
- Qwt5.2.3 + VS2008/VS2010+Qt4.8.5编译
- 如何编译动态库/静态库之编译Qt4.8.5静态库/动态库
- Qt4.8.5 开发环境搭建没有生成makefile文件【编译出现的问题】