Page 1 of 1

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

Posted: Thu Aug 26, 2010 3:03 pm
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

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

Posted: Thu Aug 26, 2010 3:16 pm
by darkgod
You probably need the development version of those packages, debian variants seem to like to split them up :/

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

Posted: Thu Aug 26, 2010 3:52 pm
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.

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

Posted: Thu Aug 26, 2010 6:34 pm
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