I have been unsuccessful in compiling cutechess-cli (using the latest source from GitHub), and I do not know why. I have tried using Qt 4.84 to create the makefile' and use MinGW 4.4 to compile the source. This is the output:
'-lcutechess' means the cutechess library (cutechess.dll) which is needed by cutechess-cli. The easiest way to compile everything (lib, cli and gui) is to run qmake and make in the root cutechess folder. You can also build cutechess-cli and cutechess library into the same binary by running qmake with the "-config static" argument.
You could also just download the binary package that I made for the Stockfish testing framework: http://koti.mbnet.fi/~ilaripih/bin/cute ... -win32.zip
It's based on the latest commit at Github, so it's definitely bleeding edge, but apparently working quite well (over 4 million games played without any problems that I'm aware of).
When compiling with Mingw32 I needed to change something in the GTB src - sysport.h' '.
__MINGW32__' instead of 'MINGW' otherwise build fails looking for 'sys/resource.h'
'-lcutechess' means the cutechess library (cutechess.dll) which is needed by cutechess-cli. The easiest way to compile everything (lib, cli and gui) is to run qmake and make in the root cutechess folder. You can also build cutechess-cli and cutechess library into the same binary by running qmake with the "-config static" argument.
You could also just download the binary package that I made for the Stockfish testing framework: http://koti.mbnet.fi/~ilaripih/bin/cute ... -win32.zip
It's based on the latest commit at Github, so it's definitely bleeding edge, but apparently working quite well (over 4 million games played without any problems that I'm aware of).
Hi Ilari,
I have been using the binary used in the Stockfish testing, and I have had no problems. In fact, if it is possible to change the drawelo value in that binary from the commandline, or if the drawelo value has been changed to a value closer to 240, then I will have no reason to try to compile the source. If this is not the case, then I will have to determine how to compile it.
After your first response, I realized that cutechess.dll was needed and that it had to be located in the Qt folder (I think). Now, I am having trouble with the sysport.c file when compiling (I will include the compiler output at the end of the post). Perhaps if you could tell me which compiler and which version of Qt you use to compile cutechess in Windows, I could start from scratch and try again.
Jim Ablett wrote:When compiling with Mingw32 I needed to change something in the GTB src - sysport.h' '.
__MINGW32__' instead of 'MINGW' otherwise build fails looking for 'sys/resource.h'
Adam Hair wrote:I would like to be certain if I read your statement correctly, Jim. Do I replace 'MINGW' in the sysport.h file with '_MINGW32_' or with '._MINGW32_' ?
__MINGW32__
I didn't have any other issues building with static or shared libraries.
Are you sure your QT environment is set correctly?
Adam Hair wrote:I would like to be certain if I read your statement correctly, Jim. Do I replace 'MINGW' in the sysport.h file with '_MINGW32_' or with '._MINGW32_' ?
__MINGW32__
I didn't have any other issues building with static or shared libraries.
Are you sure your QT environment is set correctly?
Adam Hair wrote:I would like to be certain if I read your statement correctly, Jim. Do I replace 'MINGW' in the sysport.h file with '_MINGW32_' or with '._MINGW32_' ?
__MINGW32__
I didn't have any other issues building with static or shared libraries.
Are you sure your QT environment is set correctly?
That was what I thought. Unfortunately, it still failed for me while looking for 'sys/resource.h'.
I am fairly certain that I have it set correctly, but I will read over the link you provided to see if I made a mistake.
There are about five places in sysport.h where you must change it.
Make sure you are using mingw32-make and not make.
Do a 'mingw32-make clean' and then mingw32-make.
According to the tutorial, I needed to add two environment variables, so I did as it directed, then I rebooted. In 'sysport.h', I replaced all 5 instances of 'MINGW' with '_MINGW32_'. I ran 'mingw32-make clean', then ran 'mingw32-make'. Then, I pulled my hair out because 'sys/resource.h' was not found.
I am using Qt 4.8.4 and MinGW 4.40. Since I am confident that Qt is installed properly, I am going to redownload with MinGW and try again.