(Programming Guide) KeyFrame Animation, Path Animation, Constraints
[platform/core/uifw/dali-toolkit.git] / docs / content / shared-javascript-and-cpp-documentation / build-guide.md
1 <!--
2 /**-->
3 # Build Guide {#build-guide}
4
5 ## Ubuntu {#build-ubuntu}
6
7 These instructions explain how to build the DALi library for the Ubuntu 14.04 desktop environment.
8
9 ### Minimum Requirements
10
11 + Ubuntu 14.04
12 + Ensure ALL sources are selected:
13  + Go to Ubuntu Settings and then to "Software & Updates".
14  + In the "Ubuntu Software" tab, ensure ALL software sources are ticked. (This is required because we install some community-maintained free & open-source software).
15
16 ### Creating a DALi environment
17
18 DALi provides a script to set up your desktop environment. This script can be found in the dali-core repository.
19
20 + Fetch ALL 4 repositories from tizen.org.
21 + In the parent directory of these repositories, run the following command:
22   ~~~{.sh}
23   dali-core/build/scripts/dali_env -c
24   ~~~
25   This will also download any dependencies that the dali repositories require.
26
27 + You can save the environment variables to a file:
28   ~~~{.sh}
29   dali-env/opt/bin/dali_env -s > setenv
30   ~~~
31
32 The last few steps only need to be done once.
33
34 You will have to source your environment variables every time you open up a new terminal (or you can add to .bashrc if you prefer).
35 You can do this by sourcing the '''setenv''' script you created above:
36 ~~~{.sh}
37 . setenv
38 ~~~
39
40 ### Building the repositories
41
42 #### dali-core
43 ~~~{.sh}
44 cd dali-core/build/tizen
45 autoreconf --install
46 ./configure --prefix=$DESKTOP_PREFIX
47 make install -j8
48 ~~~
49
50 #### dali-adaptor
51 ~~~{.sh}
52 cd dali-adaptor/build/tizen
53 autoreconf --install
54 ./configure --prefix=$DESKTOP_PREFIX --enable-profile=UBUNTU --enable-gles=20
55 make install -j8
56 ~~~
57
58 #### dali-toolkit
59 ~~~{.sh}
60 cd dali-toolkit/build/tizen
61 autoreconf --install
62 ./configure --prefix=$DESKTOP_PREFIX
63 make install -j8
64 ~~~
65
66 #### dali-demo
67 ~~~{.sh}
68 cd dali-demo/build/tizen
69 cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
70 make install -j8
71 ~~~
72
73 ### Running dali-demo
74
75 Ensure you have sourced your environment as mentioned above and then just run:
76 ~~~{.sh}
77 dali-demo
78 ~~~
79
80 */