Qt开发平台的搭建:
1.从 http://qt.nokia.com/downloads下载 qt-sdk-linux-x86-opensource-src-2010.02.bin,
Qt SDK的安装程序包括了使用Qt构建跨平台应用程序所需的工具 :Qt库、Qt Creator IDE、 Qt开发工具
2.chmod u+x qt-sdk-linux-x86-opensource-2010.02.bin
./qt-sdk-linux-x86-opensource-2010.02.bin,完成后就能直接运行 qt creator了。
3.从 http://qt.nokia.com/downloads下载 linux/x11 的 qt-everywhere-opensource-src-4.6.2.tar.gz
gunzip qt-everywhere-opensource-src-4.6.2.tar.gz
tar xvf qt-everywhere-opensource-src-4.6.2.tar
cd qt-everywhere-opensource-src-4.6.2
./configure
make(我花了三四个小时 )
make install 或者 su -c "make install"
Qt环境变量设置 :我用的Fedora10,修改.bash_profile(如Ubuntu为.profile)
bash/ksh/zsh/sh时
PATH=/usr/local/Trolltech/Qt-4.6.2/bin:$PATH
export PATH
csh/tcsh时
setenv PATH /usr/local/Trolltech/Qt-4.6.2/bin:$PATH