bug-gnubg
[Top][All Lists]
Advanced

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

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


From: Christian Anthon
Subject: Re: [Bug-gnubg] Compiling 20080624 on Windows XP
Date: Thu, 17 Jul 2008 10:38:54 +0200

The snapshot is a bit old, it is likely that a newer one will work
better. At a quick glance:

1) add gnubgstock to the list of files in Makefile.w32
2) remove PKGDATADIR from config.h

Christian.

On Thu, Jul 17, 2008 at 5:51 AM, Daniel Frimerman
<address@hidden> wrote:
> Hello,
>
> 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:
>
> linking
> ../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!
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>
>




reply via email to

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