You are not logged in.
I'm having some problems trying to compile Sauerbraten from the ABS.
I edited the PKGBUILD to match the new version and removed the md5sums.:
[kevin@banaan sauerbraten]$ cat PKGBUILD
# $Id: PKGBUILD,v 1.10 2008/08/03 02:09:27 Snowman Exp $
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Christoph Siegenthaler <csi@gmx.ch>
pkgname=sauerbraten
pkgver=2009_05_04_trooper_edition
pkgrel=1
pkgdesc="Sauerbraten is an improved version of the Cube engine"
arch=('i686' 'x86_64')
url="http://www.sauerbraten.org/"
license=('ZLIB')
depends=('sdl_mixer' 'sdl_image' 'libgl' 'mesa' \
'hicolor-icon-theme' 'desktop-file-utils')
install=sauerbraten.install
source=(http://downloads.sourceforge.net/$pkgname/${pkgname}_${pkgver}_linux.tar
.bz2
http://downloads.sourceforge.net/$pkgname/patch_2008_06_20_linux.tar.bz2
sauerbraten-client
sauerbraten-server
sauerbraten.confd
sauerbraten.desktop
sauerbraten.png
license.txt)
md5sums=()
build() {
cd $startdir/src/$pkgname/src
make || return 1
make DESTDIR=$startdir/pkg install
cd $startdir/src/sauerbraten
install -D bin_unix/native_client $startdir/pkg/opt/sauerbraten/bin/linux_clie
nt
install -D bin_unix/native_server $startdir/pkg/opt/sauerbraten/bin/linux_serv
er
cp -r data $startdir/pkg/opt/sauerbraten
cp -r packages $startdir/pkg/opt/sauerbraten
find $startdir/pkg -type d -name CVS -exec rm -rf '{}' \; 2> /dev/null
install -Dm755 $startdir/src/sauerbraten-client $startdir/pkg/usr/bin/sauerbra
ten-client
install -Dm755 $startdir/src/sauerbraten-server $startdir/pkg/usr/bin/sauerbra
ten-server
install -Dm644 $startdir/src/sauerbraten.confd $startdir/pkg/etc/conf.d/sauerb
raten
install -Dm644 $startdir/src/sauerbraten.desktop $startdir/pkg/usr/share/appli
cations/sauerbraten.desktop
install -Dm644 $startdir/src/sauerbraten.png $startdir/pkg/usr/share/icons/hic
olor/128x128/apps/sauerbraten.png
install -Dm644 $startdir/src/license.txt $startdir/pkg/usr/share/licenses/saue
rbraten/license.txt
}When trying to compile, this happens:
==> Starting build()...
make -C enet/ all
make[1]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
'
Making all in include
make[2]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
/include'
Making all in enet
make[3]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
/include/enet'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet/
include/enet'
make[3]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet/
include'
make[2]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet/
include'
make[2]: Entering directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet
'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet'
make[1]: Leaving directory `/var/abs/local/sauerbraten/src/sauerbraten/src/enet'
g++ -O3 -fomit-frame-pointer -Wall -fsigned-char -Ishared -Iengine -Ifpsgame -Ie
net/include -I/usr/X11R6/include `sdl-config --cflags` -c -o engine/3dgui.o en
gine/3dgui.cpp
engine/3dgui.cpp:6:17: error: pch.h: No such file or directory
engine/3dgui.cpp: In member function 'virtual void gui::tab(const char*, int)':
engine/3dgui.cpp:110: error: 's_sprintf' was not declared in this scope
engine/3dgui.cpp: In member function 'virtual void gui::slider(int&, int, int, i
nt, char*)':
engine/3dgui.cpp:262: error: 's_sprintf' was not declared in this scope
engine/3dgui.cpp: In member function 'int gui::button_(const char*, int, const c
har*, bool, bool)':
engine/3dgui.cpp:552: error: 'tname' was not declared in this scope
engine/3dgui.cpp:552: error: 's_sprintfd' was not declared in this scope
engine/3dgui.cpp: In member function 'virtual void gui::end()':
engine/3dgui.cpp:730: error: 'INTERSECT_MIDDLE' was not declared in this scope
engine/3dgui.cpp:739: error: 'intersect_plane_line' was not declared in this sco
pe
engine/3dgui.cpp: In function 'void g3d_render()':
engine/3dgui.cpp:963: error: 'cl' was not declared in this scope
In file included from shared/cube.h:62:
shared/tools.h: In member function 'T& vector<T>::add() [with T = gui]':
engine/3dgui.cpp:923: instantiated from here
shared/tools.h:290: error: cannot allocate an object of abstract type 'gui'
engine/3dgui.cpp:34: note: because the following virtual functions are pure wi
thin 'gui':
shared/iengine.h:380: note: virtual int g3d_gui::texture(Texture*, float, in
t, int, int, Texture*, const vec&, Texture*)
shared/iengine.h:386: note: virtual char* g3d_gui::keyfield(const char*, int
, int, int, const char*, int)
shared/iengine.h:388: note: virtual void g3d_gui::textbox(const char*, int,
int, int)
make: *** [engine/3dgui.o] Error 1
==> ERROR: Build Failed.
Aborting...I have no clue of how to fix this, any experts around?
Thanks in advance!
Last edited by kevin89 (2009-05-13 08:38:33)
Offline
Have you tried removing patch_2008_06_20_linux.tar.bz2 from the sources array? Builds fine for me.
Offline
I can't believe I missed that.. thanks for your quick reply. It works now!
Offline