标签:
原文地址:http://qt-project.org/wiki/Building-Qt-5-from-Git#d4b95ff452aca2c1b14008b02f8dd49b
下载源码:
git clone git://gitorious.org/qt/qt5.git qt5
进入源码目录:
cd qt5
git checkout 5.4
更新代码:
perl init-repository
如果原来已有,则强制更新:
perl init-repository -f
linux下配置:
./configure -opensource-nomake examples -nomake tests
编译:
make -j2
安装:
make install
清理代码:
git submodule foreach --recursive "git clean -dfx"
清理脚本:
#!/bin/sh if [ -z $1 ]; then echo "use:$0 dir" return fi echo $1 for i in `ls $1`; do if [ -d $1/${i} ]; then echo "$1/${i}" cd $1/${i} git clean -xdf fi done
标签:
原文地址:http://blog.csdn.net/kl222/article/details/44216951