Open main menu

Difference between revisions of "Compiling ScummVM/GCC"

1,083 bytes added ,  03:35, 21 February 2019
m
(Add the needed libraries for ScummVM, obtained via apt-get and yum)
(12 intermediate revisions by 6 users not shown)
Line 4: Line 4:
===Debian-based distributions===
===Debian-based distributions===
The following should install all the needed libraries:
The following should install all the needed libraries:
* apt-get install g++ make libsdl1.2-dev libjpeg-turbo8-dev libmpeg2-4-dev libogg-dev libvorbis-dev libflac-dev libmad0-dev libpng-dev libtheora-dev libfaad-dev libfluidsynth-dev libfreetype6-dev zlib1g-dev
<syntaxhighlight lang="bash">
apt-get install g++ make libsdl2-dev liba52-dev libjpeg62-turbo-dev libmpeg2-4-dev libogg-dev libvorbis-dev libflac-dev libmad0-dev libpng-dev libtheora-dev libfaad-dev libfluidsynth-dev libfreetype6-dev zlib1g-dev
</syntaxhighlight>
 
Some distributions, like Ubuntu, do not provide the turbo version of libjpeg. In this case, simply install <tt>libjpeg62-dev</tt> instead of <tt>libjpeg62-turbo-dev</tt>.


For Ubuntu, you can also obtain libunity:
For Ubuntu, you can also obtain libunity:
* apt-get install libunity-dev
<syntaxhighlight lang="bash">
apt-get install libunity-dev
</syntaxhighlight>


===RPM-based distributions===
===RPM-based distributions===
The following should install all the needed libraries (apart from fluidsynth):
The following should install all the needed libraries (apart from fluidsynth):
* yum install gcc-c++ make SDL-devel libjpeg-turbo-devel libmpeg2-devel libogg-devel libvorbis-devel flac-devel libmad-devel libpng-devel libtheora-devel faad2-devel freetype-devel zlib-devel
<syntaxhighlight lang="bash">
yum install gcc-c++ make SDL-devel libjpeg-turbo-devel libmpeg2-devel libogg-devel libvorbis-devel flac-devel libmad-devel libpng-devel libtheora-devel faad2-devel freetype-devel zlib-devel
</syntaxhighlight>
 
===Arch Linux-based distributions===
The following command installs the compiler toolchain and all the needed libraries:
<syntaxhighlight lang="bash">
pacman -S --needed base-devel git curl faad2 freetype2 flac fluidsynth libjpeg-turbo libogg libvorbis libmad libmpeg2 libtheora libpng nasm readline sdl2 sdl2_net zlib
</syntaxhighlight>
 
Per default, some Arch based distributions like Manjaro and Antergos require the usage of "sudo" to gain root access.


== Configuring ScummVM ==
== Configuring ScummVM ==
Run the configure script - type "./configure" in the directory with the ScummVM source files. If no errors come up, you should be ready to compile ScummvM. Run "./configure --help" for a list of optional features (eg additional, not yet enabled engines).
Run the configure script - type "./configure" in the directory with the ScummVM source files. If no errors come up, you should be ready to compile ScummvM. Run "./configure --help" for a list of optional features (eg 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 ScummVM ==
== Compiling ScummVM ==
Line 23: Line 41:


== Further reading ==
== Further reading ==
* [http://svn.sourceforge.net/viewcvs.py/*checkout*/scummvm/scummvm/trunk/README ScummVM README, Section 9.0]
* [https://github.com/scummvm/scummvm/blob/master/README.md#100-compiling ScummVM README, Section 10.0]