Compiling .3 beta on Ubuntu 8.04 LTS

For all the help you need with Armagetron!
Post Reply
User avatar
<(@_o)>
On Lightcycle Grid
Posts: 26
Joined: Thu Feb 22, 2007 10:27 am
Location: USA

Compiling .3 beta on Ubuntu 8.04 LTS

Post by <(@_o)> »

I just downloaded the beta for Linux ( in zip format )and I was having trouble compiling it myself because I am new at Ubuntu and I would like to know a way to compile it in the simplest way possible :D
CuRbSidE
User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Post by ed »

you could try this, it works on ubuntu 7.10 for me:
If anyone sees a mistake, feel free to correct me ;)

if you want to grab the latest build using bazaar, you will need to update your sources..
ubuntu by default uses bzr 0.9. Arma bzr needs >=1.0
Add these lines to your /etc/apt/sources.list

Code: Select all

deb http://ppa.launchpad.net/bzr/ubuntu hardy main
deb-src http://ppa.launchpad.net/bzr/ubuntu hardy main
then

Code: Select all

sudo apt-get update
grab some dependancies, make sure universe repos are enabled in your sources.list

Code: Select all

sudo apt-get install bzr build-essential automake libboost-dev libxml2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev ftgl-dev libglew-dev bison pkg-config 
Checkout the latest 0.3 build from bazaar..

Code: Select all

bzr checkout http://bazaar.launchpad.net/~armagetronad-dev/armagetronad/trunk-armagetronad-work 
cd trunk-armagetronad-work
then compile...

Code: Select all

./bootstrap.sh 
./configure
make 
sudo make install
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

Code: Select all

bzr checkout lp:armagetronad
works as well :)

plus i doubt you will need libboost, or SDL for a dedicated server
User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Post by ed »

epsy wrote:plus i doubt you will need libboost, or SDL for a dedicated server
Who said it was for dedicated server? These instructions are for client.
For server you will also need to add --disable-glout to the ./configure
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

ed wrote:
epsy wrote:plus i doubt you will need libboost, or SDL for a dedicated server
Who said it was for dedicated server? These instructions are for client.
For server you will also need to add --disable-glout to the ./configure
er, right, i somewhat thought he wanted to build a dedicated

Also as a side note you can use --enable-dedicated on a recent 0.2.8 tree
User avatar
taco343
Average Program
Posts: 68
Joined: Thu Feb 01, 2007 11:41 pm
Location: Saint Louis MO

Post by taco343 »

Thanks guys, I got it working for him with your help.
Image
User avatar
Lackadaisical
Shutout Match Winner
Posts: 823
Joined: Sun Dec 21, 2003 4:58 pm
Location: Amsterdam, Netherlands
Contact:

Re: Compiling .3 beta on Ubuntu 8.04 LTS

Post by Lackadaisical »

I am running ubuntu 10.04 LTS and I tried installing the trunk from source as ed has described above. However when I do

Code: Select all

sudo make install
it gives me the following error:

Code: Select all

Generating uninstallation script /usr/local/bin/armagetronad-uninstall.../bin/bash: line 4: cd: DESTDIR_UNINSTALL/usr/local/share/doc/games/armagetronad/html/net: No such file or directory
make[7]: *** [uninstall-htmlDATA] Error 1
make[6]: *** [uninstall-recursive] Error 1
make[5]: *** [uninstall-recursive] Error 1
make[4]: *** [uninstall-recursive] Error 1
make[3]: *** [install-uninstall] Error 1
make[3]: Leaving directory `/home/menno/armagetron/trunk-armagetronad-work'
make[2]: *** [install-exec-am] Error 2
make[2]: Leaving directory `/home/menno/armagetron/trunk-armagetronad-work'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/menno/armagetron/trunk-armagetronad-work'
make: *** [install-recursive] Error 1
When I started again from

Code: Select all

./bootstrap.sh
I saw

Code: Select all

./configure
gave me a warning about modifying files outside of usr/local/ so I reran configure with --disable-etc as suggested by the warning but it didn't fix the problem.
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Compiling .3 beta on Ubuntu 8.04 LTS

Post by Z-Man »

Yeah yeah yeah I'll fix that. The uninstall script generator needs to be adapted to latest automake. Pass --disable-uninstall (I think) to configure as a workaround.
User avatar
Lackadaisical
Shutout Match Winner
Posts: 823
Joined: Sun Dec 21, 2003 4:58 pm
Location: Amsterdam, Netherlands
Contact:

Re: Compiling .3 beta on Ubuntu 8.04 LTS

Post by Lackadaisical »

Thanks, passing --disable-uninstall helped.
Post Reply