Difference between revisions of "Compiling ScummVM/Nintendo DS"

From ScummVM :: Wiki
Jump to navigation Jump to search
(New page: TODO: Write this. For starters, use the information from http://forums.scummvm.org/viewtopic.php?t=3478 to create a first draft.)
 
(Added some basic NDS build instructions (partially based on Neil's homepage))
Line 1: Line 1:
TODO: Write this. For starters, use the information from http://forums.scummvm.org/viewtopic.php?t=3478 to create a first draft.
+
== Compiling ScummVM for Nintendo DS under Linux ==
 +
 
 +
== Tools/libraries needed ==
 +
You must have [http://www.devkitpro.org/ devitPro] installed. Version r24 is known to work, more recent versions may work, but occasionally introduce non-backward compatibility changes which cause them to break compatibility with ScummVM.
 +
 
 +
Moreover, by default, ScummVM DS expects to find libmad, an MP3 compressor library targeted for the ARM platform. If you don't have this, you must disable libmad support by opening 'backends/platform/ds/arm9/makefile' and commenting out the line which says USE_MAD = 1.
 +
 
 +
To sum it up, you need to install at least the following:
 +
* devkitPro, e.g. [https://sourceforge.net/projects/devkitpro/files/devkitARM/previous/devkitARM%20release%2024/ devkitPro r24]
 +
* libnds
 +
* libfat
 +
* libmad
 +
 
 +
== Compiling ScummVM ==
 +
To build ScummVM DS from source, it's probably better to checkout the latest version of the code from the ScummVM SVN repository. The ScummVM Sourceforge.net homepage has all the information about how to do this.
 +
 
 +
Enter the <code>backends/platform/ds</code> folder and type:
 +
 
 +
<syntax type="bash">
 +
make SCUMM_BUILD=a
 +
</syntax>
 +
The executable nds file will build inside <code>backends/platform/ds/arm9/SCUMMVM-A</code>.
 +
 
 +
For other builds, substitute the letters <code>b</code> to <code>g</code> in the above line.
 +
 
 +
To build everything, type:
 +
 
 +
<syntax type="bash">
 +
make allbuildssafe
 +
</syntax>
 +
 
 +
 
 +
== Further reading ==
 +
* [http://forums.scummvm.org/viewtopic.php?t=3478 Forum thread "Compile Directions"]
 +
* [http://forums.scummvm.org/viewtopic.php?t=7535 Forum thread "version of devkitpro needed to compile 13.1"]

Revision as of 18:19, 30 December 2009

Compiling ScummVM for Nintendo DS under Linux

Tools/libraries needed

You must have devitPro installed. Version r24 is known to work, more recent versions may work, but occasionally introduce non-backward compatibility changes which cause them to break compatibility with ScummVM.

Moreover, by default, ScummVM DS expects to find libmad, an MP3 compressor library targeted for the ARM platform. If you don't have this, you must disable libmad support by opening 'backends/platform/ds/arm9/makefile' and commenting out the line which says USE_MAD = 1.

To sum it up, you need to install at least the following:

Compiling ScummVM

To build ScummVM DS from source, it's probably better to checkout the latest version of the code from the ScummVM SVN repository. The ScummVM Sourceforge.net homepage has all the information about how to do this.

Enter the backends/platform/ds folder and type:

<syntax type="bash"> make SCUMM_BUILD=a </syntax> The executable nds file will build inside backends/platform/ds/arm9/SCUMMVM-A.

For other builds, substitute the letters b to g in the above line.

To build everything, type:

<syntax type="bash"> make allbuildssafe </syntax>


Further reading