Page 2 of 2

Re: cutechess-cli produces no screen output under Linux

Posted: Wed Feb 21, 2018 9:03 pm
by Sven
BeyondCritics wrote:Still no cigar.
Maybe a problem with your Qt installation?

Re: cutechess-cli produces no screen output under Linux

Posted: Thu Feb 22, 2018 8:18 am
by BeyondCritics
Sven wrote:
BeyondCritics wrote:Still no cigar.
Maybe a problem with your Qt installation?
Good idea.
I checked all dependencies listed on this (old) page for ubuntu 16.04 https://launchpad.net/ubuntu/xenial/i38 ... .2+0.0.1-1,
but could found no problems. The ubuntu wiki https://wiki.ubuntuusers.de/Qt/
demands

Code: Select all

qt5-default 
or

Code: Select all

qt4-default
and i have them both.
There was a cutechess package for ubuntu 16.04, but apparently it was abandoned for ubuntu 17.10. Why? Maybe because the maintainer faced a similar problem. That would be bad news.

Re: cutechess-cli produces no screen output under Linux

Posted: Thu Feb 22, 2018 8:47 am
by mroh
try without -debug or try this:

vi ~/.config/QtProject/qtlogging.ini and set "*.debug" to true:
*.debug=true

I documented this also here

Re: cutechess-cli produces no screen output under Linux

Posted: Thu Feb 22, 2018 10:09 am
by pferd
Some observations:

I compiled the latest cutechess from github on my Laptop running Ubuntu 17.10. I ended up with the same problems described by Michael and cutechess-cli won't produce any console output.

I copied the folder to my main machine(Arch Linux) and the very same binary runs without problems. :shock:

SOLVED: cutechess-cli produces no screen output under Linux

Posted: Thu Feb 22, 2018 10:28 am
by BeyondCritics
mroh wrote:try without -debug or try this:

vi ~/.config/QtProject/qtlogging.ini and set "*.debug" to true:
*.debug=true

I documented this also here
Heureka! That solved it for me. Thank you very much!
However i don't like, that this fix messes with my global configuration. As explained herehttps://stackoverflow.com/questions/285 ... g-messages, it is possible to set the logging level for each application locally, just append

Code: Select all

QT_LOGGING_RULES="*.debug=true"
to its environment.

My working script under Linux looks as follows:

Code: Select all

#!/bin/sh

CUTE_CHESS_CLI="/usr/games/cutechess-cli"
MASTER_PATH="/home/oliver/bin/stockfish-master"
TESTEE_PATH="/home/oliver/git/chess/stockfish/master/src/stockfish_kbnk"
OPENINGS="/home/oliver/data/Software/Chess/2moves_v1.pgn"
SYZYGY="/home/oliver/data/syzygy/"

QT_LOGGING_RULES="*.debug=true" $CUTE_CHESS_CLI  -engine name=testee cmd="$TESTEE_PATH" -engine name=master cmd="$MASTER_PATH" -each proto=uci option.Hash=4 tc=1+0.1 -openings file=$OPENINGS order=random -pgnout /run/user/1000/test.pgn -ratinginterval 2 -concurrency 2 -repeat -recover -resign movecount=6 score=100 -draw movenumber=10 movecount=6 score=20 -rounds 2 -tb $SYZYGY -sprt elo0=0 elo1=2 alpha=0.05 beta=0.05 


Re: SOLVED: cutechess-cli produces no screen output under Li

Posted: Thu Feb 22, 2018 11:48 am
by AlvaroBegue
I am still using ubuntu 16.04 LTS. So glad someone else figured it out, since I will probably encounter the same problem in a couple of months, when I update to 18.04.

Thanks!

Re: cutechess-cli produces no screen output under Linux

Posted: Mon Jul 20, 2020 3:13 pm
by OliverBr
On a Red Hat 7.7 those were the necessary steps to install cutechess(cli).

Code: Select all

yum install qt5-qtsvg
wget https://github.com/cutechess/cutechess/releases/download/gui-1.0.0/cutechess-20170720.1.0.0.1.0.0-1.x86_64.rpm
rpm -i cutechess-20170720.1.0.0.1.0.0-1.x86_64.rpm
export QT_LOGGING_RULES="*.debug=true"
The last step is necessary to get a text output.