1 <img src="https://dalihub.github.io/images/DaliLogo320x200.png">
5 * [Build Instructions](#build-instructions)
6 * [1. Building for Ubuntu desktop](#1-building-for-ubuntu-desktop)
7 * [Minimum Requirements](#minimum-requirements)
8 * [Creating a DALi Environment](#creating-a-dali-environment)
9 * [Building the Repository](#building-the-repository)
10 * [Build target options](#build-target-options)
11 * [Building and executing test cases](#building-and-executing-test-cases)
12 * [2. GBS Builds](#2-gbs-builds)
13 * [NON-SMACK Targets](#non-smack-targets)
14 * [SMACK enabled Targets](#smack-enabled-targets)
15 * [DEBUG Builds](#debug-builds)
19 ## 1. Building for Ubuntu desktop
23 - Ubuntu 14.04 or later
26 DALi requires a compiler supporting C++11 features.
27 Ubuntu 16.04 is the first version to offer this by default (GCC v5.4.0).
29 GCC version 6 is recommended since it has fixes for issues in version 5
30 e.g. it avoids spurious 'defined but not used' warnings in header files.
33 ### Creating a DALi Environment
35 To build for desktop first ensure ALL sources are selected:
36 - Go to Ubuntu Settings and then to "Software & Updates"
37 - In the "Ubuntu Software" tab, ensure ALL software sources are ticked
39 (This is required because we install some community-maintained free & open-source software)
41 Then you can create a dali-env folder in your home folder with:
43 $ dali-core/build/scripts/dali_env -c
45 This will also download any dependencies that the dali repositories require.
47 You can save the environment variables to a file:
49 $ dali-env/opt/bin/dali_env -s > setenv
51 This process only needs to be done once.
53 Next source these variables:
57 You will have to source these variables every time you open up a new terminal (or you can add to .bashrc if you prefer).
60 ### Building the Repository
62 To build the repository enter the 'build/tizen' folder:
64 $ cd dali-core/build/tizen
66 Then run the following command to set up the build:
68 $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
70 If a Debug build is required, then add -DCMAKE_BUILD_TYPE=Debug
76 ### Building and executing test cases
78 See the README.md in dali-core/automated-tests.
84 $ gbs build -A [TARGET_ARCH]
86 ### SMACK enabled Targets
88 $ gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
92 $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"