-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL.txt
68 lines (53 loc) · 2.72 KB
/
INSTALL.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
============================== Cheetah 2D Engine ===============================
Dependencies:
1. SDL
2. OpenGL :)
Also if you want to cross-compile engine you will need:
1. OpenGL for Linux x86
2. SDL for x86
3. Linux x86_64 system with multilib support
Building:
LINUX, BSD, etc:
1. Download LuaJIT (http://luajit.org/download.html) and build it (you may use
sources from thirdparty directory to build luajit). Unfortunately there is no
cross-compile rules for thirdparty libraries, you must do it yourself.
2. Put file luajit into bin/Release/bin/<Your-system>/ directory. Be careful with
the architecture.
3. Go to the cheetah's root directory and run ./make.sh native release. If you
want to cross-compile engine, you may try ./make.sh linux32 release or
./make.sh windows release (see also cross-compilation section).
Optionally:
1. Build SDL_mixer if you want sound support.
2. If you want physics - build chipmunk from thirdparty directory - this is the
version with ffi. Chipmunk from offitial site DOES NOT WORK! Use Chipmunk from
thirdparty directory.
Put all *.so libraries to bin/Release/bin/<Your-system>.
Where <Your-system> is:
1. On Linux x86_64 platform - linux64
2. On Linux x86 platform - linux32
3. On Windows - win32
Windows:
Building on windows is not supported. Windows version is cross-compiled using gcc, but you may try mingw...
Android:
Building for Android will be avaiable in nearest future.
============================== Cross-compilation ===============================
Cheetah 2D engine may work on most known platforms. Oficially supported: Linux, Windows.
Building for all official platforms is possible with Linux x86_64 operating system.
You need:
1. gcc compiler
2. SDL and OpenGL for x86 and x86_64 platforms
3. mingw-gcc package (depends on your distribution)
To build Cheetah itself you must use make.sh script. This script takes two parameters:
./make.sh <Target Platform> <Optimization level>
<Target Platform> - one of: native, windows, linux32. Note that buiding for
Linux x86_64 only possible on Linux x86_64 by running run ./make.sh native. Running
./make.sh native on Linux x86 platform is equivalent of ./make.sh linux32.
You cannot compile linux64 release on linux32 platform.
<Optimization level> - one of: release, final, debug. Also you
may leave it empty - smallest build time (without any optimizations).
Release - enables -Ofast (or -O3 if not possible) and some other
optimizations. Final - builds engine as release with profiling information,
runs tests and then builds engine using profiling information. Final
produces fastest code but it works only when you have Cheetah engine
compiled with all tests. You must run all tests using ./run_linux.sh
before building to generate paths.