You are not logged in.

#1 2008-08-08 19:56:19

_will
Member
Registered: 2004-07-08
Posts: 123

netpanzer

i'm having trouble compiling with the package provided

# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
# Contributor: Darwin Bautista <djclue917@gmail.com>

pkgname=netpanzer
pkgver=0.8.2
pkgrel=1
pkgdesc="An Online Multiplayer Tactical Warfare Game"
arch=('i686')
url="http://netpanzer.berlios.de/"
license="GPL"
depends=('gcc' 'physfs' 'sdl_mixer')
makedepends=('jam')
source=(http://download.berlios.de/netpanzer/${pkgname}-${pkgver}.tar.bz2)
md5sums=('3f446403ac7e72ed0ff9e093517c83d3')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}/

  ./configure --prefix=/usr --disable-debug --without-wx-config
  jam || return 1
  jam -sprefix=${startdir}/pkg/usr install
}

it erros:

...failed C++ ./build/i686-pc-linux-gnu/opt/src/NetPanzer/Views/MainMenu/Multi/MapSelectionView.o ...
...skipped libnetpanzerviews.a for lack of libnetpanzerviews.a(MapSelectionView.o)...
...skipped netpanzer for lack of libnetpanzerutil.a...
...failed updating 4 target(s)...
...skipped 5 target(s)...
==> ERROR: Build Failed.

i tried to build from svn

pkgname=netpanzer-svn
pkgver=082008
pkgrel=1
pkgdesc="An Online Multiplayer Tactical Warfare Game"
arch=('i686')
url="http://netpanzer.berlios.de/"
license="GPL"
depends=('gcc' 'physfs' 'sdl_mixer')
makedepends=('jam' 'subversion')

build() {
   svn co svn://svn.berlios.de/netpanzer/trunk/netpanzer
   cd ${startdir}/src/netpanzer
  ./autogen.sh
  ./configure --prefix=/usr --disable-debug --without-wx-config
  jam || return 1
  jam -sprefix=${startdir}/pkg/usr install
}

it errors:

C++ ./build/i686-pc-linux-gnu/opt/src/NetPanzer/System/SDLSound.o 
In file included from src/NetPanzer/Interfaces/GameConfig.hpp:29,
                 from src/NetPanzer/System/SDLSound.cpp:33:
src/NetPanzer/Interfaces/ConfigVariable.hpp:56: warning: type qualifiers ignored on function return type
C++ ./build/i686-pc-linux-gnu/opt/src/NetPanzer/System/SDLEvents.o 
In file included from src/NetPanzer/Interfaces/GameConfig.hpp:29,
                 from src/NetPanzer/System/SDLEvents.cpp:26:
src/NetPanzer/Interfaces/ConfigVariable.hpp:56: warning: type qualifiers ignored on function return type
...skipped netpanzer for lack of libnetpanzerutil.a...
...failed updating 1 target(s)...
...skipped 4 target(s)...
...updated 310 target(s)...
==> ERROR: Build Failed.
    Aborting...

has anyone compiled netpanzer in a while with any luck?

Offline

#2 2009-01-13 16:04:48

Verminoz
Member
From: Greece
Registered: 2008-08-17
Posts: 47
Website

Re: netpanzer

Same problem here...


Ohne Musik ware das Leben ein Irrtum

Offline

#3 2009-01-21 21:09:49

Verminoz
Member
From: Greece
Registered: 2008-08-17
Posts: 47
Website

Re: netpanzer

Ok I found a workaround for this one. Apparently it is a GCC version incompatibility both for the svn version and the standard release (currently 0.8.2). It can be solved by adding one line to one source code file for the svn version and 5-6 source code files for the 0.8.2 release. Check this thread out:
http://www.netpanzer.org/forum/index.php?topic=256.0

the part that you actually need is this:

You might be using netpanzer 0.8.2 source in newer gcc, if that is the case you would need to modify some files in order to compile:
- If error is with 'sort': add "#include <algorithm>" on top of that file
- If error is with 'auto_ptr': add "#include <memory>" on top of that file

Check out the errors from your console, access the file in which each error occured and add one line to the top of the file according to the quoted "rules"!

NOTE: If you're using a PKGBUILD don't forget to add the -e option to makepkg to skip uncompressing the source from the tar package or else the changes you will have made will be overwritten.


Ohne Musik ware das Leben ein Irrtum

Offline

Board footer

Powered by FluxBB