Unix Technical Forum

crafty chess

This is a discussion on crafty chess within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello, has anyone any idea on how to install crafty (chess) on slackware and let it work with its ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 10:23 AM
Thibaud de Borggraef
 
Posts: n/a
Default crafty chess

Hello,

has anyone any idea on how to install crafty (chess) on slackware and let it
work with its opening books?

Thanks.

thib


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 10:23 AM
notbob
 
Posts: n/a
Default Re: crafty chess

On 2005-08-18, Thibaud de Borggraef <thibaud> wrote:

> has anyone any idea on how to install crafty (chess) on slackware and let it
> work with its opening books?


Download source files (tar.gz)...

http://www.linux.org/apps/AppId_956.html

....unpack and compile....

http://www.justlinux.com/nhf/Softwar..._Software.html

nb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 10:24 AM
Thibaud de Borggraef
 
Posts: n/a
Default Re: crafty chess

Thanks, but such things I don't need to read.
My problem comes from the makefile:

$:~/crafty-19.9$ make linux
make target=LINUX \
CC=gcc CXX=g++ \
CFLAGS=' -Wall -pipe -D_REENTRANT -march=i686 -O3 \
-fbranch-probabilities -fforce-mem -fomit-frame-pointer \
-fno-gcse -mpreferred-stack-boundary=2' \
CXFLAGS= \
LDFLAGS=' -lpthread -lstdc++' \
opt=' \
-DUSE_ASSEMBLY -DFAST \
-DPOSIX -DSMP -DCPUS=4 -DDGT' \
asm=X86.o \
crafty-make
make[1]: Entering directory `/home/thibaud/crafty-19.9'
make[2]: Entering directory `/home/thibaud/crafty-19.9'
gcc -lpthread -lstdc++ -o crafty crafty.o egtb.o X86.o -lm
gcc: crafty.o: No such file or directory
make[2]: *** [crafty] Error 1
make[2]: Leaving directory `/home/thibaud/crafty-19.9'
make[1]: *** [crafty-make] Error 2
make[1]: Leaving directory `/home/thibaud/crafty-19.9'
make: *** [linux] Error 2

And so what now?

thibaud

notbob wrote:

> On 2005-08-18, Thibaud de Borggraef <thibaud> wrote:
>
>> has anyone any idea on how to install crafty (chess) on slackware and let
>> it work with its opening books?

>
> Download source files (tar.gz)...
>
> http://www.linux.org/apps/AppId_956.html
>
> ...unpack and compile....
>
> http://www.justlinux.com/nhf/Softwar..._Software.html
>
> nb


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 10:24 AM
OTTAVI Alain
 
Posts: n/a
Default Re: crafty chess

Hello,

Thibaud de Borggraef wrote:

> $:~/crafty-19.9$ make linux
> make target=LINUX \
> CC=gcc CXX=g++ \
> CFLAGS=' -Wall -pipe -D_REENTRANT -march=i686 -O3 \
> -fbranch-probabilities -fforce-mem -fomit-frame-pointer \
> -fno-gcse -mpreferred-stack-boundary=2' \
> CXFLAGS= \
> LDFLAGS=' -lpthread -lstdc++' \
> opt=' \
> -DUSE_ASSEMBLY -DFAST \
> -DPOSIX -DSMP -DCPUS=4 -DDGT' \
> asm=X86.o \
> crafty-make
> make[1]: Entering directory `/home/thibaud/crafty-19.9'
> make[2]: Entering directory `/home/thibaud/crafty-19.9'
> gcc -lpthread -lstdc++ -o crafty crafty.o egtb.o X86.o -lm
> gcc: crafty.o: No such file or directory
> make[2]: *** [crafty] Error 1
> make[2]: Leaving directory `/home/thibaud/crafty-19.9'
> make[1]: *** [crafty-make] Error 2
> make[1]: Leaving directory `/home/thibaud/crafty-19.9'
> make: *** [linux] Error 2
>
> And so what now?
>
> thibaud



Several hints:

- gcc version is often important with crafty - it's often compiled by
bob hyatt with the current stable version of gcc - gcc-3.3.5 or
gcc-3.3.6 is perfect for crafty-19.19 (nineteen.nineteen not
nineteen.nine!) the last version of crafty.
- in opt=' -DSMP -DCPUS=4' means a computer with 4 processors! (Is it
your case?) because bob hyatt have several SMP in his labs.
- in opt='-DDGT' is for wood chess board connected to computer.

In you don't need them you may remove these options.

- When using profiling compilation with gcc 3.3.x you have to compile
your program twice:
first with use of the option -fprofile-arcs and run the program a little
to generate all .da files.

second to remove all .o files and to compile with the option
-fbranch-probabilities instead of -fprofile-arcs to generate profiled
program which uses all .da files

You should have good informations in rec.games.chess.computer.

HTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 10:29 AM
Bradley Reed
 
Posts: n/a
Default Re: crafty chess

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 20 Aug 2005 11:22:56 +0200, OTTAVI Alain wrote:
> Hello,
>
> Thibaud de Borggraef wrote:
>
>> $:~/crafty-19.9$ make linux
>> make target=LINUX \
>> CC=gcc CXX=g++ \
>> CFLAGS=' -Wall -pipe -D_REENTRANT -march=i686 -O3 \
>> -fbranch-probabilities -fforce-mem -fomit-frame-pointer \
>> -fno-gcse -mpreferred-stack-boundary=2' \
>> CXFLAGS= \
>> LDFLAGS=' -lpthread -lstdc++' \
>> opt=' \
>> -DUSE_ASSEMBLY -DFAST \
>> -DPOSIX -DSMP -DCPUS=4 -DDGT' \
>> asm=X86.o \
>> crafty-make
>> make[1]: Entering directory `/home/thibaud/crafty-19.9'
>> make[2]: Entering directory `/home/thibaud/crafty-19.9'
>> gcc -lpthread -lstdc++ -o crafty crafty.o egtb.o X86.o -lm
>> gcc: crafty.o: No such file or directory
>> make[2]: *** [crafty] Error 1
>> make[2]: Leaving directory `/home/thibaud/crafty-19.9'
>> make[1]: *** [crafty-make] Error 2
>> make[1]: Leaving directory `/home/thibaud/crafty-19.9'
>> make: *** [linux] Error 2
>>
>> And so what now?
>>
>> thibaud

>


That is a rather old version of crafty. You may wish to try a newer
version, 19.20 is released (11 versions newer than your 19.9) and
the crafty mailing list hasn't had any linux related build problems
posted.

Crafty list: http://www.cis.uab.edu/mailman/listinfo/crafty-list

Get the crafty source from: ftp://ftp.cis.uab.edu/pub/hyatt/source/

Brad



-----BEGIN PGP SIGNATURE-----

iD8DBQFDDmCzkDp4KjYna1ARAkdJAJ0Z1wa1eAM+BDrL22Y0LO oRczB/SACeLhpr
+0liI7VI+79nt5GvWZJI8ho=
=v7hF
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com