[Top][All Lists]

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

Re: [Bug-gnubg] Building source on windows

From: motiv4u
Subject: Re: [Bug-gnubg] Building source on windows
Date: Sat, 13 Aug 2016 11:44:55 +0200

On Mon, Aug 1, 2016 at 1:16 AM, motiv4u <address@hidden> wrote:

On Sun, Jul 31, 2016 at 10:33 PM, Superfly Jon <address@hidden> wrote:
I've just had a go at building using mingw/msys and was pleasantly surprised that it worked pretty much out of the box.  Here are the instructions in case anyone else is interested.
Anyone got any ideas about the couple of issues towards the bottom?

I'll look into it later this week 


Download MSYS2 (x86_64 version) from https://msys2.github.io/
For 32-bit: i386 version (I do have an older PC at home) 

Install to c:\msys
I went for msys32, as proposed by the installer 

run c:\msys\msys2_shell and update msys with:
    pacman -Syu
I got many "incompatible with cygwin.dll, check version cygwin.dll in x:/cygwin"
but after closing and restarting msys2_shell -Syu did not complain anymore. 

re-run msys2_shell (pacman -Syu should now say all up to date) get packages
    pacman -S mingw-w64-i686-toolchain mingw-w64-i686-gtk2 mingw-w64-i686-gtkglext
    pacman -S automake autoconf libtool pkg-config flex bison
both ran smoothly

Extract source from snapshot on website: to c:\msys\home\<username>
I took gnubg-release-1.05.002-sources.tar.gz and that one has the directory gnubg-1.05.002 and then the directory gnubg. Be attentive how and where to unpack this.
run c:\msys\mingw32.exe
change to source dir (cd gnubg - whatever you called it above):

Issue 1: mingw32-make.exe doesn't work as $(MAKE) resolves to make inside the makefiles
Hack: copy mingw32-make to make
  cp /mingw32/bin/mingw32-make.exe /mingw32/bin/make.exe

I could not find another - easy - workaround.
Other posts on the internet mention the same challenge. Almost all solutions copy mingw32-make.exe to make[.exe]
  make install

Issue 2: running gnubg now gives errors about not finding bear off database etc.
Hack: copy gnubg.exe to /share/gnubg folder and run from there...
    cp /mingw32/bin/gnubg.exe /mingw32/share/gnubg/

You can edit makefile.am in folder gnubg
After line 208
##files to be installed in the datadir
pkgdata_DATA = gnubg_ts0.bd gnubg.wd boards.xml \
gnubg_os0.bd textures.txt gnubg.sql gnubg.gtkrc

add next lines:
if WIN32
pkgdata_DATA += gnubg.exe makebearoff.exe makehyper.exe bearoffdump.exe \
( the programs after 'gnubg.exe' aren't needed, of course )

Every 'make install' now copies gnubg.exe to .../share/gnubg
(stubborn here) I copied the needed libraries to C:\msys32\mingw32\share\gnubg. I think that should be enough to pack a distribution. And I created a shortcut on the desktop for my convenience.
needed libraries: 35, totalizing 18.5 MB.

well... for a standalone, I also had to copy /python2.7 (complete directory), 70 MB

Time from reading the e-mail until running gnubg: 1 hour 5 min.


reply via email to

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