【Qt】编译QtCreator

1、Ubuntu14.04编译QtCreator 4.0.3

一、准备工做

编译工具要求
Qt >= 5.5.0;
g++ >= 4.7;python

二、编译步骤

cd <QtCreator源码目录>
qmake -r
makegit

三、安装

make install INSTALL_ROOT=<指定目录>github

2、Win10编译QtCreator 4.7.1

一、准备工做

编译工具要求:
Qt >= 5.9.0(https://git-for-windows.github.io/);
Perl(https://www.activestate.com/activeperl);
MinGW g++ >= 4.9 (https://wiki.qt.io/MinGW);
Python >= 3.5web

二、编译步骤

编写批处理文件qtvars.bat,设置环境变量windows

set PATH=<path_to_qt>\[qtbase\]bin;<path_to_mingw>\bin;<working_directory>\creator\bin;<path_to_python>;%PATH%
set QMAKESPEC=win32-g++

例如个人环境svg

set PATH=D:\qt\5.10.0\mingw53_32\bin;D:\qt\Tools\mingw530_32\bin;D:\2-study\19-qt\3-tools\qt-creator-opensource-src-4.7.1\bin;D:\python;%PATH%
set QMAKESPEC=win32-g++

cd <path_to_qt>
configure <configure_options> && mingw32-make -s
cd …\creator
qmake && mingw32-make -s工具