- Game Programming Using Qt Beginner's Guide
- Witold Wysota Lorenz Haas
- 322字
- 2021-08-20 10:45:15
Time for action – configuring and building Qt
Having the sources in place, we can start building the framework. To do that, in addition to a supported compiler, you will need Perl and Python (Version 2.7 or later) installed. For Windows, you will also need Ruby. If you are missing any of the tools, it's a good time to install them. Afterwards, open the command line and change the current working directory to the one containing the Qt source code. Then, issue the following command:
configure -opensource -nomake tests
This will launch a tool that detects whether all the requirements are met and will report any inconsistencies. It will also report the exact configuration of the build. You can customize the build (for example, if you need to enable or disable some features or cross-compile Qt for an embedded platform) by passing additional options to configure
. You can see the available options by running configure
with the -help
switch.
If configure
reports problems, you will have to fix them and restart the tool. Otherwise, start the build process by invoking make
(or an equivalent like mingw32-make
if using MinGW or nmake
if using MSVC).
Tip
Instead of nmake
, you can use a tool called jom
that is bundled with Qt. It will reduce the compilation time on multicore machines, which is what the default nmake
tool can't do. For make
and mingw32-make
, you can pass the -j N
parameter, where N
stands for the number of cores in your machine.
What just happened?
After some time (usually less than an hour), if all goes well, the build should be complete and you will be ready to add the compiled framework to the list of kits available in Qt Creator.
Tip
In Unix systems after the build gets completed, you can invoke a make
install command with super-user privileges (obtained for example, with sudo
) to copy the framework to a more appropriate place.
- Learning LibGDX Game Development(Second Edition)
- Android項目開發入門教程
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- Machine Learning with R Cookbook(Second Edition)
- Spring Boot+Spring Cloud+Vue+Element項目實戰:手把手教你開發權限管理系統
- Advanced Oracle PL/SQL Developer's Guide(Second Edition)
- Python編程:從入門到實踐
- Visual Studio 2015高級編程(第6版)
- ScratchJr趣味編程動手玩:讓孩子用編程講故事
- OpenCV with Python By Example
- ExtJS Web應用程序開發指南第2版
- OpenStack Networking Essentials
- Image Processing with ImageJ
- 動手打造深度學習框架
- C++ System Programming Cookbook