Difference between revisions of "Compiling ScummVM/GCC"

Jump to navigation Jump to search
Add instructions for building on FreeBSD
(Add instructions for building on FreeBSD)
Line 1: Line 1:
== Compiling ScummVM with GCC under Linux ==
== Compiling ScummVM with GCC under Linux or FreeBSD ==


==Installing the needed libraries via a package manager==
==Installing the needed libraries via a package manager==
Line 41: Line 41:


Per default, some Arch based distributions like Manjaro and Antergos require the usage of "sudo" to gain root access.
Per default, some Arch based distributions like Manjaro and Antergos require the usage of "sudo" to gain root access.
===FreeBSD-based distributions===
The following should install all the needed libraries:
<syntaxhighlight lang="bash">
pkg install git gmake pkgconf sdl2 faad2 freetype2 libogg libvorbis libiconv libmpeg2 libtheora libmad png flac fluidsynth sndio liba52 fribidi jpeg-turbo
</syntaxhighlight>
For cloud and lan features you also need the SDL2_net and curl libraries:
<syntaxhighlight lang="bash">
pkg install sdl2_net curl
</syntaxhighlight>
You can also obtain libgtk (to use the gtk file browser), and speech-dispatcher (for text to speech):
<syntaxhighlight lang="bash">
pkg install gtk3 speech-dispatcher
</syntaxhighlight>


== Configuring ScummVM ==
== Configuring ScummVM ==
Line 69: Line 85:
</syntaxhighlight >
</syntaxhighlight >
A good number is to use the number of your CPU cores, including virtual ones, +2. Typical Intel Core i7 has 8 CPU cores.
A good number is to use the number of your CPU cores, including virtual ones, +2. Typical Intel Core i7 has 8 CPU cores.
On BSD systems, it is necessary to use GNU make, since BSD make will not work with ScummVM. Instead, run:
<syntaxhighlight lang="bash">
gmake clean
gmake
</syntaxhighlight >


== Installing ScummVM ==
== Installing ScummVM ==
271

edits

Navigation menu