0
May 22, 2013, 03:29:01 PM   
*
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 

- Shoutbox

Pages: [1]
  Print  
Author Topic: [HOW TO] install netpanzer from SVN.  (Read 18141 times)
0 Members and 1 Guest are viewing this topic.
Adam85
Private 1st Class
***
Gender: Male
Posts: 81


WWW
« on: December 07, 2007, 05:02:28 PM »

[HOW TO] install netpanzer form SVN.


I. Get subversion (SVN) from website: http://subversion.tigris.org
Or if You use linux distribution ubuntu, type in consol:
Code:
sudo apt-get install subversion
this should work also in debian.
For fedora:
Code:
yum install subersion



II. Dowload some version from SVN.
To dowload newest version:
Code:
svn checkout svn://svn.berlios.de/netpanzer/trunk/netpanzer
To dowload any version:
Code:
svn co -r [number of version] svn://svn.berlios.de/netpanzer/trunk/netpanzer



III. Install dependent package, list of them You find here: http://www.netpanzer.org/forum/index.php?topic=48.0
* For version after 1129 You must get scons (http://www.scons.org) -jam not needed.



IV. Compile
Go to folder netpanzer (cd netpanzer) and type in consol;
version after 1129
Code:
scons
version before 1129
Code:
./autogen.sh
./configure
jam



V. Run the game.
Code:
./netpanzer


SVN log: http://svn.berlios.de/wsvn/netpanzer/trunk/?op=log&rev=0&sc=0&isdir=1

http://www.netpanzer.org/forum/index.php?topic=407.0 [de] by C-D
http://www.netpanzer.org/forum/index.php?topic=398.0 [pl] by Adam
http://www.netpanzer.org/forum/index.php?topic=403.0 [it] by Fu :-)
« Last Edit: January 11, 2010, 11:27:26 AM by C-D » Logged

krom
Administrator
Sergeant
*****
Posts: 493



« Reply #1 on: December 15, 2007, 10:38:03 AM »

You can also compile using Code::Blocks, I added the project file i use.
Logged

The rabbit doesn't fly alone
narcisgarcia
Private
**
Posts: 26


WWW
« Reply #2 on: May 17, 2008, 07:50:10 PM »

Ubuntu GNU/Linux 8.04

Code:
sudo apt-get install subversion automake automake1.9 autobook libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl1.2debian-all libphysfs-dev jam g++ gcc
svn co -r 1001 svn://svn.berlios.de/netpanzer/trunk/netpanzer
Quote
Checked out revision 1001.
Code:
cd svn
cd netpanzer
sudo ./autogen.sh
Quote
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT
/usr/share/aclocal/libmcrypt.m4:17:   run info '(automake)Extending aclocal'
/usr/share/aclocal/libmcrypt.m4:17:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
Code:
sudo ./configure
sudo jam

And now, what?
Logged
muuseas
Recruit
*
Posts: 10


« Reply #3 on: May 29, 2008, 11:25:05 PM »

###You'll need build-essential package and jam

svn co -r 1001 svn://svn.berlios.de/netpanzer/trunk/netpanzer  //download v1001 from svn

cd netpanzer  //###go to dir, where are NP files

sudo ./configure
sudo jam
sudo jam install

### you can change version nr into what you want from svn,
### for example 1032 or 1025, but versions after 1001 dont show correctly flags
Logged
Franko
Recruit
*
Posts: 12


« Reply #4 on: May 30, 2008, 12:13:43 AM »

###You'll need build-essential package and jam

svn co -r 1001 svn://svn.berlios.de/netpanzer/trunk/netpanzer  //download v1001 from svn

cd netpanzer  //###go to dir, where are NP files

sudo ./configure
sudo jam
sudo jam install

### you can change version nr into what you want from svn,
### for example 1032 or 1025, but versions after 1001 dont show correctly flags

Hi all,
I followed all the instruction correctly... installed jam and all other prerequisities needed but, when I launch the game with
Quote
./netpanzer
The game start, but when I click on Multiplayer > Next it crashes with the following output:
Quote
franko@trust:~/netpanzer$ ./netpanzer
netpanzer: src/Lib/2D/Surface.hpp:195: void Surface::setFrame(const float&): Assertion `frameNum < getNumFrames()' failed.
Received signal SIGABRT(6)
aborting and trying to shutdown.
Aborted

Logged
Adam85
Private 1st Class
***
Gender: Male
Posts: 81


WWW
« Reply #5 on: May 30, 2008, 12:36:44 AM »

Try some new version from SVN.
I don't had this error when I try version 1025-27..

fx.
Code:
svn co -r 1025 svn://svn.berlios.de/netpanzer/trunk/netpanzer

U can always start game this way:
Code:
./netpanzer -c {server IP}

PS. now version 1001 is really old version.
http://svn.berlios.de/wsvn/netpanzer/trunk/?op=log&rev=0&sc=0&isdir=1
« Last Edit: May 30, 2008, 01:41:31 AM by Adam85 » Logged

krom
Administrator
Sergeant
*****
Posts: 493



« Reply #6 on: May 30, 2008, 03:26:57 AM »

I would do
Code:
# svn co svn://svn.berlios.de/netpanzer/trunk/netpanzer
# cd netpanzer
Next command only if it is your first time or if you are having some strange errors.
Code:
# sh autogen.sh ---- OR ./autogen.sh ---- depends on the executable bit is set or not
Now configure and compile
Code:
# ./configure
# jam
Do NOT install it, this step is really not needed, since it is a development version you could have installed the version of your distribution (use when svn version is broken, or to compare errors/fixes) and run the svn version directly from the folder you download it.

Code:
// in netpanzer folder
// to start normal netpanzer
# ./netpanzer
// to start netpanzer with extra logging good for debug
# ./netpanzer -g
Logged

The rabbit doesn't fly alone
Franko
Recruit
*
Posts: 12


« Reply #7 on: May 30, 2008, 07:15:05 PM »

Thanks for answers!
But i had installed Netpanzer from packages (I have ubuntu 8.04 OS).
Then i did the installation without uninstall the previous... may be this the issue? And now that i had installed svn 1025, how can i do to remove or uninstall completely it and try your new steps? (without the last command "jam install")?

My initial errors reappear with any version i tried Sad
Thanks in advance!
Logged
Franko
Recruit
*
Posts: 12


« Reply #8 on: May 30, 2008, 07:27:54 PM »

I understood the fact that when i did
Quote
#  sudo jam install
i missed the netpanzer version of my distribution, but now how to recover it too?
Logged
krom
Administrator
Sergeant
*****
Posts: 493



« Reply #9 on: May 31, 2008, 05:10:25 AM »

Ok, I just discovered there is no "uninstall" option.

With some luck netpanzer from svn is installed in the /usr/local tree, what i cannot make sure is if you are running the svn version or the version installed by ubuntu. Let's try the uninstallataion process:

in the netpanzer folder (the one of svn) run following command:
Code:
# jam -da -n install | grep '^Install'

You should see many lines, the important ones should looke like (dot '.' are other lines similar):
Code:
Install1 /usr/local/bin/netpanzer
Install1 /usr/local/share/applications/netpanzer.desktop
Install1 /usr/local/share/netpanzer/pics/particles/puff/dirt/pak/dirtPuff0004.pak
.
Install1 /usr/local/share/pixmaps/netpanzer.png
Install1 /usr/local/share/pixmaps/netpanzer.xpm
.
Install1 /usr/local/share/doc/netpanzer-svn/ChangeLog
Install1 /usr/local/share/doc/netpanzer-svn/README
.

If what you get is similar then you need to delete the following files:
Code:
# files to delete
/usr/local/bin/netpanzer
/usr/local/share/applications/netpanzer.desktop
/usr/local/share/pixmaps/netpanzer.png
/usr/local/share/pixmaps/netpanzer.xpm

# folders to delete
/usr/local/share/netpanzer
/usr/local/share/doc/netpanzer-svn

You must be root to delete them (sudo -i), i'll put a sample on how to delete them.
Code:
------- WARNING: RUN THIS AT YOUR OWN RISK
# rm -f /usr/local/{bin/netpanzer,share/{applications/netpanzer.desktop,pixmaps/netpanzer.{png,xpm}}}
# rm -rf /usr/local/share/{netpanzer,doc/netpanzer-svn}

Then you should uninstall and reinstall the netpanzer version of ubuntu, just in case something is bad with that one.
Logged

The rabbit doesn't fly alone
Pages: [1]
  Print  
 
Jump to:  

Theme by m3talc0re. Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines MySQL | PHP | XHTML | CSS
Back To Top