3 # Build Guide {#build-guide}
5 ## Ubuntu {#build-ubuntu}
7 These instructions explain how to build the DALi library for the Ubuntu 14.04 desktop environment.
9 ### Minimum Requirements
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).
16 ### Creating a DALi environment
18 DALi provides a script to set up your desktop environment. This script can be found in the dali-core repository.
20 + Fetch ALL 4 repositories from tizen.org.
21 + In the parent directory of these repositories, run the following command:
23 dali-core/build/scripts/dali_env -c
25 This will also download any dependencies that the dali repositories require.
27 + You can save the environment variables to a file:
29 dali-env/opt/bin/dali_env -s > setenv
32 The last few steps only need to be done once.
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:
40 ### Building the repositories
44 cd dali-core/build/tizen
46 ./configure --prefix=$DESKTOP_PREFIX
52 cd dali-adaptor/build/tizen
54 ./configure --prefix=$DESKTOP_PREFIX --enable-profile=UBUNTU --enable-gles=20
60 cd dali-toolkit/build/tizen
62 ./configure --prefix=$DESKTOP_PREFIX
68 cd dali-demo/build/tizen
69 cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
75 Ensure you have sourced your environment as mentioned above and then just run: