-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
145 lines (108 loc) · 4.81 KB
/
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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
Getting source code
-------------------
If you want to compile an official release of ASAP, get the source distribution
("asap-*.tar.gz") and uncompress it to a directory of your choice.
On Unix-like systems:
tar zxf asap-*.tar.gz
On Windows you may use 7-Zip.
Source distributions of ASAP include the part of Atari800 emulator sources
used by ASAP (POKEY and 6502 emulation).
If you instead want to compile the latest version from the CVS, checkout
the "asap" module of the "asap" project and the "atari800" module
of the "atari800" project into the same directory (so it contains
the subdirectories "asap" and "atari800" after the checkouts).
Using a command-line CVS client:
mkdir asap-cvs
cd asap-cvs
cvs -z9 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/asap co -P asap
cvs -z9 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/atari800 co -P atari800
You also need to install xasm (http://xasm.atari.org) to a directory on your PATH.
Building ASAP2WAV on Unix-like systems
--------------------------------------
You need Perl, Make and a C compiler.
From your shell prompt navigate to the "asap" directory (the one that
contains "asap.c").
If you got the sources from CVS, you additionally need the "autoconf"
package and must run the following commands first:
autoconf
autoheader
To compile and install, run the following commands:
./configure
make asap2wav
make install-asap2wav
The last command must be run with super-user priviledges.
If you have no super-user priviledges or want to install the program
in a non-standard location, you can specify the "--prefix" option
for the "configure" script, or simply copy the compiled program
instead of executing "make install-asap2wav".
Building the XMMS plugin on Unix-like systems
---------------------------------------------
In addition to the above prerequisites you need a full XMMS installation.
If you have just the XMMS binary package installed, you additionally need
"xmms-devel". I have tested only the 1.2.10 version of XMMS.
XMMS itself depends on Gtk+ and Glib, so you need them too.
To compile, run the following commands:
./configure
make asap-xmms
If the compilation finished successfully, you can install the plugin
in your home directory:
make install-user
or, if you are "root", for all users:
make install-xmms
If you have other XMMS plugins that support Atari 8-bit music, make sure
to remove them in order to avoid conflicts.
Building ASAP2WAV *and* the XMMS plugin on Unix-like systems
------------------------------------------------------------
If you want to compile and install both the converter and the XMMS plugin
for all users, there is a shortcut:
./configure
make
make install
Building ASAP2WAV, WASAP and the Winamp plugin on Windows
---------------------------------------------------------
You need a Microsoft C/C++ compiler, Windows Platform SDK and Perl.
I have tested only Visual C++ 2005 Express, Platform SDK for Windows
Server 2003 SP1 and ActivePerl 5.8.7.
You need to set "Path", "INCLUDE" and "LIB" environment variables
to point at the correct locations in VC++ and PSDK.
"perl" should be on the "Path", too.
From the command prompt navigate to the "win32" directory and run:
nmake
This will produce asap2wav.exe, wasap.exe and winamp\in_asap.dll.
Building the foobar2000 plugin on Windows
-----------------------------------------
You need the Windows compilation prerequisites (see above)
and foobar2000 0.8 SDK - extract it to a new directory called
"foobar2000_SDK" under the directory that contains "asap" and "atari800".
The following changes are needed to compile foobar2000_SDK\pfc
with Visual C++ 2005 Express:
--- string.h.original Sun Feb 1 22:33:04 2004
+++ string.h Sat Jan 14 15:01:59 2006
@@ -2,7 +2,6 @@
#define _PFC_STRING_H_
#ifndef WCHAR
-typedef unsigned short WCHAR;
#endif
bool is_path_separator(unsigned c);
@@ -473,7 +472,7 @@
inline const T * operator = (const string_simple_t<T> & param) {set_string(param);return get_ptr();}
inline const T * operator += (const T * src) {add_string(src);return get_ptr();}
- inline string_simple(const string_simple_t<T> & param) {ptr = t_strdup(param);}
+ inline string_simple_t(const string_simple_t<T> & param) {ptr = t_strdup(param);}
inline void reset() {if (ptr) {mem_ops<T>::free(ptr);ptr=0;}}
inline bool is_empty() {return !ptr || !*ptr;}
inline unsigned length() {return t_strlen(get_ptr());}
--- string.cpp.original Thu Mar 18 15:13:40 2004
+++ string.cpp Sat Jan 14 15:03:27 2006
@@ -475,7 +475,7 @@
char temp[64];
if (val<0) {*(out++) = '-'; val = -val;}
else if (b_sign) {*(out++) = '+';}
- _i64toa((__int64)(val * pow(10,precision)),temp,10);
+ _i64toa((__int64)(val * pow(10.0,(double) precision)),temp,10);
unsigned len = strlen(temp);
if (len <= precision)
{
Now from the command prompt navigate to the "win32" directory and run:
nmake foo
This will produce foobar2000\foo_asap.dll.