downloading xboard

Hello!

I downloaded the sources of xboard from here: http://ftp.gnu.org/gnu/xboard/ . Then I didn`t extract the files (should I?) but saved the files so they are visible in my downloads (xboard-4.7.2.tar.gz). Then I opened the terminal window and typed: sudo zypper install xboard-4.7.2.tar.gz . After that the terminal window showed:

Loading repository data…
Reading installed packages…
‘xboard-4.7.2.tar.gz’ not found in package names. Trying capabilities.
No provider of ‘xboard-4.7.2.tar.gz’ found.
Resolving package dependencies…

Does anyone know what I should do? /or how can I change directory to the source files in the terminal window?

Hi
You can install a source file, it needs to be extracted and compiled…

Why not just install a slightly older version from packman and then request via the packman mailing list to update the version?

Hi
Better yet, 4.7.2 is in the Games repo;
http://software.opensuse.org/package/xboard

‘xboard-4.7.2.tar.gz’ not found in package names. Trying capabilities.
No provider of ‘xboard-4.7.2.tar.gz’ found.

are you trying to install the zipped SOURCECODE file as if it were a rpm ???

that will not work

you have to compile the SORUCECODE
then install it

it is NOT a precompiled “package” you can install with zypper

Then I didn`t extract the files (should I?)

YES
then read the two files in it called README and INSTALL
you will also have to install EVERY needed program that is needed to build the source
BEFORE you can build this source

but do yourself a very big favor and use the packagemanager
and use the games repo as “malcolmlewis” mentioned
and the "add and install software " GUI in yast2
or the terminal using “zypper”

Thx https://forums.opensuse.org/images/icons/icon7.png

Now I installed xboard from here http://software.opensuse.org/package/xboard and chose “unstable packages” and clicked openSUSE 13.1 and installed games 4.7.2 from the list. However now I can open xboard but it complains failed to start first chess program fairymax on localhost: fairymax: No such file or directory

I would like to install stockfish to xboard and polyglot from here: https://sites.google.com/site/hispanicchessengines/polyglot

So I first need to extract the polyglot file and stockfish files? After that I planned to use the command: sudo zypper install xboard polyglot stockfish and see where I get

On Sat 15 Feb 2014 04:36:01 PM CST, matrix wrote:

I would like to install stockfish to xboard and polyglot from here:
https://sites.google.com/site/hispanicchessengines/polyglot

So I first need to extract the polyglot file and stockfish files? After
that I planned to use the command: sudo zypper install xboard polyglot
stockfish and see where I get

Hi
It doesn’t work like that unfortunately, they need extracting compiling
and installing, basically turn the source into a compiled application.
There are normally readme’s included on what is needed to be installed
to compile etc.

The zypper application is for installing rpm’s which adds extra steps
from the above to ‘package’ up all the bits and pieces and add
additional steps (macros) to do things like run a macro after the
program is installed to add to the menu system, or start a daemon etc

Windows applications don’t work nativeley in linux, there is wine, but
then you need to install all the windows associated apps to maybe get
it to work. You can use virtualization to install a copy of windows and
run your applications, there is also a product called crossover (wine
based) that can be used YMMV for this though.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Polyglot is available from Packman:
http://packman.links2linux.de/package/polyglot

So add the Packman repo if you haven’t done so already (for multimedia stuff f.e.), either in YaST->Software Repositories->Add->Community Repositories, or by running:

sudo zypper ar http://packman.inode.at/suse/13.1/ Packman

Then you can install polyglot with YaST->Software Management or:

sudo zypper in polyglot

No idea about stockfish though.

But other engines available as ready packages for openSUSE (and usable with xboard) include crafty and phalanx. The former is available in the Packman repo as well, the latter is even included in the standard distribution, so you can just install it in YaST->Software Management and with zypper.

Ok…

Thanks for your advices. I decided download stockfish DD source code from here: http://stockfishchess.org/ and extracted into stockfish-dd-src filefolder. When I double clicked it, it opens some files like polyglot.ini, Readme.md, src and src_c11. I opened readme and there was: ### Compiling it yourself

On Unix-like systems, it should be possible to compile Stockfish
directly from the source code with the included Makefile.
In general it is recommended to run make help to see a list of make
targets with corresponding descriptions.

I went back to the stockfish-dd-src filefolder and clicked on src showing some random files. I found Makefile and there was something like: ### Section 1. General Configuration

==========================================================================

Establish the operating system name

UNAME = $(shell uname)

Executable name

EXE = stockfish

Installation dir definitions

PREFIX = /usr/local

The question is how can I compile stockfish? Help would be appreciated, thx

Extract the archive you downloaded, open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”.
As the documentation says, you can also run “make help” to get a list of options you can add to “make”.

Most likely you will have to install some other packages as well though, like “make” and a C compiler.
Better run YaST->Software Management, click on “View”->“Patterns” and install the C/C++ development pattern.

On 2014-02-15 21:16, matrix wrote:
>
> Ok…
>
> stockfish-dd-src filefolder. When I double clicked it, it opens some

> I went back to the stockfish-dd-src filefolder and clicked on src

> The question is how can I compile stockfish? Help would be appreciated,

Well… first thing, you can not click your way around. You need working
on a terminal. Are you comfortable with that? :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Ok thx

Now I installed Meta package for pattern development C++ and GNUmake + 140 other things(during the installation). “Extract the archive you downloaded, open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”.”
I have already extracted the stockfish into stockfish-dd-src filefolder. Im having trouble following "open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”. I opened terminal window and typed “make” and it says make: *** No targets specified and no makefile found. Stop.

I can go downloads > stockfish-dd-src > src > Makefile.

Ok thx

Now I installed Meta package for pattern development C++ and GNUmake + 140 other things(during the installation). “Extract the archive you downloaded, open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”.”
I have already extracted the stockfish into stockfish-dd-src filefolder. Im having trouble following "open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”. I opened terminal window and typed “make” and it says make: *** No targets specified and no makefile found. Stop.

I can go downloads > stockfish-dd-src > src > Makefile.

If I understand you correctly, you should type this to make the directory containing the Makefile the current directory:

cd ~/Downloads/stockfish-dd-src/src

Then running “make” should work.

To install it, you would have to run “sudo make install” afterwards, it will be installed to /usr/local/bin then by default (that’s why you need to run it with root rights, i.e. sudo).

Ok this showed in the terminal window:

kimon@Host-001:~> cd ~/Downloads/stockfish-dd-src/src
kimon@Host-001:~/Downloads/stockfish-dd-src/src> make

To compile stockfish, type:

make target ARCH=arch [COMP=comp]

Supported targets:

build > Standard build
signature-build > Standard build with embedded signature
profile-build > PGO build
signature-profile-build > PGO build with embedded signature
strip > Strip executable
install > Install executable
clean > Clean up

Supported archs:

x86-64 > x86 64-bit
x86-64-modern > x86 64-bit with popcnt support
x86-32 > x86 32-bit with SSE support
x86-32-old > x86 32-bit fall back for old hardware
linux-ppc-64 > PPC-Linux 64 bit
osx-ppc-64 > PPC-Mac OS X 64 bit
osx-ppc-32 > PPC-Mac OS X 32 bit
osx-x86-64 > x86-Mac OS X 64 bit
osx-x86-32 > x86-Mac OS X 32 bit
armv7 > ARMv7 32 bit
general-64 > unspecified 64-bit
general-32 > unspecified 32-bit

Supported compilers:

gcc > Gnu compiler (default)
mingw > Gnu compiler with MinGW under Windows
clang > LLVM Clang compiler
icc > Intel compiler

Non-standard targets:

make hpux > Compile for HP-UX. Compiler = aCC

Examples. If you don’t know what to do, you likely want to run:

make build ARCH=x86-64 (This is for 64-bit systems)
make build ARCH=x86-32 (This is for 32-bit systems)

kimon@Host-001:~/Downloads/stockfish-dd-src/src> make target ARCH=arch [COMP=comp]
make: *** No rule to make target `target’. Stop.
kimon@Host-001:~/Downloads/stockfish-dd-src/src>

