Getting started with qibuild on Mac OS
Installing Xcode ¶
Then you should install a C++ compiler and the command line tools to use it.
The best way to do so is to install
from the Apple store.
First of all you need to install Xcode.
- You must have a developer account to download the command line tools after installing Xcode. Preferences -> Download -> Components -> Command Line Tools
Starting with Xcode4, the command line compile tools
, and so on), are not installed by default and CMake cannot
work without them.
the command line tools form here:
Installing CMake ¶
from CMake website:
During CMake installation, you will be asked to choose a path to install command line links:
Just choose the default path.
(qibuild cannot work without CMake installed this way)
Installing QtCreator (optional) ¶
can work with
, it is best to use
since it is better supported.
First run ¶
You should run
$ qibuild config --wizard
A file will be generated in
It is shared by all the worktrees you will create.
You will be asked to choose a CMake generator.
If you wish to use
If you cannot live without
Note that you can still re-run the config wizard anytime you want.
Building with Xcode ¶
Just open the
generated in the build directory