# Qt Creator
Qt Creator is a cross-platform, integrated development environment (IDE) for
application developers to create applications for multiple desktop, embedded,
and mobile device platforms.
The Qt Creator Manual is available at:
https://doc.qt.io/qtcreator/index.html
For an overview of the Qt Creator IDE, see:
https://doc.qt.io/qtcreator/creator-overview.html
## Supported Platforms
The standalone binary packages support the following platforms:
* Windows 7 or later
* (K)Ubuntu Linux 16.04 (64-bit) or later
* macOS 10.13 or later
## Contributing
For instructions on how to set up the Qt Creator repository to contribute
patches back to Qt Creator, please check:
https://wiki.qt.io/Setting_up_Gerrit
See the following page for information about our coding standard:
https://doc.qt.io/qtcreator-extending/coding-style.html
## Compiling Qt Creator
Prerequisites:
* Qt 5.14.0 or later
* Qt WebEngine module for QtWebEngine based help viewer
* On Windows:
* ActiveState Active Perl
* MinGW with GCC 7 or Visual Studio 2017 or later
* jom
* Python 3.5 or later (optional, needed for the python enabled debug helper)
* On Mac OS X: latest Xcode
* On Linux: GCC 7 or later
* LLVM/Clang 8.0.0 or later (optional, needed for the Clang Code Model, Clang Tools, ClangFormat,
Clang PCH Manager and Clang Refactoring plugins, see the section
"Get LLVM/Clang for the Clang Code Model". The LLVM C++ API provides no compatibility garantee,
so if later versions don't compile we don't support that version.)
* CMake (for manual builds of LLVM/Clang, and Qt Creator itself)
* Ninja (optional, recommended for building with CMake)
* Qbs 1.7.x (optional, sources also contain Qbs itself)
The installed toolchains have to match the one Qt was compiled with.
You can build Qt Creator with
# Optional, needed for the Clang Code Model if llvm-config is not in PATH:
export LLVM_INSTALL_DIR=/path/to/llvm (or "set" on Windows)
# Optional, disable Clang Refactoring
export QTC_DISABLE_CLANG_REFACTORING=1
# Optional, needed to let the QbsProjectManager plugin use system Qbs:
export QBS_INSTALL_DIR=/path/to/qbs
# Optional, needed for the Python enabled dumper on Windows
set PYTHON_INSTALL_DIR=C:\path\to\python
# Optional, needed to use system KSyntaxHighlighting:
set KSYNTAXHIGHLIGHTING_LIB_DIR to folder holding the KSyntaxHighlighting library
# if automatic deducing of include folder fails set KSYNTAXHIGHLIGHTING_INCLUDE_DIR as well
# both variables can also be passed as qmake variables
cd $SOURCE_DIRECTORY
qmake -r
make (or mingw32-make or nmake or jom, depending on your platform)
Installation ("make install") is not needed. It is however possible, using
make install INSTALL_ROOT=$INSTALL_DIRECTORY
## Compiling Qt and Qt Creator on Windows
This section provides step by step instructions for compiling the latest
versions of Qt and Qt Creator on Windows. Alternatively, to avoid having to
compile Qt yourself, you can use one of the versions of Qt shipped with the Qt
SDK (release builds of Qt using MinGW and Visual C++ 2017 or later).
For detailed information on the supported compilers, see
<https://wiki.qt.io/Building_Qt_5_from_Git> .
1. Decide which compiler to use: MinGW or Microsoft Visual Studio. If you
plan to contribute to Qt Creator, you should compile your changes with
both compilers.
2. Install Git for Windows from <https://git-for-windows.github.io/>. If you plan to
use the MinGW compiler suite, do not choose to put git in the
default path of Windows command prompts. For more information, see
step 9.
3. Create a working directory under which to check out Qt and Qt Creator,
for example, `c:\work`. If you plan to use MinGW and Microsoft Visual
Studio simultaneously or mix different Qt versions, we recommend
creating a directory structure which reflects that. For example:
`C:\work\qt5.14.0-vs17, C:\work\qt5.14.0-mingw`.
4. Download and install Perl from <https://www.activestate.com/activeperl>
and check that perl.exe is added to the path. Run `perl -v` to verify
that the version displayed is 5.10 or later. Note that git ships
an outdated version 5.8 which cannot be used for Qt.
5. In the working directory, check out the respective branch of Qt from
<https://code.qt.io/cgit/qt/qt5.git> (we recommend the highest released version).
6. Check out Qt Creator (master branch or latest version, see
<https://code.qt.io/cgit/qt-creator/qt-creator.git>).
You should now have the directories qt and creator under your working
directory.
7. Install a compiler:
- For a MinGW toolchain for Qt, see <https://wiki.qt.io/MinGW> .
- For Microsoft Visual C++, install the Windows SDK and the "Debugging
Tools for Windows" from the SDK image. We strongly recommend using the
64-bit version and 64-bit compilers on 64-bit systems.
For the Visual C++ compilers, it is recommended to use the tool 'jom'.
It is a replacement for nmake that utilizes all CPU cores and thus
speeds up compilation significantly. Download it from
<https://download.qt.io/official_releases/jom>
and add the executable to the path.
8. For convenience, we recommend creating shell prompts with the correct
environment. This can be done by creating a .bat-file
(such as, `<working_directory>\qtvars.bat`) that contains the environment
variable settings.
A `.bat`-file for MinGW looks like:
set PATH=<path_to_qt>\[qtbase\]bin;<path_to_mingw>\bin;<working_directory>\creator\bin;%PATH%
set QMAKESPEC=win32-g++
For the Visual C++ compilers, call the `.bat` file that sets up the
environment for the compiler (provided by the Windows SDK or the
compiler):
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
set PATH=<path_to_qt>\[qtbase\]bin;<working_directory>\creator\bin;%PATH%
set QMAKESPEC=win32-msvc2013
You can create desktop links to the `.bat` files using the working
directory and specifying
%SystemRoot%\system32\cmd.exe /E:ON /V:ON /k <working_directory>\qtvars.bat
9. When using MinGW, open the shell prompt and enter:
sh.exe
That should result in a `sh is not recognized as internal or external
command...` error. If a `sh.exe` is found, the compile process will fail.
You have to remove it from the path.
10. To make use of the Clang Code Model:
* Install LLVM/Clang - see the section "Get LLVM/Clang for the Clang
Code Model".
* Set the environment variable LLVM_INSTALL_DIR to the LLVM/Clang
installation directory if llvm-config is not in PATH.
* Before you launch Qt Creator you may prepend the PATH with
the location of libclang.dll/.so that you want to be used.
See more info in the section "Prebuilt LLVM/Clang packages".
11. You are now ready to configure and build Qt and Qt Creator.
Please see <https://wiki.qt.io/Building_Qt_5_from_Git> for
recommended configure-options for Qt 5.
To use MinGW, open the the shell prompt and enter:
cd <path_to_qt>
configure <configure_options> && mingw32-make -s
cd ..\creator
qmake && mingw32-make -s
To use the Visual C++ compilers, enter:
cd <path_to_qt>
configure <configure_options> && jom
cd ..\creator
qmake && jom
12. To launch Qt Creator, enter:
qtcreator
13. To test the Clang-based code model, verify that backend process
bin\clangbac
![avatar](https://profile-avatar.csdnimg.cn/953a7a73418645c3bb859652d30e5bf8_m0_62153576.jpg!1)
t0_54coder
- 粉丝: 3627
- 资源: 6868
最新资源
- Simpack与Abaqus联合仿真:柔性钢轨建模及复杂轨道系统分析,涉及fbi文件生成与钢弹簧浮置板搭建等模型研究,Simpack与Abaqus联合仿真:柔性钢轨建模及钢弹簧浮置板搭建,fbi文件生
- 基于CKF的汽车状态估计:采用Dugoff轮胎模型的三自由度容积卡尔曼滤波技术估算纵向、横向车速与质心侧偏角及横摆角速度,基于CKF的汽车状态估计:Dugoff轮胎模型下的三自由度容积卡尔曼滤波估计汽
- 基于vue3、uniapp和springboot的Java小李日记本后端源码设计
- 基于Java和CSS的student_manage学生信息系统设计源码
- 基于PID算法的电动车充放电系统Simulink建模与仿真分析:设计与验证充放电控制策略的有效性,基于PID算法的电动车充放电系统Simulink建模与仿真分析:设计、验证与结果解读,基于PID算法的
- 基于非线性模型预测控制的无人船轨迹跟踪与避障算法研究 该算法详细注释及参考文献全包含,附使用说明 ,基于非线性模型预测控制的无人船轨迹跟踪与避障算法研究 该算法详细注释及参考文献全包含,附使用说明
- 基于Vue3和SpringBoot的百城阅读网前后端分离设计源码
- 基于Vue2+ElementUi+Egg.js的简单图书管理系统设计源码
- COMSOL多物理场耦合下的平板动网格电弧仿真研究-涵盖流体传热、电磁场与层流,可调整电极参数,COMSOL平板动网格电弧仿真研究:多物理场耦合下的电极设计及层流效应分析-毕业论文选题探讨,com
- 微电网二次控制中的下垂控制策略与多智能体系统的事件触发定制研究,微电网二次控制与多智能体系统的事件触发下垂控制策略定制研究,微电网二次控制,下垂控制,多智能体系统,事件触发控制定制 ,核心关键词:微
- 基于Java、HTML、CSS的演唱会订票系统设计源码
- 基于TypeScript的江汉大学校友会模块开发后台基础模板设计源码
- MATLAB实现:A*算法与JPS算法的优化与对比,超详细注释,自定义地图路径规划系统,MATLAB实现:A*算法与JPS算法的优化改进,超详细注释解析,支持自定义地图与障碍物处理,路径颜色与扩展范围
- 基于Vue2与pnpm的英山县医共体糖尿病诊疗中心血糖监测平台设计源码
- 车辆主动悬架多种控制策略仿真研究:基于半车模型与多种路面输入的平顺性提升,车辆主动悬架平顺性控制研究:半车模型下的多种路面仿真与反步、模糊、PID控制应用,车辆主动悬架平顺性控制 采用了能反映
- 基于Java、Vue、JavaScript、HTML、Shell多语言融合的保险合同设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)