1 |
nigel |
1.1 |
How to build this source |
2 |
|
|
------------------------ |
3 |
|
|
|
4 |
|
|
1) Install the OS X Development tools |
5 |
|
|
|
6 |
nigel |
1.11 |
Source now only builds on 10.2 and 10.3. On 10.1, there are a few |
7 |
|
|
compile and link errors that I just can't be bothered to fix. |
8 |
|
|
On 10.4, there are problems with thhe way I have built libslirp.a |
9 |
|
|
(local relocation entries in non-writable section (__TEXT,__text)). |
10 |
|
|
|
11 |
nigel |
1.1 |
|
12 |
nigel |
1.7 |
2) Open a Terminal, and cd to BasiliskII-1.0/src/MacOSX |
13 |
nigel |
1.1 |
|
14 |
nigel |
1.3 |
3) sh 1_prepare_files.sh |
15 |
nigel |
1.1 |
|
16 |
nigel |
1.3 |
This creates some symlinks to files in the Unix source and |
17 |
|
|
/usr/libexec directories, generates ./configure, and runs it. |
18 |
nigel |
1.1 |
|
19 |
nigel |
1.3 |
The end result is a Makefile and some header files |
20 |
nigel |
1.1 |
|
21 |
nigel |
1.3 |
4) make |
22 |
nigel |
1.1 |
|
23 |
nigel |
1.2 |
This should generate the uae_cpu emulator core's source, |
24 |
nigel |
1.11 |
compile the SLIRP sources and then the application. |
25 |
nigel |
1.1 |
|
26 |
|
|
* It is also possible to use the OS X integrated development environment |
27 |
nigel |
1.9 |
(i.e. "Project Builder" or Xcode) to build the application, instead of make. |
28 |
nigel |
1.4 |
Instead of step 4) above, do these steps: |
29 |
nigel |
1.1 |
|
30 |
nigel |
1.3 |
4) make ide |
31 |
nigel |
1.1 |
|
32 |
nigel |
1.2 |
This should generate the uae_cpu emulator core's source, |
33 |
nigel |
1.8 |
and then open the project in the Project Builder or Xcode IDE. |
34 |
|
|
|
35 |
nigel |
1.3 |
5) From the Build menu, choose 'Build' or 'Build & Run' |
36 |
nigel |
1.1 |
|
37 |
|
|
This should build everything |
38 |
nigel |
1.5 |
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
Notes: |
42 |
|
|
|
43 |
|
|
1) Compiling cpuemu.cpp takes 58 seconds on my 384MB G4 400. |
44 |
|
|
Compiling it as separate files (cpuemu1.cpp thru cpuemu8.cpp) |
45 |
|
|
takes 68 seconds on the same machine. If you have less RAM, |
46 |
|
|
it may be faster to compile it as separate files. |
47 |
|
|
|
48 |
nigel |
1.10 |
2) If you want to change the addressing default |
49 |
nigel |
1.9 |
(which is currently direct), you have to reconfigure. |
50 |
|
|
(i.e. make clean; ./configure --enable-addressing=banks) |
51 |
|
|
|
52 |
nigel |
1.10 |
3) To emulate a Mac Classic, or any Mac with 24bit addressing, |
53 |
nigel |
1.9 |
the app needs to be built with the above (bank) style addressing. |