Update Mac build instructions

This commit is contained in:
Michael Martin
2018-05-06 17:56:50 -07:00
parent 8b5cde896a
commit 18569ef896
+13 -10
View File
@@ -8,8 +8,10 @@ Only the Runtime is truly necessary, but the devel extras are nice.
SDL_image: http://www.libsdl.org/projects/SDL_image/ SDL_image: http://www.libsdl.org/projects/SDL_image/
The last version of stock framework that can be used is v1.2.7. The last version of stock framework that can be used is v1.2.7.
Starting with v1.2.8, the stock framework uses ImageIO by default Starting with v1.2.8, the stock framework uses ImageIO by default to
to load PNG files, which strips out the PNG palettes. load PNG files, which strips out the PNG palettes. Later versions will
work if you build your own copy that defines
SDL_IMAGE_USE_COMMON_BACKEND.
Ogg Vorbis: http://www.xiph.org/downloads/ Ogg Vorbis: http://www.xiph.org/downloads/
Theoretically optional, but necessary if you're using the 3DO music Theoretically optional, but necessary if you're using the 3DO music
@@ -28,14 +30,7 @@ Unzip the libogg and libvorbis archives somewhere convenient.
For libogg: For libogg:
- Go to the macosx directory, open the xcodeproj. - Go to the macosx directory, open the xcodeproj.
- Open Project->Project Settings and set the Configuration to - Open Project->Project Settings and set the Configuration to
"Release". Ensure the Architecture is set to "i386 ppc". "Release". Ensure the Architecture is set to "i386 x86_64".
- If you are using XCode 3.2.1 (Snow Leopard), you will need to use
GCC 4.0 instead of the default 4.2 (which will not work for the 10.4
target). Inside Project Settings, add the following User-Defined
Settings via the gear menu at the bottom left:
- GCC_VERSION_i386 = 4.0
- GCC_VERSION_ppc = 4.0
- Choose the "10.4 | Release" target and build.
- If there are no errors, the Ogg.framework file should have turned - If there are no errors, the Ogg.framework file should have turned
from red to black. Control-click it, choose "reveal in finder". from red to black. Control-click it, choose "reveal in finder".
- Copy Ogg.framework to /Library/Frameworks. - Copy Ogg.framework to /Library/Frameworks.
@@ -61,3 +56,11 @@ To build:
- If it builds without errors (last line is LINK uqm or LINK - If it builds without errors (last line is LINK uqm or LINK
uqm-debug), ./build.sh uqm install to build the .app. uqm-debug), ./build.sh uqm install to build the .app.
- The .app that is built will link against the frameworks in
/Library/Frameworks. To produce a distributable image you will need
to move the libraries into place inside the app bundle and fix up
any linkage of names. build/unix_installer/copy_mac_frameworks.pl
should do the hard work for you, but you may need to edit the
patterns it edits depending on the precise details of the computer
you are building on.