Arena-GUI for Macintosh?!

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

Moderators: hgm, Rebel, chrisw

Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Arena-GUI for Macintosh?!

Post by Norbert Raimund Leisner »

Hello Macibtosh-users,

run Macintosh-compatible chess engines normally on the actual Arena-GUI
or exist problems with some engines? I have installed only Windows XP SP3
on my PC, so I cannot try it out. What´s about Mac Crafty see URL
http://crafty.darwinports.com ?

Best wishes,
Norbert
Kurt Utzinger
Posts: 169
Joined: Sun May 11, 2008 10:31 pm
Location: Switzerland

Re: Arena-GUI for Macintosh?!

Post by Kurt Utzinger »

Norbert Raimund Leisner wrote:Hello Macibtosh-users,
run Macintosh-compatible chess engines normally on the actual Arena-GUI
Best wishes,
Norbert
Never heard that this should be possible. For example, it is however possible
to install Arena under Linux allowing all UCI-engines to run (see also the
NewsTicker at http://www.playwitharena.com/ ) I have however
no idea if this can also be done under the Mac-OS.
Best wishes
Kurt
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Arena-GUI for Macintosh?!

Post by zullil »

I'm not sure I understand what is being asked, but I can say that Arena 2.01 runs quite well on my MacBook (OS X 10.5.6) using wine.

And Crafty compiles easily and runs just fine under xboard, which also works quite well.
Kurt Utzinger
Posts: 169
Joined: Sun May 11, 2008 10:31 pm
Location: Switzerland

Re: Arena-GUI for Macintosh?!

Post by Kurt Utzinger »

zullil wrote:I'm not sure I understand what is being asked, but I can say
that Arena 2.01 runs quite well on my MacBook (OS X 10.5.6) using
wine.

And Crafty compiles easily and runs just fine under xboard, which also
works quite well.
Many thanks for this clarification. This means that Arena runs fine under
Linux and Mac OS with wine. But a further question: in that case all
UCI-engines also run in the Arena-GUI under Mac OS?
Kurt
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Arena-GUI for Macintosh?!

Post by zullil »

Well, I can't test all of them. :wink:

But all those I have tried seem to work correctly. Meaning that I have lost games to GreKo, SOS and Clarabit, at least.

Wine is very helpful. So many engines are releases only as Windows .exe files, and Wine and Arena allow me to try them. Anything released as source typically compiles easily on a Mac.

Louis
krazyken

Re: Arena-GUI for Macintosh?!

Post by krazyken »

GreKo will run natively on a Mac.

you just have to change the
#include <malloc.h>
to
#include <malloc/malloc.h>
in search.c and utils.c
and replace win32.c with unix.c in the Makefile, and it compiles cleanly.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Arena-GUI for Macintosh?!

Post by zullil »

Yes, that's actually how I run it. But the GreKo package contains an .exe file, so I used it to test Arena.

I've always replaced <malloc.h> with <stdlib.h>, but as you say, GreKo compiles easily.
User avatar
WinPooh
Posts: 267
Joined: Fri Mar 17, 2006 8:01 am
Location: Russia
Full name: Vladimir Medvedev

Re: Arena-GUI for Macintosh?!

Post by WinPooh »

Could you please give an advice, what macro could help compiler to detect build on Mac? Knowing this macro I can just change Mac-dependent places in the source code with proper #ifdef's, to make porting even more easy.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Arena-GUI for Macintosh?!

Post by zullil »

WinPooh wrote:Could you please give an advice, what macro could help compiler to detect build on Mac? Knowing this macro I can just change Mac-dependent places in the source code with proper #ifdef's, to make porting even more easy.
Hi Vladimir,

I modified search.cpp

Code: Select all

#include <assert.h>

#ifndef __APPLE__
#include <malloc.h>
#endif

#include <stdlib.h>
#include <string.h>
#include <time.h>
and also utils.cpp

Code: Select all

#include <assert.h>

#ifndef __APPLE__
#include <malloc.h>
#else
#include <stdlib.h>
#endif

and the code compiled cleanly using both g++ and icc on my MacBook. So using __APPLE__ seems to work.

The Makefile also needs to be modified to replace Win32 with unix.
krazyken

Re: Arena-GUI for Macintosh?!

Post by krazyken »

I think stdlib.h can be used instead of malloc.h on all/most current *nix platforms?