Difference between revisions of "Compiling ScummVM/Symbian"

From ScummVM :: Wiki
Jump to navigation Jump to search
(Filled in SymbianOS Build Instructions from README)
(Improved formatting)
Line 6: Line 6:


* UIQ 3.x SDK (To build for UIQ3 devices)(Build scripts in SDK need tweaking in order to build scummvm since Symbian OS GCCE never builds as large projects as ScummVM before)
* UIQ 3.x SDK (To build for UIQ3 devices)(Build scripts in SDK need tweaking in order to build scummvm since Symbian OS GCCE never builds as large projects as ScummVM before)
* UIQ 2.1 SDK (To build for UIQ2 devices);
* UIQ 2.1 SDK (To build for UIQ2 devices):<br>http://www.symbian.com/developer/sdks_uiq.asp
http://www.symbian.com/developer/sdks_uiq.asp
* Nokia S60 1st, 2nd edition,3rd edition SDK (To build for S60 devices)
* Nokia S60 1st, 2nd edition,3rd edition SDK (To build for S60 devices)
* Nokia S80 SDK (To build for S80 devices)
* Nokia S80 SDK (To build for S80 devices)
* Nokia 7710 SDK (To build for the 7710/S90 device)
* Nokia 7710 SDK (To build for the 7710/S90 device)
* ECompXL, an EPOC application compression library
* ECompXL, an EPOC application compression library:<br>http://www.yipton.demon.co.uk/ecompxl/latest/readme.html (To build for UIQ devices)
http://www.yipton.demon.co.uk/ecompxl/latest/readme.html (To build for UIQ devices)
* libsdl, Simple Directmedia Layer, a cross-platform multimedia library:<br>http://www.libsdl.org/ (see note about ESDL below)
* libsdl, Simple Directmedia Layer, a cross-platform multimedia library
* libmad, a high-quality MPEG audio decoder:<br>http://www.underbit.com/products/mad/
http://www.libsdl.org/ (see note about ESDL below)
* zlib, a massively spiffy yet delicately unobtrusive compression library:<br>http://www.zlib.net/
* libmad, a high-quality MPEG audio decoder
http://www.underbit.com/products/mad/
* zlib, a massively spiffy yet delicately unobtrusive compression library
http://www.zlib.net/
* latest version of active perl (included with Symbian SDK does not work with the build scripts)
* latest version of active perl (included with Symbian SDK does not work with the build scripts)
* libogg, the free media file container format
* libogg, the free media file container format:<br>http://www.xiph.org/ogg/
http://www.xiph.org/ogg/
* libvorbis, the free audio codec:<br>http://www.vorbis.com/
* libvorbis, the free audio codec
http://www.vorbis.com/


These are probably too heavy-duty for your phone:
These are probably too heavy-duty for your phone:
* flac, the Free Lossless Audio Codec
* flac, the Free Lossless Audio Codec:<br>http://flac.sourceforge.net/
http://flac.sourceforge.net/
* libmpeg2, a free MPEG-2 video stream decoder:<br>http://libmpeg2.sourceforge.net
* libmpeg2, a free MPEG-2 video stream decoder
http://libmpeg2.sourceforge.net


== Compiling ScummVM ==
== Compiling ScummVM ==
Line 62: Line 53:


ScummVM:<br>
ScummVM:<br>
In <DevRoot>\scummvm\backends\platform\symbian\ go:
In <DevRoot>\scummvm\backends\platform\symbian\ go:<br>
a) Edit and update the BuildPackageUpload_LocalSettings.pl for the kind of build (SDK installed etc) and variants
a) Edit and update the BuildPackageUpload_LocalSettings.pl for the kind of build (SDK installed etc) and variants
you want to build.
you want to build.<br>
b) Run BuildPackageUpload_AllVersions.pl to build all the targets/variants that you have configured.
b) Run BuildPackageUpload_AllVersions.pl to build all the targets/variants that you have configured.<br>
A detailed log will be placed in the symbian folder with Build.err.log and Build.out.log but it also depends on
A detailed log will be placed in the symbian folder with Build.err.log and Build.out.log but it also depends on
the configuration you select.
the configuration you select.<br>


