Difference between revisions of "Compiling ScummVM/AmigaOS4"

From ScummVM :: Wiki
Jump to navigation Jump to search
m (Text replacement - "</source>" to "</syntaxhighlight>")
m (Final version)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Compiling ScummVM for AmigaOS4 =
= Compiling ScummVM for AmigaOS4 =


For building ScummVM on AmigaOS4, use the [[Compiling ScummVM/GCC|Linux/GCC]] build instructions, with the following alterations:
For building ScummVM on AmigaOS4, use the following build instructions:
== Prerequisite ==


== Libraries ==
 
* Download the AmigaOS4 SDK from [ftp://ftp.hyperion-entertainment.biz/SDK/ here] or [http://hyperion-entertainment.biz/index.php/downloads?view=files&parent=30 here].
Download and install the latest AmigaOS4 SDK from [http://hyperion-entertainment.biz/index.php/downloads?view=files&parent=30 Hyperion-Entertainment].
* If newer versions of libraries are available, they can be downloaded from [http://os4depot.net/ here].
 
* Make sure that you have SDL installed, you may also need libogg, libvorbis, libvorbisfile, libFLAC, libtheoradec, libfaad, libmpeg2, libfreetype, libmad and libGL.
Download and install SDL(1 or 2) (where SDL2 should always be preferred) SDK from [https://github.com/AmigaPorts/SDL/releases GitHub]
 
 
You may also need to install
*libogg
*libvorbisfile
*libvorbis
*libFLAC
*libmad
*libtheoradec
*libfaad
*libmpeg2
*liba52
*libfreetype
*libGL (and optional libogles2)
 
and maybe more, as more dependancies are added.
 
Download them from [http://os4depot.net/index.php?function=browse&cat=development/library OS4Depot.net].
== Configuring ==
 
 
Run the configure script.
 
type
<syntaxhighlight>
sh ./configure --enable-plugins --disable-detection-full --enable-release
 
 
Instead of
--enable-release
you can use
--enable-debug
to add debug flags.
 
 
While
--enable--plugins
is the command to build a shared objects version of ScummVM.
If you must (see comment further down below), use
--enable-static
to build the static version.
</syntaxhighlight>for a list of configure options, additional features etc. (e.g. not yet enabled/unstable engines),
 
use<syntaxhighlight lang="bash">
sh ./configure --help
</syntaxhighlight>If no errors came up, you are ready to compile ScummvM.


== Compiling ==
== Compiling ==
To configure, run in a shell:


<syntaxhighlight lang="bash">
 
sh
<syntaxhighlight>
./configure
Note on static builds:
gmake
 
If you are trying to build ScummVM statically linked (all-in-one binary) your system memory will likely run out during the linking process.
The currently available AmigaOS4 NG systems are limited to 2 GB of RAM (where the limit actually stops at roughly 1550 MB) on the OS level (this may change in the future, but right now i would advise against a natively build static binary.
Cross-compiled static builds are still available throught the ScummVM buildbot at https://buildbot.scummvm.org/#/, albeit not with all available features).
</syntaxhighlight>
</syntaxhighlight>


== Cross-compiling ScummVM for the AmigaOS with Cygwin ==
 
* Make sure that you have SDL installed, you may also need libogg, libvorbis, libvorbisfile, zlib, libmad.
type<syntaxhighlight>
* Type ./configure --host=ppc-amigaos
gmake clean
* If you got an error about sdl-config, use --with-sdl-prefix parameter to set the path.
</syntaxhighlight>
* Run 'make'.
in the directory ScummVM was configured and then
<syntaxhighlight>
gmake amigaosdist
</syntaxhighlight>
 
This will automatically install the ready binary with all needed dependancies into a subdirectory named "install/".
 
This directory can then be copied anywhere and used.


== Installing ==
== Installing ==
Copy the exe wherever you want (an intitial - empty - .ini file will be created on the first run).
 
Copy (and rename, if needed) the final "install/" subdirectory wherever you want.


== Running ==
== Running ==
Double-click the  "ScummVM" icon to start the program.
Double-click the  "ScummVM" icon to start the program (if no .ini settings file is availbale, an initial one with default settings will be created during the first run)

Latest revision as of 20:07, 10 January 2024

Compiling ScummVM for AmigaOS4

For building ScummVM on AmigaOS4, use the following build instructions:

Prerequisite

Download and install the latest AmigaOS4 SDK from Hyperion-Entertainment.

Download and install SDL(1 or 2) (where SDL2 should always be preferred) SDK from GitHub


You may also need to install

  • libogg
  • libvorbisfile
  • libvorbis
  • libFLAC
  • libmad
  • libtheoradec
  • libfaad
  • libmpeg2
  • liba52
  • libfreetype
  • libGL (and optional libogles2)

and maybe more, as more dependancies are added.

Download them from OS4Depot.net.

Configuring

Run the configure script.

type

sh ./configure --enable-plugins --disable-detection-full --enable-release


Instead of
--enable-release
you can use
--enable-debug
to add debug flags.


While
--enable--plugins
is the command to build a shared objects version of ScummVM.
If you must (see comment further down below), use
--enable-static
to build the static version.

for a list of configure options, additional features etc. (e.g. not yet enabled/unstable engines), use

sh ./configure --help

If no errors came up, you are ready to compile ScummvM.

Compiling

Note on static builds:

If you are trying to build ScummVM statically linked (all-in-one binary) your system memory will likely run out during the linking process.
The currently available AmigaOS4 NG systems are limited to 2 GB of RAM (where the limit actually stops at roughly 1550 MB) on the OS level (this may change in the future, but right now i would advise against a natively build static binary.
Cross-compiled static builds are still available throught the ScummVM buildbot at https://buildbot.scummvm.org/#/, albeit not with all available features).


type

gmake clean

in the directory ScummVM was configured and then

gmake amigaosdist

This will automatically install the ready binary with all needed dependancies into a subdirectory named "install/".

This directory can then be copied anywhere and used.

Installing

Copy (and rename, if needed) the final "install/" subdirectory wherever you want.

Running

Double-click the "ScummVM" icon to start the program (if no .ini settings file is availbale, an initial one with default settings will be created during the first run)