bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Building GnuBG on Windows


From: Holger
Subject: Re: [Bug-gnubg] Building GnuBG on Windows
Date: Fri, 28 Feb 2003 11:48:55 +0100

Although the problem seems to be solved already, I'll answer anyway.

On Thu, 27 Feb 2003 12:38:08 -0800, David Montgomery wrote:
> I am trying to build gnubg on Windows following Nardy's
> most excellent instructions.  My guess is that Jaro will
...
> But on the page http://www.gimp.org/~tml/gimp/win32/downloads.html
> I couldn't find these, so I downloaded
>
> glib-2.2.1.zip
> glib-dev-2.2.1.zip
> gtk+-1.3.0-20030216.zip
> gtk+-dev-1.3.0-20030115.zip
>
> Before I go mucking around in the makefile to
> make sure it is referring to the libs these
> produce, are these okay to use instead of the
> one on Nardy's page?

Yes, they are ok. They are just newer versions.

> The libiconv-1.8-w32-1.bin.zip I downloaded doesn't
> have a localcharset.h file.  It has a localcharset.dll
> and a libcharset.h.

I use libiconv-1.8-20020830.zip from http://sourceforge.net/project/showfiles.php?group_id=7382 . Simply extract all its contents into [drive]:\mingw\ maintaining the directory structure.

> Finally, instruction "5. Copy DLLs" says to copy
> freetype2.dll.  I don't have this file.  I have
> freetype.dll.

This is an error in the description. It's freetype.dll.

> I found libxml2.dll in [drive]:\mingw\bin rather than lib.

It doesn't matter where this and the files below are as long as both directories (bin and lib) are in the path when compiling.

> Below are the DLLs that I have in [drive]:\gnubg.
> (Should they be in \gnubg\lib?)
>
> freetype.dll
> freetype2.dll

not needed.

> gdbm.dll
> iconv.dll
> libgdk-0.dll
> libglib-2.0-0.dll
> libgmodule-2.0-0.dll
> libgtk-0.dll
> libintl-1.dll
> libpng.dll
> libxml2.dll
> zlib.dll
>
> (freetype.dll and freetype2.dll are copies of the same file.)
>
> ---
>
> Using nardy.bat, I get a bunch of linker errors, like this:
>
> gnubg.o(.text+0xc555):gnubg.c: undefined reference to `rdAppearance'
> gnubg.o(.text+0xc55a):gnubg.c: undefined reference to
> `RenderPreferencesCommand
> ...
> set.o(.text+0x2046):set.c: undefined reference to `rdAppearance'
> set.o(.text+0x204b):set.c: undefined reference to `RenderPreferencesParam'

This page isn't up-to-date anymore. Since then there have been added new source files. Makefile should read:

SOURCE = analysis.c analysis.h \
        backgammon.h bearoff.c bearoff.h \
        bearoffgammon.c bearoffgammon.h \
        copying.c credits.c \
        database.c database.h dice.c dice.h drawboard.c drawboard.h \
        erf.c eval.c eval.h export.c export.h external.c external.h \
        getopt.c getopt.h getopt1.c gnubg.c \
        gtk-multiview.c gtkboard.c gtkchequer.c \
        gtkcolour.c gtkcolour.h gtkcube.c \
        gtkexport.c gtkgame.c gtkprefs.c gtkrace.c gtkrace.h \
        gtksplash.c gtksplash.h \
        gtktheory.c gtkmet.c guile.c guile.h \
        html.c htmlimages.c \
        i18n.c i18n.h import.c import.h \
        kleinman.c \
        latex.c luxi.c \
        matchequity.c matchequity.h matchid.c matchid.h \
        onechequer.c onechequer.h osr.c osr.h \
        path.c path.h play.c positionid.c positionid.h \
        postscript.c pub_eval.c \
        record.c record.h render.c render.h renderprefs.c renderprefs.h \
        rollout.c rollout.h \
        set.c sgf.c sgf.h sgfl.c sgfp.c sgfp.h show.c sound.c sound.h \
        speed.c strdup.c \
        text.c

OBJS = analysis.o bearoffgammon.o copying.o credits.o \
        database.o dice.o \
        drawboard.o erf.o eval.o export.o external.o \
        getopt.o getopt1.o \
        gnubg.o gtk-multiview.o gtkboard.o gtkcube.o \
        gtkchequer.o gtkexport.o gtkgame.o gtkprefs.o gtktheory.o \
        guile.o \
        html.o i18n.o import.o kleinman.o latex.o \
        matchequity.o matchid.o \
        play.o positionid.o postscript.o pub_eval.o \
        record.o render.o rollout.o \
        set.o sgf.o sgfl.o sgfp.o show.o sound.o text.o osr.o \
        bearoff.o gtkrace.o onechequer.o path.o gtkmovefilter.o luxi.o \
        htmlimages.o gtkmet.o gtkcolour.o gtksplash.o \
        speed.o renderprefs.o

In case of more problems I could also send my Makefile and config.h. But they are slightly different because of my not exactly same setup. Besides, I use MinGW2 and thus gcc3.2.

Regards,

        Holger





reply via email to

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