Difference between revisions of "Compiling ScummVM/AmigaOS4"

Jump to navigation Jump to search
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:


== Libraries ==
* Download the latest AmigaOS4 SDK from [http://hyperion-entertainment.biz/index.php/downloads?view=files&parent=30 here].
* If newer versions of libraries are available, they can also be retrieved from [http://os4depot.net/index.php?function=browse&cat=development/library here].
* Make sure you have SDL(1/2) installed (where SDL2 should be preferred).
* You may also need libvorbisfile, libvorbis, libFLAC, libogg, libmad, libtheoradec, libfaad, libmpeg2, liba52, libfreetype, libGL and/or libogles2.


== Compiling ==
== Prerequisite ==
* Download and install AmigaOS4 SDK from [http://hyperion-entertainment.biz/index.php/downloads?view=files&parent=30 Hyperion-Entertainment].
* Download and install SDL(1/2) (where SDL2 should always be preferred) SDK from [https://github.com/AmigaPorts/SDL/releases GitHub].
* You may also need libvorbisfile, libvorbis, libFLAC, libogg, libmad, libtheoradec, libfaad, libmpeg2, liba52, libfreetype, libGL and/or libogles2. They can be retrieved from [http://os4depot.net/index.php?function=browse&cat=development/library OS4Depot.net].
 
 
== Configuring ==
Run the configure script.
Run the configure script.
If no errors come up, you should be ready to compile ScummvM.
* type
* type
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 16: Line 19:
</syntaxhighlight>
</syntaxhighlight>
in the directory with the ScummVM source files.
in the directory with the ScummVM source files.
If no errors come up, you should be ready to compile ScummvM.
* or run
* run
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sh ./configure --help
sh ./configure --help
</syntaxhighlight>
</syntaxhighlight>
for a list of optional features (eg additional, not yet enabled engines).
for a list of optional features (e.g. additional, not yet enabled engines).
 
 
Note:
If you are building ScummVM on a system with low main memory (for example, lower than 256MB), you might run out of memory during linking. If you use GNU ld for compiling you can try exporting LDFLAGS="-Wl,--no-keep-memory" before running configure. This tells GNU ld to optimize for memory usage.
 
 
== Compiling ==
* type
<syntaxhighlight lang="bash">
gmake clean
</syntaxhighlight>
in the directory ScummVM was configured and then
<syntaxhighlight lang="bash">
gmake
</syntaxhighlight>




Note:
== Cross-compiling with Cygwin ==
If you are building ScummVM on a system with low main memory (for example, lower than 256MB), you might run out of memory during linking. If you use GNU ld for compiling you can try exporting LDFLAGS="-Wl,--no-keep-memory" before running configure. This tells GNU ld to optimize for memory usage.
* Make sure that you have SDL(1/2) SDK installed (where SDL2 should always be preferred).
* You may also need libogg, libvorbis, libvorbisfile, zlib, libmad.
* Type
<syntaxhighlight lang="bash">
./configure --host=ppc-amigaos
</syntaxhighlight>
 
 
Note:
If you get an error about sdl-config, use --with-sdl-prefix parameter to set the path.
 
 
* type
<syntaxhighlight lang="bash">
make
</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 ./configure --host=ppc-amigaos
* If you got an error about sdl-config, use --with-sdl-prefix parameter to set the path.
* Run 'make'.


== Installing ==
== Installing ==
Copy the exe wherever you want (an intitial - empty - .ini file will be created on the first run).
Copy the exe wherever you want (an intitial - engine-free - .ini file will be created on the first run).
 


== Running ==
== Running ==
Double-click the  "ScummVM" icon to start the program.
Double-click the  "ScummVM" icon to start the program.
276

edits

Navigation menu