[Top][All Lists]

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

[Bug-gnubg] Compilation errors when building gnubg on windows XP

From: bar tomas
Subject: [Bug-gnubg] Compilation errors when building gnubg on windows XP
Date: Thu, 5 Jul 2007 18:30:36 +0200

Hi ,

I'm trying to build gnubg on windows XP. I'm following the instructions given on the gnubg website on page http://www.gnubg.org/index.php?itemid=50.
Installation of mingw and GTK went fine as well as the download of the gnubg source code with the script CheckOutBat.bat

Afterwards, I run BuildGnubg.bat, but the compilation did not succeed. These are the compilation messages I got:

        1 fichier(s) copié(s).
mingw32-make[1]: Entering directory `C:/gnu/Code/gnubg/lib'
Compiling dynarray.c
Compiling hash.c
Compiling heap.c
Compiling cache.c
Compiling list.c
Compiling neuralnet.c
Compiling neuralnetsse
Compiling mt19937ar.c
Compiling isaac.c
Compiling md5.c
creating lib
libevent.a done
mingw32-make[1]: Leaving directory `C:/gnu/Code/gnubg/lib'
mingw32-make[1]: Entering directory `C:/gnu/Code/gnubg/board3d'
Compiling drawboard3d (non-sse)
In file included from inc3d.h:57,
                 from drawboard3d.c:25:
../backgammon.h:1055:1: "PKGDATADIR" redefined
In file included from drawboard3d.c:24:
../config.h:100:1: this is the location of the previous definition
mingw32-make[1]: *** [obj/drawboard3d.o] Error 1
mingw32-make[1]: Leaving directory `C:/gnu/Code/gnubg/board3d'
mingw32-make: *** [board3d\libboard3d.a] Error 2
** Build failed **

Apparently there is a redefinition of  PKGDATADIR.
In config.h it is defined like this:

#define PKGDATADIR ".\\""/" PACKAGE

and then in backgammon.h it is defined like this:

#define PKGDATADIR getInstallDir()

I deleted the definition of  PKGDATADIR  in config.h and then tried running the BuildGnubg.bat script again, but it didn't succeed either. I got the following compilation messages:

mingw32-make[1]: Entering directory `C:/gnu/Code/gnubg/board3d'
Compiling drawboard3d (non-sse)
Compiling misc3d.c
Compiling font3d.c
Compiling widget3d.c
Compiling matrix.c
Compiling model.c
Compiling shadow.c
Compiling gtkcolour3d.c
Compiling graph.c
creating lib
libboard3d.a done
mingw32-make[1]: Leaving directory `C:/gnu/Code/gnubg/board3d'
Compiling analysis.c
Compiling bearoff.c
Compiling bearoffgammon.c
Compiling non-src/copying.c
Compiling non-src/credits.c
Compiling dice.c
Compiling drawboard.c
mingw32-make: *** No rule to make target `obj/erf.o', needed by `gnubg.exe'.  St
** Build failed **

Do you know what I should do to compile gnubg?

Thank you very much.

reply via email to

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