Boost error compiling gnucash under Microsoft Windows

Stephen Brown StephenBrown777 at outlook.com
Wed Feb 8 05:01:42 EST 2017


Hi Geert,

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Geert Janssens<mailto:geert.gnucash at kobaltwit.be>
Sent: Wednesday, 8 February 2017 8:31 PM
To: gnucash-devel at gnucash.org<mailto:gnucash-devel at gnucash.org>
Cc: Stephen Brown<mailto:StephenBrown777 at outlook.com>
Subject: Re: Boost error compiling gnucash under Microsoft Windows


Op woensdag 8 februari 2017 00:24:55 CET schreef Stephen Brown:

> In a gcdev mysys shell running install.sh I see

>

>

>

>

> checking for boostlib >= 1.53.0... configure: We could not detect the boost

> libraries (version 1.53 or higher). If you have a staged boost library

> (still not installed) please specify $BOOST_ROOT in your environment and do

> not give a PATH to --with-boost option. If you are sure you have boost

> installed, then check your version number looking in <boost/version.hpp>.

> See http://randspringer.de/boost for more documentation.

>

> configure: error: Boost 1.53.0 or later was not found and is required to

> build GnuCash

>



Stephen,



I have very recently changed the way Boost is detected in our Windows build environment. To make this work, you need to pull the appropriate commits in both the gnucash-on-windows.git and the gnucash.git repositories.



Can you

- open a git msys shell in both repositories

- run "git pull" in each

- rerun "install.sh" from the gnucash build environment msys shell



One tip that's not yet documented anywhere:

If you want to greatly reduce the build time of the gnucash component, I suggest you add the following two lines in

/c/gnucash/gnucash-on-windows.git/custom.sh:

WITH_CMAKE=yes
WITH_NINJA=yes

This will change the gnucash build to use cmake and ninja-build instead of traditional autotools (autoconf/automake/make), which turns out to work much much faster. These are used by default for our unattended nightly builds.



Regards,



Geert

Hi Geert
In a git bash shell I do
---------------------------------------------------------
GNUCash at ACE /c/gcdev
$ cd gnucash-on-windows.git

GNUCash at ACE /c/gcdev/gnucash-on-windows.git (master)
$ git pull
Already up-to-date.

GNUCash at ACE /c/gcdev/gnucash-on-windows.git (master)
$ cd ..

GNUCash at ACE /c/gcdev
$ cd gnucash.git

GNUCash at ACE /c/gcdev/gnucash.git (master)
$ git pull
Already up-to-date.

GNUCash at ACE /c/gcdev/gnucash.git (master)
$
--------------------------------------------
In the gcdev msys shell I get
---------------------------------------
checking for boostlib >= 1.53.0... configure: We could not detect the boost libraries (version 1.53 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
configure: error: Boost 1.53.0 or later was not found and is required to build GnuCash

GNUCash at Ace /c/gcdev/gnucash-on-windows.git
$

Did my “git pull” l commands work?
Cheers
Stephen Brown


More information about the gnucash-devel mailing list