Changes

Jump to navigation Jump to search

Compiling ScummVM/iPhone

135 bytes added, 15:16, 25 October 2018
m
Text replacement - "</source>" to "</syntaxhighlight>"
<syntaxhighlight lang="bash">
git clone https://github.com/scummvm/scummvm.git
</sourcesyntaxhighlight>
Generate the create_project tool:
cd scummvm/devtools/create_project/xcode
xcodebuild
</sourcesyntaxhighlight>
''Note:'' you may need to run xcodebuild with sudo the first time ('sudo xcodebuild') if the Xcode command line tools are not yet installed. Command line tools can also be installed from Xcode or using 'sudo xcode-select --install'
mkdir build
cd build
</sourcesyntaxhighlight>
Download the [https://www.scummvm.org/frs/build/scummvm-ios7-libs.zip iOS libraries package] and extract them in the build directory:
<syntaxhighlight lang="bash">
unzip ~/Downloads/ScummVM-iOS-libraries.zip
</sourcesyntaxhighlight>
Generate Xcode project and open it:
<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
</sourcesyntaxhighlight>
At this point your build directory should contain:
<syntaxhighlight lang="bash">
open scummvm.xcodeproj
</sourcesyntaxhighlight>
''Note:'' you can also double-click on the ''scummvm.xcodeproj'' file in the Finder to open it with Xcode.
tar xjf iPhoneOS8.1.sdk.tbz2
rm iPhoneOS8.1.sdk.tbz2
</sourcesyntaxhighlight>
Now, in order to compile ScummVM, execute the following commands:
./configure --host=ios7 --disable-mt32emu --enable-release
make ios7bundle
</sourcesyntaxhighlight>
At the end of the compilation, you'll find a '''ScummVM.app''' application: copy it over SSH, and reboot your device.
<syntaxhighlight lang="bash">
export TARGET=arm-apple-darwin9
</sourcesyntaxhighlight>
* For ''ios7'' use:
<syntaxhighlight lang="bash">
export TARGET=arm-apple-darwin11
</sourcesyntaxhighlight>
==== Setting up the Environment ====
export CPPFLAGS="-isystem $IOS_TOOLCHAIN_BASE/$TARGET/usr/include"
export LDFLAGS="-L$IOS_TOOLCHAIN_BASE/$TARGET/usr/lib"
</sourcesyntaxhighlight>
Where ''IOS_TOOLCHAIN_BASE'' contains the directory where you installed the toolchain. And ''TRAGET'' has been setup from the previous step.
<syntaxhighlight lang="bash">
./path/to/scummvm/configure --host=ios7 --with-staticlib-prefix=$IOS_TOOLCHAIN_BASE/$TARGET/usr
</sourcesyntaxhighlight>
Replace ''ios7'' with ''iphone'' if you want to build the older version of our iOS backend.
<syntaxhighlight lang="bash">
make iphone
</sourcesyntaxhighlight>
If you simply want to test whether changes you made compile but do not plan to use the binary for deployment you can also simply run ''make''.
<syntaxhighlight lang="bash">
make ios7bundle
</sourcesyntaxhighlight>
for the ''ios7'' backend. Or
<syntaxhighlight lang="bash">
make iphonebundle
</sourcesyntaxhighlight>
for the ''iphone'' backend.
Then simply upload the whole ScummVM.app directory to your device under the /Applications folder, and you're done!
TrustedUser
1,698

edits

Navigation menu