Problem installing on Linux. What am I doing wrong ?

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
DSpider
Posts: 7
Joined: Tue Sep 16, 2008 9:49 pm

Problem installing on Linux. What am I doing wrong ?

Post by DSpider »

Code: Select all

dspider@linux:~/src/scummvm-0.12.0$ ./configure
Running ScummVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.2.3, ok
Checking endianness... little
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Running on x86... yes
Checking hosttype... linux-gnu
Alignment required... no
Checking whether building plugins was requested... no
Checking for Ogg Vorbis... no
Checking for Tremor... no
Checking for FLAC >= 1.0.1... no
Checking for MAD... no
Checking for ALSA >= 0.9... no
Checking for zlib... yes
Checking for libmpeg2 >= 0.3.2... no
Checking for libfluidsynth... no
Checking for nasm... /usr/bin/nasm

Engines (builtin):
    SCUMM [all games]
    AGI
    AGOS
    Cinematique evo 1
    Drascula: The Vampire Strikes Back
    Gobli*ns
    Legend of Kyrandia
    Lure of the Temptress
    Parallaction
    Flight of the Amazon Queen
    SAGA
    Beneath a Steel Sky
    Broken Sword 1 (without mpeg2 cutscenes)
    Broken Sword 2 (without mpeg2 cutscenes)
    Touche: The Adventures of the Fifth Musketeer

Engines Skipped:
    Cinematique evo 2
    Igor: Objective Uikokahonia
    M4/MADS
    MADE

Backend... sdl, assembly routines, HQ scalers, MT-32 emu
Looking for sdl-config... none found!
dspider@linux:~/src/scummvm-0.12.0$ 
I've been trying to install ScummVM for about 2 hours now... scummvm-0.12.0.tar.bz2 and scummvm-0.12.0.tar.gz give the same error.

The wiki says I'm supposed to run ./configure, make and ./scummvm but it gives off a few errors at the ./configure part...

I did a "sudo apt-get install nasm" and it says Checking for nasm... /usr/bin/nasm somewhere in there. But what about:

"Alignment required... no
Checking whether building plugins was requested... no
Checking for Ogg Vorbis... no
Checking for Tremor... no
Checking for FLAC >= 1.0.1... no
Checking for MAD... no
Checking for ALSA >= 0.9... no
Checking for zlib... yes
Checking for libmpeg2 >= 0.3.2... no
Checking for libfluidsynth... no" ??


Please help. Thank you.



PS: I'm using Linux Mint 5 "Elyssa" (a bastard child of Ubuntu).
clem
Posts: 2159
Joined: Mon Oct 31, 2005 11:14 am

Re: Problem installing on Linux. What am I doing wrong ?

Post by clem »

DSpider wrote: "Alignment required... no
Checking whether building plugins was requested... no
Checking for Ogg Vorbis... no
Checking for Tremor... no
Checking for FLAC >= 1.0.1... no
Checking for MAD... no
Checking for ALSA >= 0.9... no
Checking for zlib... yes
Checking for libmpeg2 >= 0.3.2... no
Checking for libfluidsynth... no" ??
Alignment required: can be ignored, afaik this is meant for some platforms where memory needs to be aligned to be read correctly

plugin building: doesn't matter; afaik dynamic plugin loading doesn't work yet anyhow

ogg/tremor/flac/mad: support for compressed datafiles; if you compile ScummVM without it it should work

ALSA: I think you'll need that if you want to get sound output under linux

libfluidsynth: related to midi output; not sure if that is really needed

the real showstopper seems to be:
Looking for sdl-config... none found!
User avatar
DrMcCoy
ScummVM Developer
Posts: 595
Joined: Sat Dec 17, 2005 1:33 pm
Location: Braunschweig, Germany
Contact:

Re: Problem installing on Linux. What am I doing wrong ?

Post by DrMcCoy »

DSpider wrote:"Alignment required... no
That just means your CPU/system doesn't need alignment. No error, only CPU characteristics checking.
DSpider wrote:Checking whether building plugins was requested... no
Also no error, only shows that you didn't request building the engines as plugins, instead of compiling them into the binary directly. An optional feature.
DSpider wrote:Checking for Ogg Vorbis... no
Checking for Tremor... no
Checking for FLAC >= 1.0.1... no
Checking for MAD... no
Checking for ALSA >= 0.9... no
Checking for libmpeg2 >= 0.3.2... no
Checking for libfluidsynth... no"
These mean that you're missing libraries and/or includes for Ogg Vorbis (audio coded), Tremor (another Vorbis implementation using fixed point arithmetic. Mutually exclusive with the "normal" Vorbis library, I think), FLAC (a lossless audio codec), MAD (an MP3-decoder library), ALSA (a Linux sound system, used in ScummVM for direct MIDI), libmpeg2 (a MPEG-decoder library, used for the (older) .mpg video sequences of Broken Sword 1 and 2, using the .dxa ones instead is recommended instead) and libfluidsynth (a library for software MIDI synthesis).
If you want to use them, you need to install them and their includes (often in a corresponding -dev or -devel paket) using your distributions paket manager.

