posix: add feature test macro _GNU_SOURCE for pow10(3) and pow10f(3)
[vala-gnome.git] / doc / building.txt
blobe340f5041d9e61516c1ae121bac14b2d0980ea37
1 Step one:
2 --------
4 Install packages like a C compiler, glib-2.0, flex and bison
5 TODO: complete this list
7 Step two:
8 ---------
10 Vala is self-hosting so it needs another vala compiler to compile
11 itself.  If you don't have an existing vala installed (i.e. because
12 you're bootstrapping or cross-compiling), you can use the
13 vala-bootstrap module:
15 http://git.gnome.org/browse/vala-bootstrap
17 See also:
19 http://live.gnome.org/Vala/Release
21 Downloading and compiling the bootstrap module:
23 git clone git://git.gnome.org/vala-bootstrap
24 cd vala-bootstrap
25 ./autogen.sh --prefix=/opt/vala-bootstrap --disable-build-from-vala --disable-vapigen
26 make && sudo make install
28 Step three:
29 ----------
31 Compiling the newest Vala from the repository:
33 git clone git://git.gnome.org/vala
34 cd vala
35 export VALAC=/opt/vala-bootstrap/bin/vala
36 ./autogen.sh --prefix=/opt/vala
37 make && sudo make install
39 Maybe you want to compile the new Vala with itself. Then you simply go over
40 it again:
42 git clean -dfx
43 export VALAC=/opt/vala/bin/vala
44 ./autogen.sh --prefix=/opt/vala
45 make && sudo make install