Difference between revisions of "Compiling ScummVM/Maemo"

Jump to navigation Jump to search
Wrap all the console commands inside source tags
(Wrap all the console commands inside source tags)
Line 19: Line 19:


Then run the following commands to install the SDK:
Then run the following commands to install the SDK:
sudo apt-get update
<source lang="bash">
sudo apt-get install maemo-sdk
sudo apt-get update
sudo apt-get install maemo-sdk
</source>


Then run the following commands to build/install the tools and compilers:
Then run the following commands to build/install the tools and compilers:


maemo-sdk reload catalogue
<source lang="bash">
sudo maemo-sdk --mirror <nowiki>"http://archive.debian.org/debian/"</nowiki> install tools lenny-2009-1
maemo-sdk reload catalogue
sudo maemo-sdk install toolchain arm-2007q3
sudo maemo-sdk --mirror <nowiki>"http://archive.debian.org/debian/"</nowiki> install tools lenny-2009-1
maemo-sdk install rootstrap diablo4.1.2_armel
sudo maemo-sdk install toolchain arm-2007q3
maemo-sdk install rootstrap diablo4.1.2_armel
</source>


== Install dependencies inside the SDK environment ==
== Install dependencies inside the SDK environment ==
Line 36: Line 40:
and then install the dependencies:
and then install the dependencies:


sb2 -eR apt-get update
<source lang="bash">
sb2 -eR apt-get install libflac-dev libmad0-dev libmpeg2-4-dev libvorbisidec-dev
sb2 -eR apt-get update
sb2 -eR apt-get install libflac-dev libmad0-dev libmpeg2-4-dev libvorbisidec-dev
</source>


== Optional: Install git inside SDK environment ==
== Optional: Install git inside SDK environment ==
Line 47: Line 53:
Install it by running:
Install it by running:


  sb2 -eR dpkg -i git_1.6.2-1_armel.deb
<source lang="bash">
sb2 -eR dpkg -i git_1.6.2-1_armel.deb
</source>


== Optional: Install libfaad-dev inside SDK environment ==
== Optional: Install libfaad-dev inside SDK environment ==
Line 57: Line 65:
Install them by running:
Install them by running:


  sb2 -eR dpkg -i libfaad*.deb
<source lang="bash">
sb2 -eR dpkg -i libfaad*.deb
</source>


Delete the libfaad.so from the SDK environment so that it statically links to libfaad.a instead of dynamically linking to libfaad.so (This version of libfaad.so isn't available in maemo-extra and is thus unavailable to maemo-users)
Delete the libfaad.so from the SDK environment so that it statically links to libfaad.a instead of dynamically linking to libfaad.so (This version of libfaad.so isn't available in maemo-extra and is thus unavailable to maemo-users)


  rm ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/lib/libfaad.so*
<source lang="bash">
rm ~/.maemo-sdk/rootstraps/armel/diablo4.1.2_armel/usr/lib/libfaad.so*
</source>


== Ensure Packaging Files Are Available In Source Tree Root ==
== Ensure Packaging Files Are Available In Source Tree Root ==


This requires a symlink from backends/platform/maemo/debian to the root of the scummvm checkout:
This requires a symlink from backends/platform/maemo/debian to the root of the scummvm checkout:
ln -s backends/platform/maemo/debian  
<source lang="bash">
ln -s backends/platform/maemo/debian  
</source>


== Compile ==
== Compile ==
Line 74: Line 88:
=== Build Package ===
=== Build Package ===


sb2 dpkg-buildpackage -b
<source lang="bash">
sb2 dpkg-buildpackage -b
</source>


=== Compile (Without Building Package) ===
=== Compile (Without Building Package) ===


sb2 ./configure --host=maemo
<source lang="bash">
sb2 make
sb2 ./configure --host=maemo
sb2 make
</source>
1,489

edits

Navigation menu