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 » Wed Oct 03, 2007 4:29 pm

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: 2024
Joined: Wed Mar 01, 2006 5:43 am

Post by macsforme » Wed Oct 03, 2007 4:38 pm

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: 5184
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Wed Oct 03, 2007 4:43 pm

you also need yo make sure you have
sdl-dev
gcc
g++
and probably mesa-dev since your on ATI

Mac Rep
Private First Class
Private First Class
Posts: 21
Joined: Mon Oct 01, 2007 6:40 am

Post by Mac Rep » Wed Oct 03, 2007 5:45 pm

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 » Wed Oct 03, 2007 9:01 pm

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 » Wed Oct 03, 2007 9:29 pm

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

Post Reply