Now you should have yourself a nice ScummVM_xxx.sis installer package in the packages folder for use
Now you should have yourself a nice ScummVM_xxx.sis installer package in the packages folder for use<br>
on your phone. Please note that for development it will be a lot faster if you
on your phone. Please note that for development it will be a lot faster if you<br>
transfer the SCUMMVM.APP/Scummvm.EXE file directly to your !:\system\apps\ScummVM\ dir!
transfer the SCUMMVM.APP/Scummvm.EXE file directly to your !:\system\apps\ScummVM\ dir!<br>


Platforms can be one of: ARMi, ARM4, THUMB, WINS, WINSCW, GCCE. The SE P900 uses the ARMi platform,
Platforms can be one of: ARMi, ARM4, THUMB, WINS, WINSCW, GCCE. The SE P900 uses the ARMi platform,<br>
which is a combined ARM4/THUMB programming mode. Configurations can be one of:
which is a combined ARM4/THUMB programming mode. Configurations can be one of:<br>
UREL or UDEB.
UREL or UDEB.

Revision as of 20:44, 18 February 2011

Requirements

Building ScummVM yourself using the UIQ 2.1/Nokia S60 SDK/Nokia S80 SDK/Nokia S90 SDK framework is not an easy task! Lets just say the framework needs quite some time to set up and takes a while to get used to. If you choose to continue you will need the following items:

These are probably too heavy-duty for your phone:

Compiling ScummVM

ECompXL (Only needed for UIQ2):
This is a tool that will compress your executable with GZIP and glue
it to a predefined loader app. The app will uncompress your application at
runtime and run it without you even knowing it. A really interesting byproduct
of this method is that the general restriction of not having any writeable
static data (WSD) for Symbian APP executables no longer applies. This makes
the life of an EPOC porter a lot easier! To install this tool you need to add
its \bin path to your PATH above the sybmian epocs32\tools path, so that ECompXL's
PETRAN.EXE will be the executable that is started.

SDL:
The latest version of SDL at this point in time is 1.2.13. This version
works great for compiling on other platforms.

zlib:
The zlib-x.x.x.tar.gz does not come with UIQ .mpp build files, that's why
I added them for you in epoc-zlib.zip. Extract in <DevRoot>/zlib/ which will
create the epoc dir. In <DevRoot>/zlib/epoc/ go:
> bldmake bldfiles
> abld build

libmad:
The libmad-x.x.x.tar.gz does not come with UIQ .mpp build files, that's
why I added them for you in epoc-libmad.zip. Extract in <DevRoot>/libmad/ which
will create the epoc dir. In <DevRoot>/libmad/epoc/ go:
> bldmake bldfiles
> abld build

ScummVM:
In <DevRoot>\scummvm\backends\platform\symbian\ go:
a) Edit and update the BuildPackageUpload_LocalSettings.pl for the kind of build (SDK installed etc) and variants you want to build.
b) Run BuildPackageUpload_AllVersions.pl to build all the targets/variants that you have configured.
A detailed log will be placed in the symbian folder with Build.err.log and Build.out.log but it also depends on the configuration you select.

Now you should have yourself a nice ScummVM_xxx.sis installer package in the packages folder for use
on your phone. Please note that for development it will be a lot faster if you
transfer the SCUMMVM.APP/Scummvm.EXE file directly to your !:\system\apps\ScummVM\ dir!

Platforms can be one of: ARMi, ARM4, THUMB, WINS, WINSCW, GCCE. The SE P900 uses the ARMi platform,
which is a combined ARM4/THUMB programming mode. Configurations can be one of:
UREL or UDEB.