need help in compiling xboard for the Mac gtk version

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
hgm
Posts: 28480
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: need help in compiling xboard for the Mac gtk version

Post by hgm »

In XBoard the number of cores is controlled through the Common Engine Settings dialog, like Hash size (which is also not in the Engine Settings dialog).

The quotes around %fcp / %fd were intended to solve problems you would have when either of these filenames contains spaces, or the engine startup command needs arguments. But I am not even sure this would work with the OS X Polygot compile (or if UCI engines ever need arguments). I guess that when you want to use a Windows .exe for the engine you would need something like -fcp "wine ./ENGINE.exe", and this would not work if Polyglot cannot somehow be told that ./ENGINE.exe is not a separate Polyglot argument, but part of the -ec value. To get quotes (and the required spaces) in the -adapterCommand value you would of course have to surround that value with a different type of 'quotes', e.g. {}, or 'escape' them with backslashes.

I am also not sure the -adapterCommand you post here would execute the Polyglot binary that is in the App bundle, if you have another one in, say, /usr/games. (Which of course would not lead to any oservable effects if the versions were the same.)
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: need help in compiling xboard for the Mac gtk version

Post by MikeB »

In XBoard the number of cores is controlled through the Common Engine Settings dialog, like Hash size (which is also not in the Engine Settings dialog).
ok , makes sense
The quotes around %fcp / %fd were intended to solve problems you would have when either of these filenames contains spaces, or the engine startup command needs arguments. But I am not even sure this would work with the OS X Polygot compile (or if UCI engines ever need arguments). I guess that when you want to use a Windows .exe for the engine you would need something like -fcp "wine ./ENGINE.exe", and this would not work if Polyglot cannot somehow be told that ./ENGINE.exe is not a separate Polyglot argument, but part of the -ec value. To get quotes (and the required spaces) in the -adapterCommand value you would of course have to surround that value with a different type of 'quotes', e.g. {}, or 'escape' them with backslashes.
ok - not really interested in running windows engines under wine - so n/a to me.
I am also not sure the -adapterCommand you post here would execute the Polyglot binary that is in the App bundle, if you have another one in, say, /usr/games. (Which of course would not lead to any oservable effects if the versions were the same.)
It is calling the polyglot in the bundle, confirmed by changing the name of the polyglot to something else and it broke and the error message point to the bundle path.

So for my purposes, I'm good shape. Not sure if you noticed my png files for the xboardwood squares - they are homebrewed and you have my permission to include them in xboard/winbaord

Image
image hosting sites

Doctored photos of my chessboard at home - slightly altered to make for better viewing in xBoard

https://www.dropbox.com/s/ue8l91tk8k2bn ... d.png?dl=0

https://www.dropbox.com/s/9cxd8ucpc2os3 ... l.png?dl=0

thanks again for all your help and assistance