Qt5 super module
Go to file
Toni Saario d2d5638f12 Run VxWorks tests upstream of QtDeclarative
Set test running to happen on non-developer static target
for modules upstream of QtDeclarative. Qtdeclarative tests
do not build with static flag, due to this only up to this.

Update VSB and VIP.

Change-Id: If7e016f11b5d3908dff584fc05bcc8985d471a94
Reviewed-by: Simo Fält <simo.falt@qt.io>
2024-08-26 22:26:03 +03:00
.github
LICENSES
cmake
coin
qt3d@8a307c5154
qt5compat@7bc7129b91
qtactiveqt@32f6237bf9
qtbase@3e1a223318
qtcanvas3d@1319e0965f
qtcharts@9291892c3e
qtcoap@f7d127ed74
qtconnectivity@65117adb20
qtdatavis3d@f511fc5418
qtdeclarative@98778f00b9
qtdoc@60749227fc
qtfeedback@9ac8d8c272
qtgamepad@5fe6fd206f
qtgraphs@4e36e1e303
qtgrpc@9ecaa1305f
qthttpserver@ae4217ce26
qtimageformats@40c3845c81
qtlanguageserver@b8ce9c38ea
qtlocation@9af436f578
qtlottie@1076301f49
qtmqtt@334f06a95f
qtmultimedia@9d38cfd625
qtnetworkauth@14f1aa2a9f
qtopcua@7aadb32231
qtpim@02efef5ee6
qtpositioning@fb8fec6828
qtqa@8dfb036f75
qtquick3d@db8fb7cae3
qtquick3dphysics@badf58562f
qtquickeffectmaker@1a52eb628d
qtquicktimeline@66e42e871a
qtremoteobjects@1d126d8a1f
qtrepotools@5bede66a74
qtscxml@5024cfa067
qtsensors@b2fe2481ce
qtserialbus@c27c9219ec
qtserialport@a719136b1e
qtshadertools@9b03d4e0c0
qtspeech@239a76cb14
qtsvg@156779687b
qtsystems@434af789f0
qttools@07709fb47b
qttranslations@241c6ab8d4
qtvirtualkeyboard@5f8c6c6d5f
qtwayland@9fbc097f22
qtwebchannel@3928192081
qtwebengine@621a4183e2
qtwebglplugin@531fb30d53
qtwebsockets@46f7153667
qtwebview@478b966f55
qtxmlpatterns@05ab444844
tests/manual/RunCMake
.commit-template
.gitattributes
.gitignore
.gitmodules
.tag
CMakeLists.txt
CONTRIBUTING.md
README.git
README.md
README.md.template
_clang-format
configure
configure.bat
configure.json
init-repository
init-repository.bat
init-repository.pl

README.md

HOW TO BUILD Qt 6

Synopsis

System requirements

  • C++ compiler supporting the C++17 standard
  • CMake
  • Ninja
  • Python 3

For more details, see also https://doc.qt.io/qt-6/build-sources.html

Linux, Mac:

cd <path>/<source_package>
./configure -prefix $PWD/qtbase
cmake --build .

Windows:

  1. Open a command prompt.
  2. Ensure that the following tools can be found in the path:
cd <path>\<source_package>
configure -prefix %CD%\qtbase
cmake --build .

More details follow.

Build!

Qt is built with CMake, and a typical configure && cmake --build . build process is used.

If Ninja is installed, it is automatically chosen as CMake generator.

Some relevant configure options (see configure -help):

  • -release Compile and link Qt with debugging turned off.
  • -debug Compile and link Qt with debugging turned on.

Example for a release build:

./configure -prefix $PWD/qtbase
cmake --build .

Example for a developer build: (enables more autotests, builds debug version of libraries, ...)

./configure -developer-build
cmake --build .

See output of ./configure -help for documentation on various options to configure.

The above examples will build whatever Qt modules have been enabled by default in the build system.

It is possible to build selected repositories with their dependencies by doing a ninja <repo-name>/all. For example, to build only qtdeclarative, and the modules it depends on:

./configure
ninja qtdeclarative/all

This can save a lot of time if you are only interested in a subset of Qt.

Hints

The submodule repository qtrepotools contains useful scripts for developers and release engineers. Consider adding qtrepotools/bin to your PATH environment variable to access them.

Building Qt from git

See http://wiki.qt.io/Building_Qt_6_from_Git and README.git for more information. See http://wiki.qt.io/Qt_6 for the reference platforms.

Documentation

After configuring and compiling Qt, building the documentation is possible by running

cmake --build . --target docs

After having built the documentation, you need to install it with the following command:

cmake --build . --target install_docs

The documentation is installed in the path specified with the configure argument -docdir.

Information about Qt's documentation is located in qtbase/doc/README

Note: Building the documentation is only tested on desktop platforms.