computerchess on apple

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: computerchess on apple

Post by JoshPettus »

Ok, here give this a try

https://www.dropbox.com/s/m5e8dh3o6ms33 ... X.dmg?dl=0

I fear we have done a lot of moving around of files with the internal master.conf so you have to remove the old user config file first.

That is, before launching, open up /Applications/Utilities/Terminal.app and type:

Code: Select all

rm ~/Library/Preferences/Xboard.conf
or hold alt, go to the GO menu, and then Library, then remove it manually.
Else it wont find the board textures or fairymax.
---------------
For release I should probably rename the user conf to
Xboard-4.8.conf to avoid such issues.
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: computerchess on apple

Post by JoshPettus »

For reference, this is what it should look like:

Image[/url]
User avatar
mclane
Posts: 18971
Joined: Thu Mar 09, 2006 6:40 pm
Location: US of Europe, germany
Full name: Thorsten Czub

Re: computerchess on apple

Post by mclane »

Yes i See now all the Check boxes.
But when I want to load 1st engine I installed, stockfish5 I do get an error message
Failed to start first chess program polyglot -noini-ec.
Reason : image not found


It seems I can also not load Komodo as 2nd engine for the same reason.


I have no idea how to copy these error messages from the Mac mini into the
Clipboard, so I cannot 100 % write it down here.

Both engines cannot be Installed. They appear in the engine list, but when you want to load them I get this error message.


I feel a little helpless in the apple world.
What seems like a fairy tale today may be reality tomorrow.
Here we have a fairy tale of the day after tomorrow....
User avatar
hgm
Posts: 28486
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: computerchess on apple

Post by hgm »

That sounds like it cannot find the Polyglot executable. That should be in the App, however. So it must be searching it in a wrong folder somewhere.

Question for Joshua: Is the -adapterCommand configured as {./polyglot -noini ...} to account for this Linux quirk of not looking for executables in the current directory? On Linux we don't have to do that, because Polyglot is never in the current directory, but in /usr/games/, and thus generally available as a plain 'polyglot' command. But to use the Polyglot in the bundle we change to -polyglotDirectory, and try to run it from there.

When you test on your system you might never notice this problem, because you likely also have a Polyglot in /usr/games, which would get used instead!

If the "./" prefix is not there, Thorsten could try to run from the command line:

xboard -adapterCommand {./polyglot -noini -ec %fcp -ed %fd}

and then try again to load a UCI engine.
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: computerchess on apple

Post by JoshPettus »

Did you remove the old user conf like I told you above?

Does the installed fruit work?
-------------
In the master conf polyglot dir is set to
~~/Contents/Resources/bin

The app should find it. Or at least it does for me. I removed the old polyglot I had on my system to make sure nothing was in path, confusing me.

The adapter command is the same as in linux:

-adapterCommand 'polyglot -noini -ec "%fcp" -ed "%fd" -uci NalimovCache=%defaultCacheSizeEGTB -pg ShowTbHits=true'
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: computerchess on apple

Post by JoshPettus »

the prefix isn't needed, because the GTK app launcher puts the DataDir/Contents/Resource/bin folder in path when you start Xboard. This was why i had the engines in that folder for so long as oppose to their own folders. but since we defign ~~/ as data dir I can move them where ever inside the app.

So technically, PolyglotDir isn't needed. I don't understand, as such, it should find it regardless. I wonder if he has to set permissions for polyglot to execute?
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: computerchess on apple

Post by JoshPettus »

I apologize for all these troubles, thank-you so much for being my guinea pig :)

I think it must be a permissions issue so I added

chmod -R +X $bundle_bin
to the launching script ($bundle_bin is defined there)

I re-uploaded the package if you could try it again

https://www.dropbox.com/s/m5e8dh3o6ms33 ... X.dmg?dl=0
(You won't have to remove the user conf again unless you didn't do it before)
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: computerchess on apple

Post by JoshPettus »

Whoops, that's suppose to be a lowercase x
re-uploaded.
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: computerchess on apple

Post by JoshPettus »

If someone could give this a try, that would be great. Polyglot really needs to work. :)
User avatar
mclane
Posts: 18971
Joined: Thu Mar 09, 2006 6:40 pm
Location: US of Europe, germany
Full name: Thorsten Czub

Re: computerchess on apple

Post by mclane »

i get the message

Failed to start first chess program polyglot -noini -ec */Users/user/documents/schach/stockfish-5-mac/Mac/stockfish-5-64" -ed*.* -uci NalimovCache=4 -pg ShowTbHits=true on localhost: Reason: image not found

sorry for the delay but i had to go to work.
yes i did delete previous settings in the terminal program with the line you told me. i copy pasted it into terminal and pressed return on the computer and it was executed IMO.
What seems like a fairy tale today may be reality tomorrow.
Here we have a fairy tale of the day after tomorrow....