Normally, you'll want at least one of Ogg Vorbis, FLAC and MAD, depending on whether you want to compress your games to .ogg, .flac or .mp3 files.
Tremor is only needed to low-power mobile devices that have problems coping with floating point arithmetics.
The ALSA pakages you'll only need if your soundcard can do hardware MIDI, it's supported by the ALSA drivers and you want to use that instead of ScummVM's approximation using AdLib synthesis.
libmpeg2 you'll need if you want to watch the MPEG files of the Broken Sword intros, instead of the better-looking, but larger in file size DXA ones.
libfluidsynth you'll need if you want MIDI to be redirected to the external fluidsynth synthesizer. It may sound better than AdLib, though it vastly depends on which SoundFont you use (and finding a decent and free one is rather hard).


EDIT:
As clemmy said, the real error is that you're missing the SDL library and/or includes packet. Look for packages beginning with "libsdl" in your distributions' packet manager.
DSpider
Posts: 7
Joined: Tue Sep 16, 2008 9:49 pm

Post by DSpider »

I've always depended on mplayer and VLC for AV decoding. When it comes to installing codecs on Linux... I'm stomped.

Do I need to install these codecs and specify some sort of path for each and every single one ? Hmmmm... If I were to run ./configure --help I would get:

Code: Select all

[...]
Optional Libraries:
  --with-alsa-prefix=DIR   Prefix where alsa is installed (optional)
  --disable-alsa           disable ALSA midi sound support [autodetect]

  --with-ogg-prefix=DIR    Prefix where libogg is installed (optional)
  --with-vorbis-prefix=DIR Prefix where libvorbis is installed (optional)
  --disable-vorbis         disable Ogg Vorbis support [autodetect]

  --with-tremor-prefix=DIR Prefix where tremor is installed (optional)
  --disable-tremor         disable tremor support [autodetect]

  --with-mad-prefix=DIR    Prefix where libmad is installed (optional)
  --disable-mad            disable libmad (MP3) support [autodetect]

  --with-flac-prefix=DIR   Prefix where libFLAC is installed (optional)
  --disable-flac           disable FLAC support [autodetect]

  --with-zlib-prefix=DIR   Prefix where zlib is installed (optional)
  --disable-zlib           disable zlib (compression) support [autodetect]

  --with-mpeg2-prefix=DIR  Prefix where libmpeg2 is installed (optional)
  --disable-mpeg2          disable mpeg2 codec for cutscenes [autodetect]

  --with-fluidsynth-prefix=DIR  Prefix where libfluidsynth is installed (optional)
  --disable-fluidsynth     disable fluidsynth MIDI driver [autodetect]

  --with-sdl-prefix=DIR    Prefix where the sdl-config script is installed (optional)

  --with-nasm-prefix=DIR   Prefix where nasm executable is installed (optional)
  --disable-nasm           disable assembly language optimizations [autodetect]
