-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.txt
82 lines (56 loc) · 3.04 KB
/
compile.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
71
72
73
74
75
76
77
78
79
80
81
82
Choosing a Z80 core
-------------------
You can choose whether to build using Dega's original assembler Z80
core, Doze, or the C Z80 core ported from MAME. By default, Doze
will be used. To use MAME's Z80 core supply the argument "Z80=z80jb"
(no quotes) to the make command.
libvfw and libmencoder
----------------------
If you have obtained the source distribution from the website, these
libraries will be included in the tarball. If you have cloned the
Dega source code from git, you will need to obtain them separately.
The source code for these libraries is maintained using git and
therefore the code may be fetched by issuing the following commands
from within the dega directory:
git clone git://git.pcc.me.uk/~peter/libvfw.git
git clone git://git.pcc.me.uk/~peter/libmencoder.git
Compilation on *NIX
-------------------
Ensure you have the following:
* nasm (Doze only)
* Python development headers (on Debian this is python2.5-dev)
* SDL development headers (on Debian this is libsdl1.2-dev)
Then you should be able to simply run "make" in the dega directory.
Compilation on Windows
----------------------
Install Cygwin from http://www.cygwin.com if you do not have it already.
When installing ensure you install the following packages:
* gcc 3 (4 does not work as mingw support was removed)
* make
* nasm (Doze only)
Install Python 2.5 from http://www.python.org (not the Cygwin python)
Then open a Cygwin bash shell and navigate to the dega directory.
Run "make PYTHON_PREFIX=<path to your installed python>". Note that
PYTHON_PREFIX must be expressed as a Cygwin path, for example a Python
installation to C:\Python25 must be written /cygdrive/c/Python25
Cross compilation of the Windows version from Linux
---------------------------------------------------
Cross compilation is also supported, this is how the official Windows
builds are made.
Ensure you have:
* nasm (Doze only)
* Wine
* a Windows cross compiler (on Debian this is the mingw32 package)
Get the Windows Python 2.5 from http://www.python.org and install
using Wine (note: MSI files can be installed using msiexec). Or you
could copy the Python25 directory from a Windows machine.
Now you can run make in the dega directory. The following variables
must be supplied to the make command:
CC, CXX, AR, WINDRES, RANLIB: your cross compiler's versions of the build tools. On Debian the names are prefixed with i586-mingw32msvc-
PYTHON_PREFIX: path to the Windows version of Python (e.g. /home/you/.wine/drive_c/Python25)
WINE: the Wine command (usually "wine")
So a complete command line may look like this:
make CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ AR=i586-mingw32msvc-ar WINDRES=i586-mingw32msvc-windres RANLIB=i586-mingw32msvc-ranlib PYTHON_PREFIX=/home/you/.wine/drive_c/Python25 WINE=wine
You may wish to use an alias. For example:
alias winmake='make CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ AR=i586-mingw32msvc-ar WINDRES=i586-mingw32msvc-windres RANLIB=i586-mingw32msvc-ranlib PYTHON_PREFIX=/home/you/.wine/drive_c/Python25 WINE=wine'
Now you can just type winmake to build.