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
21 ### Minimum Requirements
23 - Ubuntu 14.04 or later
25 ### Creating a DALi Environment
27 To build for desktop first ensure ALL sources are selected:
28 - Go to Ubuntu Settings and then to "Software & Updates"
29 - In the "Ubuntu Software" tab, ensure ALL software sources are ticked
31 (This is required because we install some community-maintained free & open-source software)
33 Then you can create a dali-env folder in your home folder with:
35 $ dali-core/build/scripts/dali_env -c
37 This will also download any dependencies that the dali repositories require.
39 You can save the environment variables to a file:
41 $ dali-env/opt/bin/dali_env -s > setenv
43 This process only needs to be done once.
45 Next source these variables:
49 You will have to source these variables every time you open up a new terminal (or you can add to .bashrc if you prefer).
52 ### Building the Repository
54 To build the repository enter the 'build/tizen' folder:
56 $ cd dali-core/build/tizen
58 Then run the following commands:
60 $ autoreconf --install
61 $ ./configure --prefix=$DESKTOP_PREFIX
64 ### Build target options
68 When building, the OpenGL ES version of the target should be specified.
70 Valid version options are 20, 30, 31
73 Add: *--enable-gles=X*
76 Add to the gbs build line: *--define "%target_gles_version X"*
79 ### Building and executing test cases
81 See the README.md in dali-core/automated-tests.
87 $ gbs build -A [TARGET_ARCH]
89 ### SMACK enabled Targets
91 $ gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
95 $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"