OK, you have to run “make build” then.

Or try one of those 2 lines, depending on whether you have a 32bit or 64bit system:

On a related subject, but not 100% on topic, sometime back I created a wiki on Chess game applications for openSUSE. I mention xboard and other chess applications in that wiki. Shortly after a large openSUSE community wiki migration activity took place, where a new standard for wiki formatting was requested and implemented, and that chess wiki that did not meet that standard, wiki such as that were archived and eventually made difficult to access. The idea being to encourage the migration.

Unfortunately, when this migration occured, for personal and employment reasons (wrt the job that actually pays me a salary and helps pays the rent), I no longer had the time to maintain such. Instead, I copied the wiki information here: openSUSE chess applications under oldcpu page

I have not updated this for sometime - and I’m hoping in a few years from now, when I retire from paid employed work, I’ll be able to spend more time updating such wiki that I created a number of years in the past.

Ok

Now I tried this command: make build ARCH=x86-64 after that showed:

kimon@Host-001:~/Downloads/stockfish-dd-src/src> make build ARCH=x86-64
make ARCH=x86-64 COMP=gcc config-sanity
make[1]: Entering directory `/home/kimon/Downloads/stockfish-dd-src/src’

Config:
debug: ‘no’
optimize: ‘yes’
arch: ‘x86_64’
os: ‘any’
bits: ‘64’
prefetch: ‘yes’
bsfq: ‘yes’
popcnt: ‘no’
sse: ‘yes’

Flags:
CXX: g++
CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto
LDFLAGS: -lpthread -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto

Testing config sanity. If this fails, try ‘make help’ …

make[1]: Leaving directory /home/kimon/Downloads/stockfish-dd-src/src' make ARCH=x86-64 COMP=gcc all make[1]: Entering directory /home/kimon/Downloads/stockfish-dd-src/src’
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o benchmark.o benchmark.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o bitbase.o bitbase.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o bitboard.o bitboard.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o book.o book.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o endgame.o endgame.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o evaluate.o evaluate.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o main.o main.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o material.o material.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o misc.o misc.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o movegen.o movegen.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o movepick.o movepick.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o notation.o notation.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o pawns.o pawns.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o position.o position.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o search.o search.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o thread.o thread.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o timeman.o timeman.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o tt.o tt.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o uci.o uci.cpp
g++ -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto -c -o ucioption.o ucioption.cpp
g++ -o stockfish benchmark.o bitbase.o bitboard.o book.o endgame.o evaluate.o main.o material.o misc.o movegen.o movepick.o notation.o pawns.o position.o search.o thread.o timeman.o tt.o uci.o ucioption.o -lpthread -Wall -Wcast-qual -fno-exceptions -fno-rtti -ansi -pedantic -Wno-long-long -Wextra -Wshadow -DNDEBUG -O3 -DIS_64BIT -msse -DUSE_BSFQ -flto
make[1]: Leaving directory `/home/kimon/Downloads/stockfish-dd-src/src’
kimon@Host-001:~/Downloads/stockfish-dd-src/src>

So now I have compiled and installed stockfish successfully?

It compiled successfully, yes.
To install it, run:

sudo make install

But I don’t know atm how to configure xboard to use it.
I have to try myself later.

What I do with my Packman packager installed polygot and stockfish20, with xboard already installed, to run the program is send the command:


 xboard -size medium -fd '/usr/share/stockfish20' -fcp 'polyglot stockfish20.ini' 

One needs a ‘stockfish20.ini’ file, and I do not know if that is automatically generated when stockfish is compiled/installed. I can post the packman packager packaged version of the file here if it is of any help. Its not large, only ~50 lines or so, with configuration information (specifies both book file, specifies the engine command, specifies various hash information such as book, game play tuning, etc … ).