[...]
So now I just need to fire up the Synaptic Package Manager (I wonder if it'll work with apt-get or aptitude) and to go fishing for libogg-dev, libvorbis-dev, libmad-dev, libFLAC-dev and what else ? libmpeg2-dev and libfluidsynth/libfluidsynth-dev ? That is assuming they're all there...

nasm is covered but what about sdl-config ?? Hmmm... I'll try again tommorrow. I'll post back in 8 hours or so... It's pretty late and I'm tired. Thanks for all the explaining...


Btw, I didn't get an email when replies were posted even tho I checked the "Notify me when a reply is posted" checkbox. Must be a problem with the forum.



EDIT:

I figured what the heck. Another 15 minutes won't kill my liver (right ???) so I went fishing. Now it looks something like this:

dspider@linux:~/src/scummvm-0.12.0$ ./configure
Running ScummVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.2.3, ok
Checking endianness... little
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Running on x86... yes
Checking hosttype... linux-gnu
Alignment required... no
Checking whether building plugins was requested... no
Checking for Ogg Vorbis... yes
Checking for Tremor... no (Ogg Vorbis/Tremor support is mutually exclusive)
Checking for FLAC >= 1.0.1... yes
Checking for MAD... yes
Checking for ALSA >= 0.9... yes
Checking for zlib... yes
Checking for libmpeg2 >= 0.3.2... yes
Checking for libfluidsynth... yes
Checking for nasm... /usr/bin/nasm

Engines (builtin):
SCUMM [all games]
AGI
AGOS
Cinematique evo 1
Drascula: The Vampire Strikes Back
Gobli*ns
Legend of Kyrandia
Lure of the Temptress
Parallaction
Flight of the Amazon Queen
SAGA
Beneath a Steel Sky
Broken Sword 1 (w/ mpeg2 cutscenes)
Broken Sword 2 (w/ mpeg2 cutscenes)
Touche: The Adventures of the Fifth Musketeer

Engines Skipped:
Cinematique evo 2
Igor: Objective Uikokahonia
M4/MADS
MADE

Backend... sdl, assembly routines, HQ scalers, MT-32 emu
Looking for sdl-config... none found!
dspider@linux:~/src/scummvm-0.12.0$
What gives ? :(
User avatar
DrMcCoy
ScummVM Developer
Posts: 595
Joined: Sat Dec 17, 2005 1:33 pm
Location: Braunschweig, Germany
Contact:

Post by DrMcCoy »

DSpider wrote:I've always depended on mplayer and VLC for AV decoding. When it comes to installing codecs on Linux...
Different thing. Also, MPlayer uses libraries, too. For the most common, the ffmpeg libraries are normally compiled in, though.
DSpider wrote:Do I need to install these codecs and specify some sort of path for each and every single one ?
No, after installation, ScummVM's configure script should be able to figure their location out by itself.

The path-options for the configure scripts are used when you've installed them into a non-standard place.
DSpider wrote:nasm is covered but what about sdl-config ??
[...]
Looking for sdl-config... none found!
What gives ? :(
DrMcCoy wrote:As clemmy said, the real error is that you're missing the SDL library and/or includes packet. Look for packages beginning with "libsdl" in your distributions' packet manager.
:P

Here, on Debian Sid, I've got libsdl1.2-dev and libsdl1.2debian-all installed. Instead of libsdl1.2debian-all, I could also install, for example libsdl1.2debian-alsa and libsdl1.2debian-oss (these two and -all are mutually exclusive), giving only support for ALSA and OSS, respectively. With -all, I get all support for all available audio ouput and SDL tries to find the best one when a SDL application is started.
DSpider
Posts: 7
Joined: Tue Sep 16, 2008 9:49 pm

Post by DSpider »

If I mark libsdl1.2debian-all or libsdl1.2debian-oss for installation, it says it's going to remove support for libsdl1.2debian-alsa... Isn't alsa important ? I remember running alsa-config the second I installed the operating system. Hmmm... And if I mark libsdl1.2debian-oss for installation, libsdl1.2debian-all gets unmarked. It's either one or the other.


I think I'll stick to libsdl1.2debian-all and libsdl1.2-dev and see what will happen. Thanks.


EDIT:

Yup. It worked ! Successfully compiled and installed. Thank you kindly for all the suggestions. :) That's why I love Linux (dependencies piss me off though). Now I just need to find the "modern" theme. Where can I find it ?

EDIT2: Oops. Just needed to browse to /home/dspider/src/scummvm-0.12.0/gui/themes. Sorry. :P

And thanks again.
User avatar
DrMcCoy
ScummVM Developer
Posts: 595
Joined: Sat Dec 17, 2005 1:33 pm
Location: Braunschweig, Germany
Contact:

Post by DrMcCoy »

DSpider wrote:If I mark libsdl1.2debian-all or libsdl1.2debian-oss for installation, it says it's going to remove support for libsdl1.2debian-alsa... Isn't alsa important ? I remember running alsa-config the second I installed the operating system. Hmmm... And if I mark libsdl1.2debian-oss for installation, libsdl1.2debian-all gets unmarked. It's either one or the other.
As I said, libsdl1.2debian-all, libsdl1.2debian-alsa and libsdl1.2debian-oss are mutually exclusive. -alsa provides sound support through ALSA, -oss through OSS (which, when you've got your soundcard running through ALSA can be emulated) and -all supports both method (+ some others, like running through the sound daemon ESD, which itself puts it through ALSA or OSS).
Post Reply