What do I need to install? (Ubuntu)

Questions or HOWTOs about the above? Post 'em here...
Post Reply
Mac Rep
Private First Class
Private First Class
Posts: 21
Joined: Mon Oct 01, 2007 6:40 am

What do I need to install? (Ubuntu)

Post by Mac Rep »

I want to compile 2.0.10 and downloaded the zip file linked by Jeff. I ran configure but problems were reported and I'm (as an Ubuntu newbie) have no idea what to install. Can someone please point me in the right direction?

The messages are:

Code: Select all

checking for asinf in -lm... yes
...
checking for ares_init in -lcares... no
configure: WARNING: using an internal c-ares lib.
configure: WARNING: Consider installing an updated library at system level
configure: WARNING: link is http://daniel.haxx.se/projects/c-ares/
checking for working ncurses... no
...
checking for working XCurses... no
configure: WARNING: could not find a curses library, will build bzadmin without curses
checking for SDL framework... no
checking for sdl-config... no
checking for SDL - version >= 1.2.5... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: WARNING: could not find an appropriate SDL version. BZflag will build without SDL
checking for SDL_image library... no
configure: WARNING: Client build has been requested, but GL is not fully available (missing gl.h)
     ... disabling client generation
checking if the compiler understands -Wl,-search_paths_first -mdynamic-no-pic... no
checking for CGLGetCurrentContext... no
...
checking for isnan... no
configure: creating ./config.status
config.status: creating bzflag.info
...
config.status: executing depfiles commands
CFLAGS are -g -O2  -Wall -W -mtune=i686 -ffast-math -fno-exceptions
LDFLAGS are  
LIBS are -lm 

BZFlag-2.0.10.20071003 with the following:
     no curses!
     no SDL!
     bzadmin
     no bzflag client binary!
<hr>
Mac Rep is a Raga Man
User avatar
macsforme
General
General
Posts: 2069
Joined: Wed Mar 01, 2006 5:43 am

Post by macsforme »

start with

Code: Select all

libncurses5-dev
libsdl1.2-dev
it also looks like you might need to install some OpenGL (mesa) libraries.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

you also need yo make sure you have
sdl-dev
gcc
g++
and probably mesa-dev since your on ATI
ImageJeffM
Mac Rep
Private First Class
Private First Class
Posts: 21
Joined: Mon Oct 01, 2007 6:40 am

Post by Mac Rep »

Okay... libncurses5-dev and libsdl1.2-dev were no problem to install. Now I'm still missing gl and again have no idea what to install. I tried to find something using aptitude but couldn't find anything useful.
<hr>
Mac Rep is a Raga Man
Mac Rep
Private First Class
Private First Class
Posts: 21
Joined: Mon Oct 01, 2007 6:40 am

Post by Mac Rep »

g++ was missing.

Still an error I have to fix

Code: Select all

libtool: link: cannot find the library `/usr/lib/libasound.la' or unhandled argument `/usr/lib/libasound.la'
make[2]: *** [bzflag] Error 1
m
<hr>
Mac Rep is a Raga Man
Mac Rep
Private First Class
Private First Class
Posts: 21
Joined: Mon Oct 01, 2007 6:40 am

Post by Mac Rep »

Now it compiles after installing several missing libs.
<hr>
Mac Rep is a Raga Man
Post Reply