Changes

Jump to navigation Jump to search
m
Text replacement - "<source lang=" to "<syntaxhighlight lang="
== Creating the Xcode project ==
Clone the ScummVM repository from GitHub to get the source code:
<source syntaxhighlight lang="bash">
git clone https://github.com/scummvm/scummvm.git
</source>
Generate the create_project tool:
<source syntaxhighlight lang="bash">
cd scummvm/devtools/create_project/xcode
xcodebuild
Create a build directory, extract the [https://www.scummvm.org/frs/build/scummvm-ios7-libs.zip iOS libraries package] and generate the Xcode project
<source syntaxhighlight lang="bash">
cd ../../../..
mkdir build
Download the [https://www.scummvm.org/frs/build/scummvm-ios7-libs.zip iOS libraries package] and extract them in the build directory:
<source syntaxhighlight lang="bash">
unzip ~/Downloads/ScummVM-iOS-libraries.zip
</source>
Generate Xcode project and open it:
<source syntaxhighlight lang="bash">
../scummvm/devtools/create_project/xcode/build/Release/create_project ../scummvm --xcode --enable-fluidsynth --disable-bink --disable-mt32emu --disable-nasm --disable-opengl --disable-theora --disable-taskbar --disable-libcurl --disable-sdlnet
</source>
You are now ready to compile ScummVM. First open the project in Xcode:
<source syntaxhighlight lang="bash">
open scummvm.xcodeproj
</source>
Here is a script to download, and compile all the required tools. This script has been wrote for Debian 8.2, and should be run as root.
<source syntaxhighlight lang="bash">
#!/bin/bash
Now, in order to compile ScummVM, execute the following commands:
<source syntaxhighlight lang="bash">
export SDKROOT=/usr/share/ios-sdk/iPhoneOS8.1.sdk
export CC=ios-clang
* For ''iphone'' use:
<source syntaxhighlight lang="bash">
export TARGET=arm-apple-darwin9
</source>
* For ''ios7'' use:
<source syntaxhighlight lang="bash">
export TARGET=arm-apple-darwin11
</source>
==== Setting up the Environment ====
<source syntaxhighlight lang="bash">
export PATH="$IOS_TOOLCHAIN_BASE/bin:$IOS_TOOLCHAIN_BASE/$TARGET/bin:$IOS_TOOLCHAIN_BASE/$TARGET/usr/bin:$PATH"
export CPPFLAGS="-isystem $IOS_TOOLCHAIN_BASE/$TARGET/usr/include"
First, navigate to a path where you want your build files to be located (this can be the ScummVM root directory but does not have to be).
Then run the following:
<source syntaxhighlight lang="bash">
./path/to/scummvm/configure --host=ios7 --with-staticlib-prefix=$IOS_TOOLCHAIN_BASE/$TARGET/usr
</source>
You can compile ScummVM with running make:
<source syntaxhighlight lang="bash">
make iphone
</source>
Please note that if you want to deploy ScummVM on your iOS device you will need to generate a bundle file. For this run either:
<source syntaxhighlight lang="bash">
make ios7bundle
</source>
for the ''ios7'' backend. Or
<source syntaxhighlight lang="bash">
make iphonebundle
</source>
TrustedUser
1,986

edits

Navigation menu