Building gnubg on MS Windows

Here's some instructions that allow you to build the latest version of gnubg on MS Windows. It is mainly aimed at people wanting to develop or test gnubg.

Installing MinGW

  1. You need to download and install MinGW from the mingw website. The current version is MinGW-5.1.4.
  2. The file is downloaded from sourceforge, click download next to Automated MinGW Installer. Open the downloaded file to start the MinGW installation.
  3. Click through the installation, on the way select:
    • Select "MinGW Make" from the bottom of the component list.
    • Set the installation folder to c:\gnu\mingw.
  4. Wait for it to download and click finish to complete the installation.

Installing GTK

  1. You need to download and install the latest GTK files from the Glade for windows website. Click on the latest version of the Development Environment. The current version is gtk-dev-2.12.9-win32-2.exe.
  2. Open the downloaded file and click through the installation, on the way:
    • Deselect "Register Environment Variables" from the choose component screen.
    • Set the setup folder to c:\gnu\mingw.

Building gnubg

  1. First you must get the source code, you can either:
    • Run c:\gnu\misc\CheckOutCode.bat to get the latest code from CVS.
    • Or (if that doesn't work) you can download the latest snapshot at the archive and extract to c:\gnu\Code.
  2. To build gnubg run c:\gnu\BuildGnubg.bat. gnubg should start once it's finished building.

Other batch files

There are a few other batch files in c:\gnu:


posted at 01:23:37 on 08/02/06 by SuperflyJon - Category: General


Hyperborea wrote:

How to build gnubg with gnubg-cli.exe ? I dont need the GTK stuff... thanks.
10/14/06 14:35:25

inim wrote:

You will need some part of the GTK stuff, in particular glib. You may also want other functionality, like PNG image support for export etc. in even the command line, however that is optional. glib is not.

You can download a stand alone version, including pre-compiled binaries here:

Another approach could be using cygwin, which last time I checked (~12 month ago) was well able to compile both the gui and the non gui version of gnubg. You need to add a few *-devel packages to cygwin manually, the default install won't do it.
01/16/07 05:13:42

odietr wrote:

It says " mingw32-make target 'obj/gtktexi.o', needed by 'gnubg.exe'.
After i did all the steps correctly.
What i need to do?
03/29/07 05:28:00

smartsl wrote:

When use mingw compiled version, there is a console-win come with main graphic window. How can I get rid of it? Just like the .exe one I downloaded from your main web page. Though it has some little bug in my machine.
07/15/07 21:29:20

smartsl wrote:

I find that, just add compiler flag -mwindows. I was not good at this, sorry for inconvenience to you.
07/15/07 21:40:49

SuperflyJon wrote:

I've updated this page/the code so it should all work at the moment.
10/18/07 17:35:45

Joao Paulo Farias wrote:


Is there some script to build the 0.15 release version of the source code?

I tried to use this script to build it but it fails.
03/08/09 16:14:14

m_lad wrote:

forgive me for my lack of programming knowledge but i have looked through all the c files and havent been able to find it. i am using gnubg for a robot, and all i need is to be able to send the program my move, and recieve the move gnubg makes. can someone point me to a particular location where i can just read off the move and also where i can input my move? i hope that makes sense.
03/13/09 19:28:14

Add Comments

This item is closed, it's not possible to add new comments to it or to vote on it