Package Details: brutalchess 0.5.2-8

Git Clone URL: https://aur.archlinux.org/brutalchess.git (read-only, click to copy)
Package Base: brutalchess
Description: Chess game inspired by 'Battle Chess'. Features full 3D graphics.
Upstream URL: https://sourceforge.net/projects/brutalchess
Licenses: GPL-2.0-or-later
Submitter: None
Maintainer: DodoGTA
Last Packager: DodoGTA
Votes: 52
Popularity: 0.039249
First Submitted: 2006-08-02 16:06 (UTC)
Last Updated: 2024-06-27 16:20 (UTC)

Latest Comments

1 2 Next › Last »

dreieck commented on 2024-04-26 13:15 (UTC)

With those modifications of the PKGBUILD, I get the following linking error:

[...]
g++  -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -I/usr/include/freetype2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lfreetype -o brutalchess  basicset.o bitboard.o board.o boardmove.o boardposition.o boardtheme.o brutalchess.o brutalplayer.o chessgame.o chessgamestate.o chessplayer.o debugset.o faileplayer.o fontloader.o gamecore.o granitetheme.o humanplayer.o md3model.o menu.o menuitem.o objfile.o options.o piece.o pieceset.o q3charmodel.o q3set.o randomplayer.o texture.o timer.o utils.o vector.o xboardplayer.o  -lglut -lGLU -lGL  -lSM -lICE  -L/usr/lib -lX11 -lXext -lXmu -lXt -lXi  -L/usr/lib -lSDL  -lSDL_image
/usr/bin/ld: fontloader.o: in function `make_dlist(FT_FaceRec_*, char, unsigned int, unsigned int*)':
fontloader.cpp:(.text+0x3c6): undefined reference to `FT_Get_Char_Index'
/usr/bin/ld: fontloader.cpp:(.text+0x3d3): undefined reference to `FT_Load_Glyph'
/usr/bin/ld: fontloader.cpp:(.text+0x411): undefined reference to `FT_Get_Glyph'
/usr/bin/ld: fontloader.cpp:(.text+0x42b): undefined reference to `FT_Glyph_To_Bitmap'
/usr/bin/ld: fontloader.o: in function `FontLoader::font_data::init(char const*, unsigned int)':
fontloader.cpp:(.text+0x7bc): undefined reference to `FT_Init_FreeType'
/usr/bin/ld: fontloader.cpp:(.text+0x801): undefined reference to `FT_New_Face'
/usr/bin/ld: fontloader.cpp:(.text+0x823): undefined reference to `FT_Set_Char_Size'
/usr/bin/ld: fontloader.cpp:(.text+0x882): undefined reference to `FT_Done_Face'
/usr/bin/ld: fontloader.cpp:(.text+0x88d): undefined reference to `FT_Done_FreeType'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:371: brutalchess] Error 1
make[2]: Leaving directory '/var/cache/makepkg/build/brutalchess/src/brutalchess-0.5.2/src'

Regards!

dreieck commented on 2024-04-26 13:14 (UTC)

Dear maintainer,

as pointed out in this comment from 2021-03-09, please add to build():

  CXXFLAGS+=" -I/usr/include/freetype2"
  LDFLAGS+=" -lfreetype"
  export CXXFLAGS
  export LDFLAGS

And also you need to add globally

options+=('!lto')

otherwise build on environments which have LTO enabled by default fails:

[...]
g++  -march=native -mtune=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -I/usr/include/freetype2  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -lfreetype -o md3view  md3model.o md3view.o q3charmodel.o texture.o vector.o  -lglut -lGLU -lGL  -lSM -lICE  -L/usr/lib -lX11 -lXext -lXmu -lXt -lXi  -L/usr/lib -lSDL  -lSDL_image
/usr/bin/ld: /tmp/cctFzJpU.ltrans1.ltrans.o: in function `FontLoader::font_data::init(char const*, unsigned int)':
<artificial>:(.text+0x4935): undefined reference to `FT_Init_FreeType'
/usr/bin/ld: <artificial>:(.text+0x4976): undefined reference to `FT_New_Face'
/usr/bin/ld: <artificial>:(.text+0x4998): undefined reference to `FT_Set_Char_Size'
/usr/bin/ld: <artificial>:(.text+0x49ed): undefined reference to `FT_Get_Char_Index'
/usr/bin/ld: <artificial>:(.text+0x49fa): undefined reference to `FT_Load_Glyph'
/usr/bin/ld: <artificial>:(.text+0x4a14): undefined reference to `FT_Get_Glyph'
/usr/bin/ld: <artificial>:(.text+0x4a33): undefined reference to `FT_Glyph_To_Bitmap'
/usr/bin/ld: <artificial>:(.text+0x4d16): undefined reference to `FT_Done_Face'
/usr/bin/ld: <artificial>:(.text+0x4d21): undefined reference to `FT_Done_FreeType'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:371: brutalchess] Error 1

Regards and thanks for maintaining!

waitnsea commented on 2022-12-14 17:15 (UTC)

Thanks @jypma - always working

jypma commented on 2021-03-09 07:52 (UTC)

I got it working by adding the following to the start of build():

  export CXXFLAGS=-I/usr/include/freetype2
  export LDFLAGS=-lfreetype

Not sure why the original PKGBUILD does file-level patching for this, nor why the upstream source doesn't account for freetype :-)

ArnaudNux commented on 2020-04-04 16:28 (UTC)

hess.Tpo" -c -o brutalchess.o brutalchess.cpp; \ then mv -f ".deps/brutalchess.Tpo" ".deps/brutalchess.Po"; else rm -f ".deps/brutalchess.Tpo"; exit 1; fi In file included from brutalchess.cpp:19: /usr/include/SDL/SDL_opengl.h:116: warning: "GL_GLEXT_VERSION" redefined 116 | #define GL_GLEXT_VERSION 29 | In file included from /usr/include/GL/gl.h:2050, from /usr/include/SDL/SDL_opengl.h:46, from brutalchess.cpp:19: /usr/include/GL/glext.h:54: note: this is the location of the previous definition 54 | #define GL_GLEXT_VERSION 20190805 | In file included from brutalchess.cpp:26: fontloader.h:13:10: fatal error: ft2build.h: No such file or directory 13 | #include <ft2build.h> | ^~~~~~~~~~~~ compilation terminated. make[2]: [Makefile:421: brutalchess.o] Error 1 make[2]: Leaving directory '/home/arnaud/tempo/ryzom-client/brutalchess/src/brutalchess-0.5.2/src' make[1]: [Makefile:273: all] Error 2 make[1]: Leaving directory '/home/arnaud/tempo/ryzom-client/brutalchess/src/brutalchess-0.5.2/src' make: *** [Makefile:250: all-recursive] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

PrimaMateria commented on 2019-11-16 23:05 (UTC)

Same problem with ft2build.h as @saviola described.

blx32 commented on 2019-04-30 01:34 (UTC)

Maintainer: Steffen Weber <-boenki-gmx-de->
Contributor: Arkham <arkham at archlinux dot us>
Contributor: Rick Rein jeebusroxors@gmail.com
Contributor: Stefano Esposito ragnarok@email.it
Contributor: Gabriel Moura develop@srmoura.com.br

pkgname=brutalchess pkgver=0.5.2 pkgrel=7 pkgdesc="Chess game inspired by 'Battle Chess'. Features full 3D graphics." url="https://sourceforge.net/projects/$pkgname" license=('GPL2') arch=('x86_64') depends=('sdl_image' 'freetype2' 'glu') source=("http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/brutalchess-0.5.2-17.mga7.x86_64.rpm") sha512sums=('fc4d099583905dc7acc8882a432b395335f1810581aa5b24d08ad2188dc9b633f7c7955e42f880c657813453b09a29bc6c2911e71fe34348ddf50866b5c38132')

package() { cp -pR ${srcdir}/usr ${pkgdir}/ }

saviola commented on 2018-12-20 14:08 (UTC) (edited on 2018-12-20 14:10 (UTC) by saviola)

Compilation fails because it can't find ft2build.h, is this a problem on my system? freetype2 2.9.1-1 is installed and the file ft2build.sh can be found in /usr/include/freetype2.

[…]

checking for freetype-config... no
checking for FreeType -- version >= 7.0.1... no
configure: WARNING:

The freetype-config script installed by FreeType 2 could not be found.
If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
your path, or set the FT2_CONFIG environment variable to the
full path to freetype-config.

[…]

In file included from brutalchess.cpp:26: fontloader.h:13:10: fatal error: ft2build.h: No such file or directory #include <ft2build.h> ^~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:421: brutalchess.o] Error 1

SanskritFritz commented on 2017-10-10 14:42 (UTC)

Just try again, with another mirror. Works here.

hcra commented on 2017-10-10 13:40 (UTC)

I get ==> ERROR: Failure while downloading http://downloads.sourceforge.net/brutalchess/brutalchess-alpha-0.5.2-src.tar.gz