gentoo qt 编译 记录

1. 进入解压后的qt目录进行配置

./configure -static -release -no-exceptions -no-webkit -nomake examples -nomake docs -nomake demo

或者支持mysql 的配置

./configure  -debug  -qt-sql-mysql  -no-exceptions -no-webkit -nomake examples -nomake docs -nomake demo -plugin-sql-mysql -qt3support

2.配置后,会提示运行gmake,直接gmake即可(就是GNU make之意)

 

3.gmake install

 

4.环境变量设置

sudo vim /etc/profile

添加如下
QTDIR=path_to_your_Qt_SDK            ;你自己的qt安装目录,一般默认为/usr/local/Trolltech


PATH=$QTDIR/qt/bin:$PATH
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH

 

5:重启电脑,ok

你可能感兴趣的:(mysql,vim,qt,Path,library)