Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-07 Thread Achim Mueller
* Christian Anthon <[EMAIL PROTECTED]> [080407 13:33]:
>
> Hi Achim,
>
> when you get things working, perhaps you could add to the INSTALL file with 
> instructions for people wanting to build gnubg on macs.

Besides 3D and threads everthing is fine so far. There are two options
to make a package:

1. Macports - there is no maintainer yet, so I'll probably take
maintainership of the port. Gnubg will be installed in /opt then.

2. There is an option of making an install archive (for less experienced
users), but I'm not sure about the paths yet.

Ciao

Achim



___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-07 Thread Paul Gideon Dann
  When I couldn't get GnuBG to compile on my Mac, I decided to port 
GnuBG to CMake.  I only needed the command-line version for my project, 
so I didn't carry on to make it compile the GUI, but CMake does a much 
better job of cross-platform compilation than autotools, and the files 
are much easier to configure too, so if anyone's interested in 
continuing the port, please do get in touch.


Paul


Christian Anthon wrote:

Achim Mueller wrote:

* Michael Petch <[EMAIL PROTECTED]> [080407 09:27]:
One question I have, and it may have been related to the pango fix. 
Where

did you install Fink? Is it in a directory that happens to contain ".a"
(Without the quotes) somewhere in the path? I seem to recall now the 
pango
issue may have been because I was building into a path that has 
GnuBG.app in

