Difference between revisions of "Compiling ScummVM/GCC"

From ScummVM :: Wiki
Jump to navigation Jump to search
m (Debian-based distributions: libjpeg-turbo8-dev is gone)
(Use the source tag for bash commands)
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 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
+
<source lang="bash">
 +
apt-get install g++ make libsdl1.2-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
 +
</source>
  
 
For Ubuntu, you can also obtain libunity:
 
For Ubuntu, you can also obtain libunity:
* apt-get install libunity-dev
+
<source lang="bash">
 +
apt-get install libunity-dev
 +
</source>
  
 
===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
+
<source 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
 +
</source>
  
 
== Configuring ScummVM ==
 
== Configuring ScummVM ==

Revision as of 23:15, 23 December 2015

Compiling ScummVM with GCC under Linux

Installing the needed libraries via a package manager

Debian-based distributions

The following should install all the needed libraries:

apt-get install g++ make libsdl1.2-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

For Ubuntu, you can also obtain libunity:

apt-get install libunity-dev

RPM-based distributions

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

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).

Compiling ScummVM

run "make clean" and then "make"

Installing ScummVM

either run ./scummvm from the current directory or run make install to install ScummVM (you can then run it using "scummvm" from any directory)

Further reading