Difference between revisions of "Compiling ScummVM/iPhone"

Jump to navigation Jump to search
m
use pre; for whatever reason the wiki isn't displaying the space-prefixed lines properly
m (use pre; for whatever reason the wiki isn't displaying the space-prefixed lines properly)
Line 17: Line 17:
You'll need to set some environment variables for both the external libraries, and ScummVM itself. This is so the right compiler and libraries will be used.
You'll need to set some environment variables for both the external libraries, and ScummVM itself. This is so the right compiler and libraries will be used.


<pre>
  export SDKROOT=<your toolkit directory>
  export SDKROOT=<your toolkit directory>
  export SYSROOT="$SDKROOT/sys"
  export SYSROOT="$SDKROOT/sys"
Line 31: Line 32:
  export CFLAGS="$CXXFLAGS"
  export CFLAGS="$CXXFLAGS"
  export AS=$SDKROOT/pre/bin/arm-apple-darwin9-as
  export AS=$SDKROOT/pre/bin/arm-apple-darwin9-as
</pre>




Line 39: Line 41:


The below should usually do the trick for these:
The below should usually do the trick for these:
<pre>
  ./configure --host=arm-darwin --prefix=$SDKROOT/sys/
  ./configure --host=arm-darwin --prefix=$SDKROOT/sys/
  make && make install
  make && make install
</pre>


=== ScummVM ===
=== ScummVM ===
Line 46: Line 50:
Then, we need to configure ScummVM itself.
Then, we need to configure ScummVM itself.


<pre>
  ./configure --host=iphone \
  ./configure --host=iphone \
  --disable-mt32emu --disable-scalers  --enable-release \
  --disable-mt32emu --disable-scalers  --enable-release \
Line 52: Line 57:
  --with-mpeg2-prefix=/$SYSROOT/usr/local \
  --with-mpeg2-prefix=/$SYSROOT/usr/local \
  --with-tremor-prefix=/$SYSROOT/usr/local
  --with-tremor-prefix=/$SYSROOT/usr/local
</pre>


Note that the --with-flac-prefix (and the rest) is only necessary if you want to include support for that specific library.
Note that the --with-flac-prefix (and the rest) is only necessary if you want to include support for that specific library.
Line 61: Line 67:
Now, we can start the compile:
Now, we can start the compile:


<pre>
  make iphone
  make iphone
</pre>


Lastly, we want to make a ScummVM.app bundle:
Lastly, we want to make a ScummVM.app bundle:


<pre>
  make iphonebundle
  make iphonebundle
</pre>


Then simply upload the whole ScummVM.app directory to your device under the /Applications folder, and you're done!
Then simply upload the whole ScummVM.app directory to your device under the /Applications folder, and you're done!
2,051

edits

Navigation menu