forked from mirror/daphne-emu
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathHOW_TO_COMPILE_UNIX.txt
70 lines (49 loc) · 2.25 KB
/
HOW_TO_COMPILE_UNIX.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
69
70
At the time of this writing, DAPHNE will compile fully under these unix'ish
platforms:
- Ubuntu Linux version 10.04 (x86)
- i386 GNU/Linux (primary platform)
- i386 FreeBSD
- Sparc Solaris (untested)
MAC OSX USERS SHOULD USE THE XCODE PROJ INSIDE THE MACOSX DIRECTORY!!!
The MAC OSX Makefile method is obsolete and is no longer maintained!
--------------------------
STEP BY STEP INSTRUCTIONS:
--------------------------
- Make sure you have g++, make, and sed installed.
- Install these libraries (with headers) if you don't already have them:
SDL 1.2 (tested with 1.2.14, older versions may work fine)
SDL NOTE:
To have minimum hardware acceleration, SDL needs to be built with "xv" support.
"OpenGL" support is also recommended for better hardware acceleration.
Ogg Vorbis (libogg, libvorbis, libvorbisfile)
Zlib
GLEW (http://glew.sourceforge.net)
- Optional: If compiling SINGE then also install the following libraries:
SLD_image, SDL_ttf, libfreetype6-dev
- Now you are ready to compile. Daphne doesn't use the traditional
autoconf/automake nonsense. Instead, it uses a separate Makefile for
each platform. To compile under GNU/Linux, open up a termianl window and
type this (from the src directory):
cp Makefile.vars.linux_x86 Makefile.vars
make
(You'd do something similar if you were compiling under the other platforms.)
- You also need to compile libvldp2.so which comes with DAPHNE and has its
own set of instructions inside the vldp2 directory. When you get there
type:
chmod +x configure
./configure
make -f Makefile.linux
- If compiling SINGE then you also need to comple libsinge.so separately
before making Daphne. Go to the game/singe folder and type:
make -f Makefile.linux
- Once you got your libraries compiled then return to the main "src"
directory. Begin the compiling process by typing "make".
-----------------------------------------------------------------------------
An alternate way...
Go to the "src" folder and rename the appropriate Makefile.vars.linux_x??
to Makefile.vars. Open up a terminal window and type the following:
chmod +x buildme.sh
./buildme.sh
If everything goes correctly it should compile daphne with the vldp2
and singe libraries.
-----------------------------------------------------------------------------