-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.install
36 lines (35 loc) · 1.52 KB
/
README.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Building and installation
-------------------------
As usual:
$ ./autogen.sh #if necessary
$ ./configure
$ make
# make install
The program uses the "Liberation Mono" font, the path is discovered
via fontconfig or looking in the usual path on some Linux distros.
You can look up a different font name with --with-font-name or
choose a specific font using --with-font-path, for example:
$ ./configure --with-font-path=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
libsdl, libsdl-image, libsdl-ttf and libode are also needed for
compilation. There is also --enable-rgb-swap option for ./configure
that may help to avoid font color swapping (specific to various
libsdl builds) which is assumed to be yellow-orange, not blue.
For cross-compiling, first set up the environment to use your toolchain
and pass architecture name to ./configure. For example, to compile the
game for Neo Freerunner with Openmoko Toolchain execute
$ . /usr/local/openmoko/arm/setup-env
then install needed development packages if you have not done it
earlier:
$ opkg-target update #if necessary
$ opkg-target install libsdl-1.2-dev
$ opkg-target install libsdl-image-1.2-dev
$ opkg-target install libsdl-ttf-dev
Configure the project and compile it
$ ./configure --host=arm-angstrom-linux-gnueabi --prefix=/usr \
> --enable-rgb-swap FONTDIR=/usr/share/fonts/truetype
$ make
To create .ipk file execute
$ cd ..
$ om-make-ipkg <mokomaze-src-dir> <control-file>
Now copy installation package to Freerunner or memory card and
install it by 'opkg install'.