the middle of it (/Applications/GnuBG.app/Contents/MacOS/fink). I think
there was a SED bug in a script that incorrectly transforms the ".a" 
in the
middle to something else (The intent was that they were trying to 
rename

some files with .a extensions to .la .


Fink is in /sw, pango in /sw/include/pango-1.0/.

If you have installed fink into a place other than the default you 
could try

seeing what happens if you build using the default install paths.


I didn't change anything.
Ciao

Achim



___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Hi Achim,

when you get things working, perhaps you could add to the INSTALL file 
with instructions for people wanting to build gnubg on macs.


Christian.


___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg



___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-07 Thread Christian Anthon

Achim Mueller wrote:

* Michael Petch <[EMAIL PROTECTED]> [080407 09:27]:

One question I have, and it may have been related to the pango fix. Where
did you install Fink? Is it in a directory that happens to contain ".a"
(Without the quotes) somewhere in the path? I seem to recall now the pango
issue may have been because I was building into a path that has GnuBG.app in
the middle of it (/Applications/GnuBG.app/Contents/MacOS/fink). I think
there was a SED bug in a script that incorrectly transforms the ".a" in the
middle to something else (The intent was that they were trying to rename
some files with .a extensions to .la .


Fink is in /sw, pango in /sw/include/pango-1.0/.
 

If you have installed fink into a place other than the default you could try
seeing what happens if you build using the default install paths.


I didn't change anything. 


Ciao

Achim



___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Hi Achim,

when you get things working, perhaps you could add to the INSTALL file 
with instructions for people wanting to build gnubg on macs.


Christian.


___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-07 Thread Achim Mueller
* Michael Petch <[EMAIL PROTECTED]> [080407 09:27]:
> 
> One question I have, and it may have been related to the pango fix. Where
> did you install Fink? Is it in a directory that happens to contain ".a"
> (Without the quotes) somewhere in the path? I seem to recall now the pango
> issue may have been because I was building into a path that has GnuBG.app in
> the middle of it (/Applications/GnuBG.app/Contents/MacOS/fink). I think
> there was a SED bug in a script that incorrectly transforms the ".a" in the
> middle to something else (The intent was that they were trying to rename
> some files with .a extensions to .la .

Fink is in /sw, pango in /sw/include/pango-1.0/.
 
> If you have installed fink into a place other than the default you could try
> seeing what happens if you build using the default install paths.

I didn't change anything. 

Ciao

Achim



___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-06 Thread Michael Petch

One question I have, and it may have been related to the pango fix. Where
did you install Fink? Is it in a directory that happens to contain ".a"
(Without the quotes) somewhere in the path? I seem to recall now the pango
issue may have been because I was building into a path that has GnuBG.app in
the middle of it (/Applications/GnuBG.app/Contents/MacOS/fink). I think
there was a SED bug in a script that incorrectly transforms the ".a" in the
middle to something else (The intent was that they were trying to rename
some files with .a extensions to .la .

If you have installed fink into a place other than the default you could try
seeing what happens if you build using the default install paths.

On 4/6/08 7:38 PM, "Achim Mueller" <[EMAIL PROTECTED]> wrote:

> This worked, thx a lot. But now to the next problem:
> 
> There are two ways installing OSS on Leopard, fink (what I tried) and
> Macports. On fink I run into a problem with pangocairo.h. Unfortunately
> this file doesn't seem to be in any of the (fink) pango packages
> anymore.
> 
> So I tried Macports, which is regarding to some reports in the internet,
> the better solution.
> 
> I started compiling again, but now I get this error:
> 




___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-06 Thread Michael Petch

On 4/6/08 8:05 PM, "Michael Petch" <[EMAIL PROTECTED]> wrote:

> 
> Regarding pangocairo, my previous post on buidling OS/X indicated this as
> well. Glad I wasn't the only one. The problem is in Pango autoconf process
> as I recall. It incorrectly determines that cairo isn't installed (And I bet
> you had it installed), so then it builds pango without the pangocairo
> component. I'll have to look at my older build to determine what change it
> was that I made to pango but the fix wasn't major.
> 
This of course is in reference to the fink build. I have been busy as of
late, but I did get an OS/X gnubg to build for PPC (You run into more
problems with buidling for PPC than X86). Unfortunately it was too unusable
to send out (The GUI hangs shortly after it is started). Never got a chance
to investigate.




___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-06 Thread Michael Petch

Regarding pangocairo, my previous post on buidling OS/X indicated this as
well. Glad I wasn't the only one. The problem is in Pango autoconf process
as I recall. It incorrectly determines that cairo isn't installed (And I bet
you had it installed), so then it builds pango without the pangocairo
component. I'll have to look at my older build to determine what change it
was that I made to pango but the fix wasn't major.




___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg


Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-06 Thread Achim Mueller
This worked, thx a lot. But now to the next problem:

There are two ways installing OSS on Leopard, fink (what I tried) and
Macports. On fink I run into a problem with pangocairo.h. Unfortunately
this file doesn't seem to be in any of the (fink) pango packages
anymore.

So I tried Macports, which is regarding to some reports in the internet,
the better solution.

I started compiling again, but now I get this error:

gnubg.c: In function ‘NextTokenGeneral’:
gnubg.c:2119: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘ParsePlayer’:
gnubg.c:2316: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c: In function ‘ParsePosition’:
gnubg.c:2344: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c:2347: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c:2394: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c:2435: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c: In function ‘ParseKeyValue’:
gnubg.c:2451: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘CompareNames’:
gnubg.c:2468: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘SetToggle’:
gnubg.c:2525: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c: In function ‘HandleCommand’:
gnubg.c:2660: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c: In function ‘ShowBoard’:
gnubg.c:2858: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c:2904: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c:2918: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c:2935: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘FormatPrompt’:
gnubg.c:2990: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c:3034: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘CommandEval’:
gnubg.c:3067: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c: In function ‘FindHelpCommand’:
gnubg.c:3100: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c: In function ‘CheckCommand’:
gnubg.c:3138: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c: In function ‘FormatMoveHint’:
gnubg.c:3227: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c:3232: warning: incompatible implicit declaration of built-in
function ‘strcat’
gnubg.c:3234: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘HintChequer’:
gnubg.c:3634: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c: In function ‘GetMove’:
gnubg.c:3849: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c: In function ‘CommandRollout’:
gnubg.c:3910: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c:4008: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c:4037: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c: In function ‘LoadCommands’:
gnubg.c:4081: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘CommandCopy’:
gnubg.c:4198: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c:4214: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c:4229: warning: incompatible implicit declaration of built-in
function ‘memcpy’
gnubg.c:4236: warning: incompatible implicit declaration of built-in
function ‘strcat’
gnubg.c: In function ‘SaveRolloutSettings’:
gnubg.c:4413: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c:4415: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c: In function ‘SaveEvalSetupSettings’:
gnubg.c:4468: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c:4469: warning: incompatible implicit declaration of built-in
function ‘strcat’
gnubg.c: In function ‘CommandSaveSettings’:
gnubg.c:4799: warning: incompatible implicit declaration of built-in
function ‘strchr’
gnubg.c: In function ‘GenerateKeywords’:
gnubg.c:4907: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c:4913: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c:4916: warning: incompatible implicit declaration of built-in
function ‘strcpy’
gnubg.c: In function ‘ERCompletion’:
gnubg.c:4935: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c:4943: warning: incompatible implicit declaration of built-in
function ‘strlen’
gnubg.c:4946: warning: incompatible implicit dec

Re: [Bug-gnubg] Compile error on MacOS 10.5.2

2008-04-05 Thread Christian Anthon
Just move the include line outside the function:

Index: lib/neuralnet.c
===
RCS file: /sources/gnubg/gnubg/lib/neuralnet.c,v
retrieving revision 1.53
diff -r1.53 neuralnet.c
624a625,628
> #ifdef __APPLE__
> #include 
> #endif
>
629,630d632
<
< #include 


I can't test for obvious reasons.

Christian.


___
Bug-gnubg mailing list
Bug-gnubg@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnubg