brutalchess 0.5.2-3
http://sourceforge.net/projects/brutalchess/
Chess game inspired by 'Battle Chess'. Features full 3D graphics, an advanced particle engine, and several different levels of AI
unsupported :: games
Maintainer: Arkham
Votes: 55
License: GPL
Last Updated: Thu, 25 Jun 2009 19:52:12 +0000
First Submitted: Wed, 02 Aug 2006 16:06:16 +0000
Dependencies freeglut sdl_image
Still builds and runs perfectly here (:
Hello, I've played with the configure flags in the PKGBUILD and this works for me (no SDL errors anymore):
# Configure and fix some warnings
./configure \
--prefix=/usr \
--libexecdir=/usr/bin \
--with-sdl-prefix=/usr/lib \
--with-sdl-exec-prefix=/usr \
--disable-sdltest \
--with-ft-prefix=/usr/lib \
--with-ft-exec-prefix=/usr \
--disable-freetypetest
---
But I don't know if that's a good way. I'm no expert with that ;)
I also getting the SDL error. I'm on x86_64, maybe that's it?
Here is the error message:
checking for SDL - version >= 1.2.7... no
*** Could not run SDL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding SDL or finding the wrong
*** version of SDL. If it is not finding SDL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** SDL version 1.2.7 not found!
make: *** No targets specified and no makefile found. Stop.
==> ERROR: Build Failed.
Aborting...
Here builds fine; as for the quake option, I've never seen it. If you manage to get it to work please attach the PKGBUILD.
I sadly miss the --pieces=quake option both here and in the package from arch-games:
Failed to load the animation.cfg file: ../art/md3/cloud/animation.cfg
Also makepkg fails with the following message:
configure: error: *** SDL version 1.2.7 not found!
I have SDL 1.2.13 installed.
You can find this game also in the arch-games repo, so that you won't have to build it by yourself. You can find it here: http://twilightlair.net:3000/projects/gaming-repo
Adopted and fixed.
correct URL is http://voxel.dl.sourceforge.net/sourceforge/brutalchess/brutalchess-alpha-0.5.2-src.tar.gz
It's better to put a || return 1 after all lines which if it fails should result in a failure to make the package:
make DESTDIR=$startdir/pkg install || return 1
With regards to:
rm -rf $startdir/pkg/usr/share/$pkgname/doc/
doesn't makepkg strip docs anyway?
Also the new source url for sf packages is
of the form
http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2
Implemented the seds from below.
Added x86_64
Got an error saying INT_MAX was not defined in scope.
Fixed by adding:
sed '/<time.h>/ a\#include <limits.h>' -i src/brutalplayer.cpp
before make in build()
Does not compile & install anymore after libtool and gcc have been upgraded (respectively to 2.2 and 4.3).
It stops with several errors during make.
I just really want to know how you got the quake-tileset working.. that's still a mistery for me.
I was able compile it by adding
sed 's|GLvoid|void|g' -i src/md3view.cpp
sed 's|GLvoid|void|g' -i src/objview.cpp
before
make || return 1
in PKGBUILD
I got an error while building brutalchess.
md3view.cpp:75: error: '<anonymous>' has incomplete type
md3view.cpp:75: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int resizeWindow(int, int)':
md3view.cpp:75: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:105: error: at this point in file
md3view.cpp: At global scope:
md3view.cpp:111: error: '<anonymous>' has incomplete type
md3view.cpp:111: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int main(int, char**)':
md3view.cpp:111: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:388: error: at this point in file
make[2]: *** [md3view.o] Error 1
make[2]: Leaving directory `/var/abs/brutalchess/src/brutalchess-0.5.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/abs/brutalchess/src/brutalchess-0.5.2/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed. Aborting...
this does not build correctly for me. this are the last few lines:
md3view.cpp:75: error: '<anonymous>' has incomplete type
md3view.cpp:75: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int resizeWindow(int, int)':
md3view.cpp:75: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:105: error: at this point in file
md3view.cpp: At global scope:
md3view.cpp:111: error: '<anonymous>' has incomplete type
md3view.cpp:111: error: invalid use of 'GLvoid'
md3view.cpp: In function 'int main(int, char**)':
md3view.cpp:111: error: too few arguments to function 'int initGL(<type error>)'
md3view.cpp:388: error: at this point in file
make[2]: *** [md3view.o] Error 1
make[2]: Leaving directory `/var/tmp/aurbuild/build/brutalchess.15893/brutalchess/src/brutalchess-0.5.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/aurbuild/build/brutalchess.15893/brutalchess/src/brutalchess-0.5.2/src'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed. Aborting...
aurbuild: could not build "brutalchess" with makepkg.
build directory retained at `/var/tmp/aurbuild/build/brutalchess.15893'
In some cases you may be able to cd into the directory, fix the problem and run makepkg with success.
Works perfectly for me w/o copying any models.
To get it to compile with recent versions of gcc, you need to add the the following line before the make command:
sed 's|GLvoid|void|g' -i src/objview.cpp
K, I fifured out that you'll need to download a couple third party q3 skins but does anyone know which ones?
Well telling from the error message the cloudstrife model is one of them. But when I download it, extract the model-directory from the pk3 (cuz brutalchess looks in art/models/ for the model and not in art/*.pk3/models/) and then start it, it doesnt tell me which other models it needs. It just hangs on the load on startup.
Yay, I love it! But how do I 'brutalize' it?
Updated to the latest version
The new version alpha0.5.2 works great. I have used the following PKGBUILD:
pkgname=brutalchess
pkgver=alpha0.5.2
pkgrel=1
pkgdesc=\"Chess game inspired by \'Battle Chess\'. Features full 3D graphics, an advanced particle engine, and several different levels of AI\"
url=\"http://brutalchess.sf.net\"
license=\"GPL\"
depends=(\'mesa\' \'sdl_image\')
source=(\"http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-alpha-0.5.2-src.tar.gz\")
build() {
cd $startdir/src/$pkgname-0.5.2
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
md5sums=(\'370476b63091b8d82a9ea57c604dcbab\')
The patch is not necessary anymore. And I didn\'t check the dependency.
Maybe patch should be added to dependencies.
Hi Everyone,
I am one of the developers of Brutal Chess, and we tracked back this URL from our development blog. I see that some of you are having issues building Brutal Chess, and we would like to help support anyone having problems.
If you\'re having issues you can send an email to brutalchess-devel [AT] lists.sourceforge [DOT] net, or post in our forums which can be found at http://sourceforge.net/forum/?group_id=139550.
We\'re pretty psyched that you\'ve found our game, feel free to give us feedback or make suggestions, we really listen to our user community.
-Mike
Fixed \"Failed to load model issue\".
\"Failed to load models\"
Same here :-(
I still get this error:
Failed to load models
Any ideas why it is not wokring? Maybe there should be some yet another package in depends?
Fixed source array
Well... to do the work of the patch with only sed, it whould be something like
build () {
cd $startdir/src/$pkgname-alpha-0.3
sed -i \"s|models/|/usr/share/$pkgname/models|g\" brutalchess.cpp
sed -i \"s|VeraMono.ttf|/usr/share/$pkgname/VeraMono.ttf|g\" brutalchess.cpp
sed -i \"s|marblehugewhite.png|/usr/share/$pkgname/marblehugewhite.png|g\" brutalchess.cpp
sed -i \"s|marblehugeblack.png|/usr/share/$pkgname/marbelhugeblack.png|g\" brutalchess.cpp
make || return 1
install -D -m755 brutalchessconsole $startdir/pkg/usr/bin/brutalchessconsole
install -D -m755 brutalchess $startdir/pkg/usr/bin/brutalchess
install -d $startdir/pkg/usr/share/models
install -m644 models/* -t $startdir/pkg/usr/share/models
install -D -m644 marblehugeblack.png $startdir/pkg/usr/share
install -D -m644 marblehugewhite.png $startdir/pkg/usr/share/
install -D -m644 VeraMono.ttf $startdir/pkg/usr/share
}
Now... maybe i\'m wrong but i think that
build () {
cd $startdir/src/$pkgname-alpha-0.3
patch -p1 < ../brutalchess.patch
make || return 1
make DESTDIR=$startdir/pkg install
}
is much more simple and elegant...
Maybe it\'s better to not use variables everywhere:
build() {
cd $startdir/src/$pkgname-alpha-$pkgver
sed -i \"s|models/|/usr/share/brutalchess/models/|g\" $startdir/src/$pkgname-alpha-$pkgver/brutalchess.cpp
make || return 1
install -D $startdir/src/$pkgname-alpha-$pkgver/brutalchess $startdir/pkg/usr/bin/brutalchess
install -d $startdir/src/$pkgname-alpha-$pkgver/models $startdir/pkg/usr/share/brutalchess/models
install -m644 $startdir/src/$pkgname-alpha-$pkgver/models/*.obj $startdir/pkg/usr/share/brutalchess/models
}
Don\'t know if it\'s the most elegant solution, but should make the patch unnecessary:
build() {
cd $startdir/src/$pkgname-alpha-$pkgver
sed -i \"s|models/|/usr/share/$pkgname/models/|g\" $startdir/src/$pkgname-alpha-$pkgver/brutalchess.cpp
make || return 1
install -D $startdir/src/$pkgname-alpha-$pkgver/brutalchess $startdir/pkg/usr/bin/$pkgname
install -d $startdir/src/$pkgname-alpha-$pkgver/models $startdir/pkg/usr/share/$pkgname/models
install -m644 $startdir/src/$pkgname-alpha-$pkgver/models/*.obj $startdir/pkg/usr/share/$pkgname/models
}
Minor fixes to the PKGBUILD
Fixed dependencies. Fixed url.
The patch is needed to add an install method to the package, and to fix path in the sources, to permit installation of binaries under /usr/bin.
The homepage of this project is http://brutalchess.sf.net please correct the PKGBUILD
$ brutalchess
Failed to load models
Chess game inspired by \"Battle Chess\". Features full 3D graphics, an advanced particle engine, and several different levels of intelligent AI.
v1.6.0