lucasart wrote: ↑Sun Dec 12, 2010 11:49 am
Hello
I am trying to compile StockFish 1.9.1, but I get tons of errors.
I am running Linux (Ubuntu 10.10 64bit) and a recent version of g++ (4.4.5), and typing:
make profile-build ARCH=x86-64
Among the errors I get, g++ finds #include nested too deeply. For example position.h is including itself! And there's no #pragma once or #ifdef to stop the infinite self inclusion of the file, so the error seems logical to me...
I get the same errors if I just compile the simply way:
g++ -O3 -o ./sf *.cpp
Has anyone managed to compile it with gcc ?
Thank you
Oha, I'll take a different route.
Here Linux MX, download Stockfish, open the Linux terminal, gcc is automatically preinstalled,
$ gcc --version
gcc (Debian 12.2.0) 12.2.0
Then go to the Downloads folder and unpack the Stockfish.
Navigate to the directory where the Makefile is located.
make
Now wait... until steps 1,2,3 and 4 are completed
open the file manager: Linux - Thunar, in the src folder is then located
stockfish without extension (exe)!
You then drag this file, without an extension, to the desktop
But you can't just start it there with a double click! tricky!
Right-click on the desktop and click on “Create Starter” in the menu that appears.
enter any name, specify directories,
...191-ja/src/stockfish
...191-yes/src
Check the box for execute in the terminal, click create
complete
I just did this and it works.