Please help installing Chessx

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Please help installing Chessx

Post by zullil »

Ponti wrote:~/chessx$ sudo make

obj_rel/guessengine.o src/guess/guessengine.cpp
In file included from src/guess/guessengine.cpp:16:
src/guess/guessengine.h:28:25: error: QElapsedTimer: Arquivo ou diretório não encontrado
In file included from src/guess/guessengine.cpp:16:
src/guess/guessengine.h:125: error: ‘QElapsedTimer’ does not name a type
src/guess/guessengine.cpp: In member function ‘int Guess::Engine::Think(Guess::MoveList*)’:
src/guess/guessengine.cpp:1352: error: ‘Elapsed’ was not declared in this scope
src/guess/guessengine.cpp: In member function ‘void Guess::Engine::PrintPV(Guess::uint, int, const char*)’:
src/guess/guessengine.cpp:2256: error: ‘Elapsed’ was not declared in this scope
src/guess/guessengine.cpp: In member function ‘bool Guess::Engine::OutOfTime()’:
src/guess/guessengine.cpp:2312: error: ‘Elapsed’ was not declared in this scope
make: ** [obj_rel/guessengine.o] Erro 1
Two suggestions:

1) Download more recent source code, in which this issue is apparently fixed. Try here

http://sourceforge.net/p/chessx/code/15 ... ath=/trunk

2) Update your qt setup to version 4.8.

(Doing step 1 above may be enough.)
User avatar
pocopito
Posts: 238
Joined: Tue Jul 12, 2011 1:31 pm

Re: Please help installing Chessx

Post by pocopito »

Still having a hard time installing chessx?

Well I have to recognise that having come experience installing linux software from the sources I couldn't make it but with the help of this link:
http://forums.linuxmint.com/viewtopic.php?f=42&t=124358

I guess a summary could be:

1- Download and decompress the code
2- "cd" to the new folder (in my case, ~/soft/chessx) (In linux systems, "~" means "your home folder")
3- Once there, it seems the process is just
3a: $ qmake
3b: $ make

And now, in the ~/soft/chessx/release folder you should have a "chessx" executable.

If you want to be able to call chessx from anywhere one option (but probably not the most elegant) is to create a symbolic link:
$ sudo ln -s ~/soft/chessx/release/chessx /usr/bin/chessx

Before compiling successfully I had to install some extra libraries:
$ sudo apt-get install qtsvg5-dbg libqt5svg5

But probably it's different in each case.

Best

E Diaz
Two first meanings of the dutch word "leren":
1. leren [vc] (learn, larn, acquire) acquire or gain knowledge or skills.
2. leren [v] (teach, learn, instruct) impart skills or knowledge to.