Ubuntu 下qt中安装OPENSSL和PHONON功能的过程
安装OPENSSL
1.tar -zxvf openssl-0.9.6b.gz
2../config
3.make
4.make test
5.make install
安装QT4
一、安装后台插件:
先下载必要的包:
sudo apt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
opengl需要
$ sudo apt-get install xlibmesa-gl-dev libglu1-mesa-dev
安装各类需要使用到的开发包
sudo apt-get install xorg-dev
下面的为gstreamer需要使用的头文件等
sudo apt-get install libglib2.0-dev
sudo apt-get install libgstreamer0.10-dev
sudo apt-get install libgstreamer-plugins-base0.10-dev
sudo apt-get install libxml-dev (无法)
二、安装QT
//解压QT源码包到本地来
506 tar zxvf /mnt/hgfs/install/ source/qt-x11-opensource-src-4.5.3.tar.gz -C ./
//改名
508 mv qt-x11-opensource-src-4.5.3/ qt4.5.3-x11
//设置环境变量
515 vi /root/.bash_profile
QTDIR=/usr/local/qt4.5.3-x11
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATHLD_LIBRARY_PATH
//使用环境变量
516 source /root/.bash_profile
//编译配置
519 ./configure -phonon -phonon-backend -no-qt3support -qt-libpng -qt-libjpeg -qt-
libmng -qt-libtiff -qt-zlib -prefix /usr/local/qt4.5.3-x11/mkspecs/ -openssl -I
/usr/local/openssl/openssl-0.9.8b/include -nomake translations
520 make
521 make install