Difference between revisions of "Compiling ScummVM/BeOS/ZETA/Haiku"

From ScummVM :: Wiki
Jump to navigation Jump to search
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Compiling ScummVM with GCC under [http://en.wikipedia.org/wiki/BeOS BeOS] ==
== Compiling ScummVM with GCC under [http://en.wikipedia.org/wiki/BeOS BeOS] ==


As scummvm is relying on a BONE version you need the BONE network stack ([http://en.wikipedia.org/wiki/Magnussoft_ZETA ZETA] and [http://en.wikipedia.org/wiki/Haiku_%28operating_system%29 Haiku]) version for [http://en.wikipedia.org/wiki/BeOS BeOS] to compile (needs libbind and libsocket).
As ScummVM is relying on a BONE version you need the BONE network stack ([http://en.wikipedia.org/wiki/Magnussoft_ZETA ZETA] and [http://en.wikipedia.org/wiki/Haiku_%28operating_system%29 Haiku]) version for [http://en.wikipedia.org/wiki/BeOS BeOS] to compile (needs libbind and libsocket).
 
For Haiku there is already a version available in the HaikuDepot, latest versions can be build with haikuporter out of the box, a recipe for version 1.8.1 is at this moment in waiting line to get approved into the haikuports repo at github. For instructions how to install haikuporter/haikuports look at [https://github.com/haikuports/haikuports/wiki Haikuports], Haiku comes with a recent gcc5 version that is able to build ScummVM out of the box.


== Getting the source ==
== Getting the source ==
* Open a Terminal and type:
* Open a Terminal and type:


''svn co https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk scummvm''
<pre>git clone git://github.com/scummvm/scummvm.git</pre>


== Tools/libraries needed ==
== Tools/libraries needed ==
===Mandatory (these should also install dependencies)===
''Mandatory (these should also install dependencies)''
* [http://www.bebits.com/app/4011 gcc-2.95.3]  
* [http://www.bebits.com/app/4011 gcc-2.95.3]  
* [http://www.libsdl.org/ SDL]
* [http://www.libsdl.org/ SDL]
* [http://www.zlib.net/ zlib]


===Optional===
''Optional''
* [http://flac.sourceforge.net/ flac] (Free Lossless Audio Codec, needed if you want to play compressed games without quality loss)  
* [http://flac.sourceforge.net/ flac] (Free Lossless Audio Codec, needed if you want to play compressed games without quality loss)  
* [http://www.underbit.com/products/mad/ libmad] (MPEG Audio Decoder, needed if you want to play MP3-compressed games)
* [http://www.underbit.com/products/mad/ libmad] (MPEG Audio Decoder, needed if you want to play MP3-compressed games)
* [http://www.xiph.org/downloads/ libOGG and libVorbis] (OGG Vorbis decoder, needed if you want to play OGG-Vorbis-compressed games)
* [http://www.xiph.org/downloads/ libOGG and libVorbis] (OGG Vorbis decoder, needed if you want to play OGG-Vorbis-compressed games)
* [http://libmpeg2.sourceforge.net/ libMPEG2] (.mpg video decoder, needed for the re-encoded cutscenes in Broken Sword 1/2)
* [http://libmpeg2.sourceforge.net/ libMPEG2] (.mpg video decoder, needed for the re-encoded cutscenes in Broken Sword 1/2)
* [http://nasm.sourceforge.net/ nasm] (The Netwide Assembler, used for HQx scalers)


== Configuring ScummVM ==
== Configuring ScummVM ==

Revision as of 13:55, 10 July 2016

Compiling ScummVM with GCC under BeOS

As ScummVM is relying on a BONE version you need the BONE network stack (ZETA and Haiku) version for BeOS to compile (needs libbind and libsocket).

For Haiku there is already a version available in the HaikuDepot, latest versions can be build with haikuporter out of the box, a recipe for version 1.8.1 is at this moment in waiting line to get approved into the haikuports repo at github. For instructions how to install haikuporter/haikuports look at Haikuports, Haiku comes with a recent gcc5 version that is able to build ScummVM out of the box.

Getting the source

  • Open a Terminal and type:
git clone git://github.com/scummvm/scummvm.git

Tools/libraries needed

Mandatory (these should also install dependencies)

Optional

  • flac (Free Lossless Audio Codec, needed if you want to play compressed games without quality loss)
  • libmad (MPEG Audio Decoder, needed if you want to play MP3-compressed games)
  • libOGG and libVorbis (OGG Vorbis decoder, needed if you want to play OGG-Vorbis-compressed games)
  • libMPEG2 (.mpg video decoder, needed for the re-encoded cutscenes in Broken Sword 1/2)
  • nasm (The Netwide Assembler, used for HQx scalers)

Configuring ScummVM

Open Terminal and run configure with these options:

LDFLAGS=-L<path to where you have the libs/headers installed> ./configure --prefix=<path to where you want to install> --with-nasm-prefix=<path to nasm>

Compiling ScummVM

run make

Installing ScummVM

Run make install to install ScummVM (you can then run it using "scummvm" from any directory), if you are using a different directory scummvm will probably revert to the classic view due to not finding the gui theme in the subfolder but will nevertheless work ok.