bug-gnubg
[Top][All Lists]
Advanced

[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: Mon, 1 Aug 2016 01:16:02 +0200


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):
    ./autogen.sh
    ./configure

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

  make
  make install
Smoothly. 

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/
    /mingw32/share/gnubg/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.

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

N.


Jon

_______________________________________________
Bug-gnubg mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-gnubg



reply via email to

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