Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Help regarding development/scripting, troubleshooting or just general gameplay -- anything that hasn't already been answered in the Wiki or pinned FAQs.

Moderator: Developers

Post Reply
smund3
Acid Blob (New member)
Acid Blob (New member)
Posts: 3
Joined: Tue May 24, 2011 5:18 pm

Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by smund3 »

Hi folx,
I'm trying to compile Egoboo version 2.8.1 in my Ubuntu 11.04.
I downloaded http://downloads.sourceforge.net/egoboo ... 8.1.tar.gz and this happens when I try to make it:

Code: Select all

asmund@ACEIX:~/Downloads/egoboo-2.8.1/src$ make all
make -C ./game all PREFIX=/usr PROJ_NAME=egoboo-2.x
make[1]: sdl-config: Command not found
make[1]: Entering directory `/home/asmund/Downloads/egoboo-2.8.1/src/game'
make[1]: sdl-config: Command not found
gcc -Os -Wall -DPREFIX=\"/usr\" -D_NIX_PREFIX -I. -I.. -I../enet/include  -I./extensions -I./file_formats -I./platform   -c -o bbox.o bbox.c
In file included from egoboo_config.h:95:0,
                 from egoboo_typedef.h:25,
                 from egoboo_math.h:25,
                 from bbox.h:26,
                 from bbox.inl:26,
                 from bbox.c:24:
egoboo_platform.h:26:62: fatal error: SDL.h: No such file or directory
compilation terminated.
make[1]: *** [bbox.o] Error 1
make[1]: Leaving directory `/home/asmund/Downloads/egoboo-2.8.1/src/game'
make: *** [egoboo] Error 2
Any idea what's wrong here?

I have all dependencies from src/DEPENDENCIES.txt met by the way.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by penguinflyer5234 »

install libsdl1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev, and libsdl-ttf1.2-dev (last one may not be needed, can't remember)
...
smund3
Acid Blob (New member)
Acid Blob (New member)
Posts: 3
Joined: Tue May 24, 2011 5:18 pm

Re: Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by smund3 »

Thanks, it helped...

But now, when I sudo make install I get this:

Code: Select all

asmund@ACEIX:~/Downloads/egoboo-2.8.1/src$ sudo make install
[sudo] password for asmund: 
make -C ./game all PREFIX=/usr PROJ_NAME=egoboo-2.x
make[1]: Entering directory `/home/asmund/Downloads/egoboo-2.8.1/src/game'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/asmund/Downloads/egoboo-2.8.1/src/game'
######################################
# Thank you for installing egoboo! 
#
# The default install of egoboo will require the commandline 
#     "sudo make install"
# and the required password
#
# If you do not have root access on this machine, 
# you can specify a prefix on the command line: 
#     "make install PREFIX=$HOME/.local"
# where the environment variable PREFIX specifies a
# virtual root for your installation. In this example,
# it is a local installation for this username only.
#
mkdir -p /usr/games
install -m 755 ./game/egoboo-2.x /usr/games
mkdir -p /usr/share/games/egoboo-2.x
cp -rdf ./basicdat /usr/share/games/egoboo-2.x
cp: cannot stat `./basicdat': No such file or directory
make: *** [install] Error 1
Help :curse:

[EDIT] Oh, and at first, egoboo-2.x gave me just

Code: Select all

asmund@ACEIX:~/Downloads/egoboo-2.8.1/src$ egoboo-2.x
Initializing filesystem services...
Game directories are:
	Binaries: /usr/games/
	Data: /usr/share/games/egoboo-2.x
	User Data: /home/asmund/.egoboo-2.x
	Config Files: /usr/etc/egoboo-2.x
asmund@ACEIX:~/Downloads/egoboo-2.8.1/src$
But after looking through the log file discovering that ~/.egoboo-2.x/setup.txt was missing, and copying my setup.txt over from my previous attempts with repository 2.7.7, it gives me a game window that appears only for a couple of frames (and the same output in terminal).
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by penguinflyer5234 »

make install does not work, just copy basicdat and modules to /usr/share/games/egoboo-2.x
...
smund3
Acid Blob (New member)
Acid Blob (New member)
Posts: 3
Joined: Tue May 24, 2011 5:18 pm

Re: Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by smund3 »

Thanks a bunch. :cheers: :woo:
bgbirdsey
{]-[0{0|307 (Developer)
{]-[0{0|307 (Developer)
Posts: 1864
Joined: Wed Jul 23, 2008 4:22 am
Location: Minnesota, USA

Re: Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by bgbirdsey »

The files in the svn are not a distribution.
User avatar
penguinflyer5234
Sheep (Developer)
Sheep (Developer)
Posts: 3025
Joined: Wed Jul 23, 2008 1:39 am
Location: Best Southwest

Re: Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by penguinflyer5234 »

bgbirdsey: ...? This thread is for 2.8.1...
...
User avatar
Zefz
Squirrel Knight (Administrator)
Squirrel Knight (Administrator)
Posts: 3820
Joined: Wed Jul 23, 2008 1:27 am
Location: Norway
Contact:

Re: Trouble compiling 2.8.1 in Ubuntu (SDL related?)

Post by Zefz »

Need to release 2.8.2 for Linux as well...
Post Reply