Compiling problems on ubuntu Linux (betas 8 and 9b) [SOLVED]

Everything about ToME 4.x.x. No spoilers, please

Moderator: Moderator

Post Reply
Message
Author
mgp
Low Yeek
Posts: 7
Joined: Wed Feb 21, 2007 12:41 pm

Compiling problems on ubuntu Linux (betas 8 and 9b) [SOLVED]

#1 Post by mgp »

Dear all,

I am trying to compile TOME4 on Ubuntu 10.4 and failing at the make stage. The output is the following:

Code: Select all

$ make
==== Building physfs ====
Creating bin/Debug
Creating obj/Debug/physfs
physfsrwops.c
In file included from src/physfs/physfsrwops.c:24:
src/physfs/physfsrwops.h:30:17: error: SDL.h: No such file or directory
In file included from src/physfs/physfsrwops.c:24:
src/physfs/physfsrwops.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.h:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.h:71: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.h:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.c:26: error: expected ‘)’ before ‘*’ token
src/physfs/physfsrwops.c:100: error: expected ‘)’ before ‘*’ token
src/physfs/physfsrwops.c:114: error: expected ‘)’ before ‘*’ token
src/physfs/physfsrwops.c:125: error: expected ‘)’ before ‘*’ token
src/physfs/physfsrwops.c:139: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.c:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.c:174: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.c:180: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/physfs/physfsrwops.c:186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[1]: *** [obj/Debug/physfs/physfsrwops.o] Error 1
make: *** [physfs] Error 2
To my knowledge I have all the prerequisites. It seams to be missing some SDL stuff. I have installed the following packages:
libsdl1.2debian, libsdl1.2debian-alsa, libsdl-mixer1.2, libsdl-image1.2 and libsdl-ttf2.0-0.

Thanks for your work on an awesome game and in advance for your help on this issue.

Best,

Michael
Last edited by mgp on Thu Aug 26, 2010 6:34 pm, edited 1 time in total.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Compiling problems on ubuntu Linux (betas 8 and 9b)

#2 Post by darkgod »

You probably need the development version of those packages, debian variants seem to like to split them up :/
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

atan59
Higher
Posts: 71
Joined: Sat May 22, 2010 6:34 pm

Re: Compiling problems on ubuntu Linux (betas 8 and 9b)

#3 Post by atan59 »

Haven't compilet ToME4 since a few betas ago (I'm concentrating on ToME 2 now ;-) ) but I also have Ubuntu 10.4 and had no trouble compiling ToME4 in the past. I have the following sdl packages installed:

Code: Select all

libsdl1.2-dev
libsdl-ttf2.0-dev
libsdl-image1.2
libsdl-perl
libsdl-mixer1.2
libsdl-gfx1.2-4
libsdl-pango1
libsdl-image1.2-dev
libsdl-mixer1.2-dev
libsdl1.2debian-alsa
libsdl1.2debian
I don't know which are actually necessary, but at least I can tell you those are enough.

mgp
Low Yeek
Posts: 7
Joined: Wed Feb 21, 2007 12:41 pm

Re: Compiling problems on ubuntu Linux (betas 8 and 9b)

#4 Post by mgp »

Hi all,

Thank you very much for the help and the swift answer. Indeed, dev packages are needed in Ubuntu. For future reference, the prerequisites for the compilation of beta 9b on ubuntu are the following packages:

SDL:
libsdl-ttf2.0-0
libsdl-ttf2.0-dev
libsdl-image1.2
libsdl-image1.2-dev
libsdl-mixer1.2
libsdl-mixer1.2-dev
libsdl1.2debian
libsdl1.2-dev
libsdl1.2debian-alsa (this one depending on your system)

Premake4:
I found an ubuntu package here http://lgp203.free.fr/ubuntu/

And I already had OpenGL (and their qt4 modules) installed.

Thanks all.

Best,

Michael

Post Reply