|
From: | motiv4u |
Subject: | Re: [Bug-gnubg] Building source on windows |
Date: | Sat, 13 Aug 2016 11:44:55 +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 weekFor 32-bit: i386 version (I do have an older PC at home)
Install to c:\msysI went for msys32, as proposed by the installer
run c:\msys\msys2_shell and update msys with:
pacman -SyuI 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 bisonboth 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 installSmoothly.
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.
[Prev in Thread] | Current Thread | [Next in Thread] |