[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bug-gnubg] Compiling 20080624 on Windows XP

From: Jonathan Kinsey
Subject: RE: [Bug-gnubg] Compiling 20080624 on Windows XP
Date: Thu, 17 Jul 2008 08:27:26 +0000

Hi Daniel,
The first problem you have is that these instructions are meant for the GUI version not the command line one (it's tricky to have instructions for both).  The error you couldn't get past is to do with a missing file (something stock).  I'll try it with the latest snapshot and see if I can get it to work.

From: address@hidden
To: address@hidden
Date: Thu, 17 Jul 2008 03:51:46 +0000
Subject: [Bug-gnubg] Compiling 20080624 on Windows XP


I've been trying for hours to successfully compile gnubg.  Since I had many more errors in the latest snapshot, I've used the snapshot that is the currently released version.
I'm quite new to this, so it was a lot to take in... so please forgive my newbieness.

I've followed the instructions on http://www.gnubg.org/index.php?itemid=50&catid=1
I'm only interested in the console version for now.

Here is the first error I get:
mingw32-make: *** No rule to make target `../bin/gnubg.png', needed by `all'.  Stop.
** Build failed **

I tried 2 options, both got me past this error, 1) find the png file and put it in ../bin and 2) remove it from makefile.w32

Then this error comes up:
In file included from misc3d.c:37:
../util.h:29:1: "PKGDATADIR" redefined
In file included from misc3d.c:24:
../config.h:109:1: this is the location of the previous definition
mingw32-make[1]: *** [../../bin/obj/board3d/misc3d.o] Error 1
mingw32-make: *** [Libraries] Error 2
** Build failed **

I've tried removing the definition (#define PKGDATADIR getInstallDir()) from config.h which resulted in many subsequent errors,  so I've removed it from utils.h

It linked makeweights and makebearoff, and generated the databases....
Then this annoying error I couldn't remove, but I gathered it's related to the GUI version, so it might not matter later, but either way, here's the error output:

../bin/obj/gtkgame.o: In function `InitGTK':
C:/gnu/gnubg/gtkgame.c:3719: undefined reference to `gnubg_stock_init'
collect2: ld returned 1 exit status
mingw32-make: *** [../bin/gnubg.exe] Error 1
** Build failed **

The function is defined in gnubgstock.h, and I've tried everything, it's like the compiler chooses to completely ignore the declaration (of the function inside the header and the header itself).

So I've commented out the function in gtkgame.c
And it linked.

It ran gnubg.exe, a console popped up with everything seemingly intact.  However the GUI looked bruised, with GUI messed up.  It generated something and closed immediately after.  The EXE icon wasn't right (it was GTK default) and not sure if I should mention this... I couldn't run it from the BIN directory as it required too many libraries which were all in mingw folder...
So after copying it to the mingw folder, it kinda froze and had to be killed.

To the experts here...(if this even requires an expert since I'm such a newbie), what do I turn on/turn off to just compile the console version as released on the website, which is about 800K?  This one is ~8MB, and I don't use it often (the purpose of this is just to test how well will this plays over a remote command prompt/telnet, also want to play with notation). I'd like the gnugb generated to be the console only version such that I just copy it to program files\gnubg\ and run it just like the version that's released.

Perhaps I need a new config and/or makefile (and a lot of help?)

I appreciate the help

Best regards

Get Hotmail on your Mobile! Try it Now!

Get Messenger on your Mobile! Get it now!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]