Advice about compiler versions in README requirements section
[platform/core/uifw/dali-adaptor.git] / README.md
1 <img src="https://dalihub.github.io/images/DaliLogo320x200.png">
2
3 # Table of Contents
4
5    * [Build Instructions](#build-instructions)
6       * [1. Building for Ubuntu desktop](#1-building-for-ubuntu-desktop)
7          * [Minimum Requirements](#minimum-requirements)
8          * [Building the Repository](#building-the-repository)
9          * [Build target options](#build-target-options)
10          * [Building and executing test cases](#building-and-executing-test-cases)
11       * [2. GBS Builds](#2-gbs-builds)
12          * [DEBUG Builds](#debug-builds)
13
14 # Build Instructions
15
16 ## 1. Building for Ubuntu desktop
17
18 ### Requirements
19
20  - Ubuntu 14.04 or later
21  - Environment created using dali_env script in dali-core repository
22  - GCC version 6
23
24 DALi requires a compiler supporting C++11 features.
25 Ubuntu 16.04 is the first version to offer this by default (GCC v5.4.0).
26
27 GCC version 6 is recommended since it has fixes for issues in version 5
28 e.g. it avoids spurious 'defined but not used' warnings in header files.
29
30 ### Building the Repository
31
32 To build the repository enter the 'build/tizen' folder:
33
34          $ cd dali-adaptor/build/tizen
35
36 Then run the following commands:
37
38          $ autoreconf --install
39          $ ./configure --prefix=$DESKTOP_PREFIX
40          $ make install -j8
41
42 ### Build target options
43
44 OpenGL ES context:
45
46 When building, the OpenGL ES version of the target should be specified.
47
48 Valid version options are 20, 30, 31 for OpenGL ES versions 2.0, 3.0 and 3.1 respectively.
49
50 With configure:
51 Add: *--enable-gles=X*
52
53 With gbs:
54 Add to the gbs build line: *--define "%target_gles_version X"*
55
56 ### Building and executing test cases
57
58 See the README.md in dali-adaptor/automated-tests.
59
60 ## 2. GBS Builds
61
62          $ gbs build -A [TARGET_ARCH]
63
64 ### DEBUG Builds
65
66          $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"
67