Problems with compiling under SuSe 10.0

Discussion about other and unofficial ports of ScummVM

Moderator: ScummVM Team

Post Reply
Typhon
Posts: 3
Joined: Sat Jan 28, 2006 1:29 pm

Problems with compiling under SuSe 10.0

Post by Typhon »

Hi! First off: Yes, I am a Noob in Linux, but nevertheless I'm trying to compile ScummVM for it. I already succeeded in compiling SDL, OGG-Vorbis and NASM.

./configure tells me this:

Code: Select all

Running ScummVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.0.2, ok
Checking hosttype... linux-gnu
Checking endianness... little
Running on x86... yes
Alignment required... no
Type with 1 byte... char
Type with 2 bytes... short
Type with 4 bytes... int
Checking for Plugin support... no
Checking for Ogg Vorbis... yes
Checking for Tremor... no (Ogg Vorbis/Tr.emor support is mutually exclusive)
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:
    SCUMM [v7 & v8 games] [HE70+ games]
    Simon the Sorcerer
    Beneath a Steel Sky
    Broken Sword 1  (without mpeg2 cutscenes)
    Broken Sword 2 (without mpeg2 cutscenes)
    Flight of the Amazon Queen
    SAGA
    Gobli*ns

Backend... sdl, assembly routines, HQ scalers, MT-32 emu
Looking for sdl-config... /usr/bin/sdl-config

Creating config.h
Creating config.mak
When I call make it seems to work for a while but then it spits out a lot of "undefined reference" messages and finally quits. I just give you the last few lines, as ist would be to long if I posted everything:

Code: Select all

/usr/lib/libSDL.a(Xinerama.o): In function `SDL_XPanoramiXGetScreenSize':
Xinerama.c:(.text+0x5bb): undefined reference to `_XReply'
Xinerama.c:(.text+0x5fe): undefined reference to `XMissingExtension'
Xinerama.c:(.text+0x658): undefined reference to `_XFlush'
/usr/lib/libSDL.a(Xinerama.o): In function `SDL_XineramaIsActive':
Xinerama.c:(.text+0x78b): undefined reference to `_XReply'
Xinerama.c:(.text+0x804): undefined reference to `_XFlush'
/usr/lib/libSDL.a(Xinerama.o): In function `SDL_XineramaQueryScreens':
Xinerama.c:(.text+0x8ad): undefined reference to `_XReply'
Xinerama.c:(.text+0x8ee): undefined reference to `XMissingExtension'
Xinerama.c:(.text+0x914): undefined reference to `_XFlush'
Xinerama.c:(.text+0x981): undefined reference to `_XRead'
Xinerama.c:(.text+0x9f8): undefined reference to `_XEatData'
/usr/lib/libSDL.a(SDL_dgaevents.o): In function `.L20':
SDL_dgaevents.c:(.text+0x5b): undefined reference to `XNextEvent'
/usr/lib/libSDL.a(SDL_fbevents.o): In function `FB_OpenMouse':
SDL_fbevents.c:(.text+0x1088): undefined reference to `__ctype_b'
/usr/lib/libSDL.a(SDL_fbelo.o): In function `eloSendQuery':
SDL_fbelo.c:(.text+0x517): undefined reference to `__ctype_toupper'
/usr/lib/libSDL.a(SDL_fbelo.o): In function `eloInitController':
SDL_fbelo.c:(.text+0x701): undefined reference to `__ctype_tolower'
collect2: ld returned 1 exit status
make: *** [scummvm] Fehler 1
What can that be? Please help me.
clem
Posts: 2159
Joined: Mon Oct 31, 2005 11:14 am

Post by clem »

I'm a half-n00b myself, but that looks as if something is wrong with the SDL lib - you said you compiled SDL yourself, maybe something went wrong there? (I think I downloaded precompiled SDL and compiling ScummVM works like a charm here)

clem
wjp
ScummVM Developer
Posts: 15
Joined: Sat Jan 28, 2006 7:23 pm

Post by wjp »

It looks like for some reason you're linking against a static version of libSDL (libSDL.a) instead of a dynamic one (libSDL.so). Did you disable the shared version of libSDL while building or installing it?

If you really meant to link against a static libSDL, your sdl-config might not be returning the right libraries for static linking.

Why not just use a precompiled SDL, by the way?
Typhon
Posts: 3
Joined: Sat Jan 28, 2006 1:29 pm

Post by Typhon »

Thanks for your help. Yesterday I compiled successfully.
First I removed all SDL stuff, then I reinstalled the runtime & development RPMs and now it works. :D
Post Reply