64
edits
m (MacOS X Crosscompiling moved to Compiling ScummVM/MacOS X Crosscompiling: subpage) |
Vinterstum (talk | contribs) |
||
Line 50: | Line 50: | ||
Change this to whatever root you used to install the dependency libraries. In my case, I've changed it to: | Change this to whatever root you used to install the dependency libraries. In my case, I've changed it to: | ||
OSXOPT=/opt/1028libs | OSXOPT=/opt/1028libs | ||
Next, find the section that starts with: | Next, find the section that starts with: | ||
Line 70: | Line 64: | ||
This will ensure we link zlib in statically instead of dynamically, which avoids some obscure problems we've had on 10.2.x. | This will ensure we link zlib in statically instead of dynamically, which avoids some obscure problems we've had on 10.2.x. | ||
At this point, we also need to make sure that the configure script finds the correct version of sdl-config (In other words, the one we compiled ourselves and put, for example, in /opt/1028libs. | |||
We do this thusly: | |||
export PATH="/opt/1028libs/bin:$PATH" | |||
When you've done the above, it's time to run ./configure. For each library you want to include, you have to tell ScummVM where it can find it. | When you've done the above, it's time to run ./configure. For each library you want to include, you have to tell ScummVM where it can find it. | ||
So, for me, that would be: | So, for me, that would be: | ||
Line 113: | Line 111: | ||
* Copy 'scummvm-static' from the PPC build directory, to a file called 'scummvm-static-ppc' in whatever build directory you chose. | * Copy 'scummvm-static' from the PPC build directory, to a file called 'scummvm-static-ppc' in whatever build directory you chose. | ||
* Copy 'scummvm-static' from the Intel build directory, to 'scummvm-static-x86' in the same directory. | * Copy 'scummvm-static' from the Intel build directory, to 'scummvm-static-x86' in the same directory. | ||
* Run 'strip' on both of the above files to remove debugging info (otherwise the files will be tens of megabytes large). | |||
* Run 'lipo -create scummvm-static-x86 scummvm-static-ppc -output scummvm-static' | * Run 'lipo -create scummvm-static-x86 scummvm-static-ppc -output scummvm-static' | ||
* Run 'make osxsnap' | * Run 'make osxsnap' | ||
Tada! The resulting ScummVM-snapshot.dmg is a package of ScummVM that should work on MacOS X 10.2, 10.3, 10.4, 10.5, both Intel and PPC builds. | Tada! The resulting ScummVM-snapshot.dmg is a package of ScummVM that should work on MacOS X 10.2, 10.3, 10.4, 10.5, both Intel and PPC builds. |
edits