Changes

Jump to navigation Jump to search
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
After installing Xcode, open a terminal and type:
<source syntaxhighlight lang="bash">
xcode-select --install
</source>
Install Homebrew by pasting the following into a terminal:
<source syntaxhighlight lang="bash">
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
</source>
=== 1. Homebrew ===
<source syntaxhighlight lang="bash">
brew install sdl2 sdl2_net jpeg-turbo libmpeg2 libogg libvorbis flac libmad libpng theora faad2 freetype lzlib fluid-synth
</source>
=== 2. MacPorts ===
<source syntaxhighlight lang="bash">
sudo port install libsdl2 libsdl2_net libjpeg-turbo libmpeg2 libogg libvorbis flac libmad libpng libtheora faad2 freetype zlib fluidsynth
</source>
=== 3. Fink ===
<source syntaxhighlight lang="bash">
TODO
</source>
All the libraries are compiled and installed in the same way:
<source syntaxhighlight lang="bash">
cd thelib-src
./configure --prefix=/path/to/install
The default installation path is /usr/local, but you will need admin privileges to install the libraries in this location.
<source syntaxhighlight lang="bash">
cd thelib-src
./configure
If you want your compilation to be compatible with older system, use the -mmacosx-version-min flag (for example -mmacosx-version-min=10.5). To force compilation in 32 bits use -arch i386. You can do that by setting environment variables before compiling all the libraries and ScummVM:
<source syntaxhighlight lang="bash">
export LDFLAGS="-arch i386 -mmacosx-version-min=10.5"
export CFLAGS="-arch i386 -mmacosx-version-min=10.5"
bzip2 is an exception. There is no configure and you directly call make with options. For example:
<source syntaxhighlight lang="bash">
make CFLAGS="-arch i386 -mmacosx-version-min=10.5 -Wall -Winline -O2 -g -D_FILE_OFFSET_BITS=64" LDFLAGS="-arch i386 -mmacosx-version-min=10.5"
make install PREFIX=/Users/criezy/Dev/scummvm-releases/libs
=== Configuring ScummVM ===
Run the configure script:
<source syntaxhighlight lang="bash">
./configure
</source>
If no errors come up, you should be ready to compile ScummvM.
For a list of optional features (eg additional, not yet enabled engines) run:
<source syntaxhighlight lang="bash">
./configure --help
</source>
=== Compiling ScummVM ===
Just run make (with -j to compile several files in parallel). For example
<source syntaxhighlight lang="bash">
make -j4
</source>
To recompile everything and not just the modified files:
<source syntaxhighlight lang="bash">
make clean
make -j4
=== Installing ScummVM ===
You can run ScummVM from the command line in the build directory:
<source syntaxhighlight lang="bash">
./scummvm
</source>
You can also generate an application bundle and move this one anywhere you want:
<source syntaxhighlight lang="bash">
make bundle
</source>
=== Creating an Xcode project ===
* Compile '''create_project''' inside devtools/create_project
<source syntaxhighlight lang="bash">
make devtools/create_project
</source>
Or alternatively you can use the Xcode project in devtools/create_project/xcode. Open it in Xcode or run the following command:
<source syntaxhighlight lang="bash">
cd devtools/create_project/xcode; xcodebuild
</source>
* Run create_project '''from the root ScummVM directory''':
<source syntaxhighlight lang="bash">
./devtools/create_project/create_project . --xcode
</source>
TrustedUser
1,986

edits

Navigation menu