Re: [GNC-dev] GnuCash 3 on Linux

2018-06-10 Thread John Ralls



> On Jun 10, 2018, at 5:28 PM, Chris Good  wrote:
> 
>> -Original Message-
>> From: Geert Janssens 
>> Sent: Sunday, 10 June 2018 8:16 PM
>> To: gnucash-devel@gnucash.org
>> Cc: Chris Good ; 'John Ralls' 
>> Subject: Re: [GNC-dev] GnuCash 3 on Linux
>> 
>> Op zondag 10 juni 2018 11:07:36 CEST schreef Chris Good:
 -Original Message-
 From: John Ralls 
 Sent: Sunday, 10 June 2018 6:13 AM
 To: Chris Good 
 Cc: gnucash-devel@gnucash.org
 Subject: Re: [GNC-dev] GnuCash 3 on Linux
 
> On 9. Jun 2018, at 00:17, Chris Good  wrote:
> 
> Hi John,
> 
> Thanks very much for your help.
> A little more please...
> 
> On my Ubuntu 16.04:
> 
> sudo apt-get update -qq
> sudo apt-get build-dep -qq gnucash > /dev/null sudo apt-get
> install -qq git bash-completion cmake make swig xsltproc
> libdbd-sqlite3 texinfo ninja-build libboost-all-dev libgtk-3-dev
> libwebkit2gtk-3.0-dev > /dev/null sudo apt-get --reinstall install
> -qq language-pack-en language-pack-fr cd /home/cgood/github git
> clone https://github.com/google/googletest -b release-1.8.0 gtest
> (created
> /home/cgood/github/gtest)
> 
> cd /home/cgood/github/gnucash-maint git checkout maint git pull
> --rebase upstream maint git push origin maint
> 
> /home/cgood/github/gnucash-maint/README.dependencies :
>   guile   2.2.0 or 2.0.0
>   googletest  1.7.0
> 
> As 'make uninstall' didn't work from my 2.6.21 git repo:
> cd /home/cgood/github/gnucash-maint-install
> rm -r *
> 
> cd /home/cgood/github/gnucash-maint-build
> rm -r *
> cmake -G Ninja -D
> CMAKE_INSTALL_PREFIX=$HOME/github/gnucash-maint-install -D
 
 WITH_AQBANKING=OFF \
 
>  -D WITH_OFX=OFF -DGTEST_ROOT=$HOME/github/gtest/googletest
> 
> -DGMOCK_ROOT=$HOME/cgood/github/gtest/googlemock \
> 
>  ../gnucash-maint
> 
> ninja
> [5/892] Generating ../../lib/gnucash/scm/ccache/2.0/json.go
> wrote
> `/home/cgood/github/gnucash-maint-
 
 build/lib/gnucash/scm/ccache/2.0/json.go'
 
> [22/892] Generating
> ../../../lib/gnucash/scm/ccache/2.0/json/syntax.go
> wrote
> `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0
> /jso
> n/synt
> ax.go'
> [25/892] Generating
> ../../../lib/gnucash/scm/ccache/2.0/json/parser.go
> wrote
> `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0
> /jso
> n/pars
> er.go'
> [28/892] Generating
> ../../../lib/gnucash/scm/ccache/2.0/json/builder.go
> wrote
> `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0
> /jso
> n/buil
> der.go'
> [120/892] Building CXX object
> common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> lete
> st/src
> /gtest-all.cc.o
> FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> -I/home/cgood/github/gnucash-maint/common
> -I/home/cgood/github/gnucash-maint/libgnucash/engine
> -I/home/cgood/github/gnucash-maint/common/test-core
> -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest
> -Werror -
 
 Wall -Wmissing-declarations
 
> -Wno-unused -Wno-error=parentheses -std=gnu++11-Wno-missing-
 
 declarations
 
> -MMD -MT
> common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> lete
> st/src
> /gtest-all.cc.o -MF
> common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> lete
> st/src
> /gtest-all.cc.o.d -o
> common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> lete
> st/src /gtest-all.cc.o -c
> /home/cgood/github/gtest/googletest/src/gtest-all.cc
> In file included from
> /home/cgood/github/gtest/googletest/src/gtest-all.cc:42:0:
> /home/cgood/github/gtest/googletest/src/gtest.cc:35:41: fatal error:
> gtest/internal/custom/gtest.h: No such file or directory
> compilation terminated.
> [120/892] Building CXX object
> common/test-
 
 core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
 
> ck/src
> /gmock-all.cc.o
> FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> -I/home/cgood/github/gnucash-maint/common
> -I/home/cgood/github/gnucash-maint/libgnucash/engine
> -I/home/cgood/github/gnucash-maint/common/test-core
> -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest
> -I/home/cgood/github/gtest/googlemock
> -Werror -Wall -Wmissing-declarations -Wno-unused -Wno-
>> error=parentheses
> -std=gnu++11-Wno-missing-declarations -MMD -MT
> common/test-
 
 

Re: [GNC-dev] GnuCash 3 on Linux

2018-06-10 Thread Chris Good
> -Original Message-
> From: Geert Janssens 
> Sent: Sunday, 10 June 2018 8:16 PM
> To: gnucash-devel@gnucash.org
> Cc: Chris Good ; 'John Ralls' 
> Subject: Re: [GNC-dev] GnuCash 3 on Linux
> 
> Op zondag 10 juni 2018 11:07:36 CEST schreef Chris Good:
> > > -Original Message-
> > > From: John Ralls 
> > > Sent: Sunday, 10 June 2018 6:13 AM
> > > To: Chris Good 
> > > Cc: gnucash-devel@gnucash.org
> > > Subject: Re: [GNC-dev] GnuCash 3 on Linux
> > >
> > > > On 9. Jun 2018, at 00:17, Chris Good  wrote:
> > > >
> > > > Hi John,
> > > >
> > > > Thanks very much for your help.
> > > > A little more please...
> > > >
> > > > On my Ubuntu 16.04:
> > > >
> > > > sudo apt-get update -qq
> > > > sudo apt-get build-dep -qq gnucash > /dev/null sudo apt-get
> > > > install -qq git bash-completion cmake make swig xsltproc
> > > > libdbd-sqlite3 texinfo ninja-build libboost-all-dev libgtk-3-dev
> > > > libwebkit2gtk-3.0-dev > /dev/null sudo apt-get --reinstall install
> > > > -qq language-pack-en language-pack-fr cd /home/cgood/github git
> > > > clone https://github.com/google/googletest -b release-1.8.0 gtest
> > > > (created
> > > > /home/cgood/github/gtest)
> > > >
> > > > cd /home/cgood/github/gnucash-maint git checkout maint git pull
> > > > --rebase upstream maint git push origin maint
> > > >
> > > > /home/cgood/github/gnucash-maint/README.dependencies :
> > > > guile   2.2.0 or 2.0.0
> > > > googletest  1.7.0
> > > >
> > > > As 'make uninstall' didn't work from my 2.6.21 git repo:
> > > >  cd /home/cgood/github/gnucash-maint-install
> > > >  rm -r *
> > > >
> > > > cd /home/cgood/github/gnucash-maint-build
> > > > rm -r *
> > > > cmake -G Ninja -D
> > > > CMAKE_INSTALL_PREFIX=$HOME/github/gnucash-maint-install -D
> > >
> > > WITH_AQBANKING=OFF \
> > >
> > > >   -D WITH_OFX=OFF -DGTEST_ROOT=$HOME/github/gtest/googletest
> > > >
> > > > -DGMOCK_ROOT=$HOME/cgood/github/gtest/googlemock \
> > > >
> > > >   ../gnucash-maint
> > > >
> > > > ninja
> > > > [5/892] Generating ../../lib/gnucash/scm/ccache/2.0/json.go
> > > > wrote
> > > > `/home/cgood/github/gnucash-maint-
> > >
> > > build/lib/gnucash/scm/ccache/2.0/json.go'
> > >
> > > > [22/892] Generating
> > > > ../../../lib/gnucash/scm/ccache/2.0/json/syntax.go
> > > > wrote
> > > > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0
> > > > /jso
> > > > n/synt
> > > > ax.go'
> > > > [25/892] Generating
> > > > ../../../lib/gnucash/scm/ccache/2.0/json/parser.go
> > > > wrote
> > > > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0
> > > > /jso
> > > > n/pars
> > > > er.go'
> > > > [28/892] Generating
> > > > ../../../lib/gnucash/scm/ccache/2.0/json/builder.go
> > > > wrote
> > > > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0
> > > > /jso
> > > > n/buil
> > > > der.go'
> > > > [120/892] Building CXX object
> > > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> > > > lete
> > > > st/src
> > > > /gtest-all.cc.o
> > > > FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> > > > -I/home/cgood/github/gnucash-maint/common
> > > > -I/home/cgood/github/gnucash-maint/libgnucash/engine
> > > > -I/home/cgood/github/gnucash-maint/common/test-core
> > > > -I/usr/include/glib-2.0
> > > > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> > > > -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest
> > > > -Werror -
> > >
> > > Wall -Wmissing-declarations
> > >
> > > > -Wno-unused -Wno-error=parentheses -std=gnu++11-Wno-missing-
> > >
> > > declarations
> > >
> > > > -MMD -MT
> > > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> > > > lete
> > > > st/src
> > > > /gtest-all.cc.o -MF
> > > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> > > > lete
> > > > st/src
> > > > /gtest-all.cc.o.d -o
> > > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/goog
> > > > lete
> > > > st/src /gtest-all.cc.o -c
> > > > /home/cgood/github/gtest/googletest/src/gtest-all.cc
> > > > In file included from
> > > > /home/cgood/github/gtest/googletest/src/gtest-all.cc:42:0:
> > > > /home/cgood/github/gtest/googletest/src/gtest.cc:35:41: fatal error:
> > > > gtest/internal/custom/gtest.h: No such file or directory
> > > > compilation terminated.
> > > > [120/892] Building CXX object
> > > > common/test-
> > >
> > > core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > >
> > > > ck/src
> > > > /gmock-all.cc.o
> > > > FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> > > > -I/home/cgood/github/gnucash-maint/common
> > > > -I/home/cgood/github/gnucash-maint/libgnucash/engine
> > > > -I/home/cgood/github/gnucash-maint/common/test-core
> > > > -I/usr/include/glib-2.0
> > > > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> > > > -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest
> > > > -I/home/cgood/github/gtest/googlemock
> > > > -Werror -Wall -Wmissing-declarations 

Re: [GNC-dev] Request of keeping a 2.6 branch still alive (Re: branch-2.6)

2018-06-10 Thread John Ralls



> On 10. Jun 2018, at 13:41, Christian Stimming  wrote:
> 
> Am Samstag, 2. Juni 2018, 17:28:27 schrieb John Ralls:
>>> there is already a private fork, just as everyone else
>>> around here is free to privately fork anything that he/she wants.
>>> https://github.com/cstim/gnucash/tree/branch-2.6
>> 
>> BTW, there's already a 2.6.21 because the MySQL backend was broken on
>> 2.6.20. It was released April 10.
> 
> Dear John,
> 
> yes I confused the numbers here. There was a 2.6.21 in April. I would happily 
> switch to the 3.0 branch (git-maint) on my system, as soon as I see for 
> myself 
> that it is up and running on my (still old) ubuntu 14.04 system.
> 
> However, after I eventually was able to build and run the newer branch [1], 
> it 
> turns out to crash in the register on every normal usage. Of course I've 
> filed 
> a bug on that one [2] (with gtk-3.10.8 that is), and I will continue looking 
> into resolving this problem myself, too. However, until we are able to 
> resolve 
> this problem, my guess is that on ubuntu 14.04, there is no 3.0.x version 
> that 
> is usable. Can someone report otherwise? If yes, I would happily discuss in 
> detail the steps that I'm missing.
> 
> Until then, I would again propose to keep a 2.6 branch alive for a few more 
> months, so that a potential 2.6.22 release with minor bugfixes might be 
> released as well for systems on the age of ubuntu 14.04.
> 
> Best Regards,
> 
> Christian
> 
> [1] For several days, I was stuck at the error at start-up "Undefined 
> variable: gnc-build-userdata-path" that got reported also by e.g. Herbert 
> Thoma here. For future reference: The solution was to remove any instance of 
> an old (2.6) gnucash from the library path both at build time and at run time.
> 
> [2] https://bugzilla.gnome.org/show_bug.cgi?id=796556
> 

Christian,

Your crash appears to be a dupe of a Gtk bug, details and a possible 
work-around on your bug report.

You seem to have missed out that we've changed the version system, there's no 
3.0.x at all. There was 3.0, the current release is 3.1, and the next one will 
be 3.2.

I'm not interested in continually re-arguing further 2.6.x releases.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Request of keeping a 2.6 branch still alive (Re: branch-2.6)

2018-06-10 Thread Christian Stimming
Am Samstag, 2. Juni 2018, 17:28:27 schrieb John Ralls:
> > there is already a private fork, just as everyone else
> > around here is free to privately fork anything that he/she wants.
> > https://github.com/cstim/gnucash/tree/branch-2.6
> 
> BTW, there's already a 2.6.21 because the MySQL backend was broken on
> 2.6.20. It was released April 10.

Dear John,

yes I confused the numbers here. There was a 2.6.21 in April. I would happily 
switch to the 3.0 branch (git-maint) on my system, as soon as I see for myself 
that it is up and running on my (still old) ubuntu 14.04 system.

However, after I eventually was able to build and run the newer branch [1], it 
turns out to crash in the register on every normal usage. Of course I've filed 
a bug on that one [2] (with gtk-3.10.8 that is), and I will continue looking 
into resolving this problem myself, too. However, until we are able to resolve 
this problem, my guess is that on ubuntu 14.04, there is no 3.0.x version that 
is usable. Can someone report otherwise? If yes, I would happily discuss in 
detail the steps that I'm missing.

Until then, I would again propose to keep a 2.6 branch alive for a few more 
months, so that a potential 2.6.22 release with minor bugfixes might be 
released as well for systems on the age of ubuntu 14.04.

Best Regards,

Christian

[1] For several days, I was stuck at the error at start-up "Undefined 
variable: gnc-build-userdata-path" that got reported also by e.g. Herbert 
Thoma here. For future reference: The solution was to remove any instance of 
an old (2.6) gnucash from the library path both at build time and at run time.

[2] https://bugzilla.gnome.org/show_bug.cgi?id=796556

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Report System Rework

2018-06-10 Thread Christopher Lam
Any rework will require stabilising the reports first, removing
unintelligible hacks, and updating to modern scheme (which is now
approaching V8 quality and speed). The current state of report code
reflects the tooling available about 20 years ago.

So the following will be on the TODO list before any foundation changes:

1. creating good tests for majority of reports
2. removing hacks and shortcuts, debugging opportunistically
3. obsoleting old reports (such as eguile )
4. modernising stylesheets (removing/merging plain/header+footer/etc)?
5. designing more modern access to data, either yaml/json/REST

For now the reports will necessarily be limited in interactivity; Input via
Report Options, and Output via HTML. Anything else is for now just a pipe
dream!

On 8 June 2018 at 04:42, Phil Longstaff  wrote:

> I don't know how it fits into this rework, but I would like to see a more
> general framework which supports reports with 'items' down the side and
> 'periods' across the top. I put them in quotes because they are a bit
> general. I've worked with an accounting system in the past which allowed
> general reports to be created. In this case, 'items' could be text strings
> (e.g. 'Income'), could be a filter for accounts (all accounts of type
> 'Income'), could be a total or subtotal row ('Total income'). Across the
> top, for 'periods', you could have real periods for an income statement or
> comparative income statement, or dates, for a balance sheet or comparative
> balance sheet. When I used quicken in the past, I liked being able to
> generate a balance sheet for 2015-2018 with all years' values at Jan 1.
> This allowed me to see how values had grown or decreased in certain
> accounts.
>
> On Thu, Jun 7, 2018 at 4:22 PM, John Ralls  wrote:
>
> >
> >
> > > On Jun 7, 2018, at 1:14 PM, John Ralls  wrote:
> > >
> > >
> > >
> > >> On Jun 7, 2018, at 12:49 PM, Carsten Rinke 
> > wrote:
> > >>
> > >> Hi,
> > >>
> > >> this takes up a discussion with John and Christopher in PR#360 (and I
> > am happy to see that is was merged :-D )
> > >>
> > >> As the discussion turned away from the actual proposal of a test for
> > the report definition, I'd suggest to move it to this channel.
> > >>
> > >> John:
> > >> You were mentioning that you and Christopher are reworking the report
> > system.
> > >> I had in mind to create even more PRs with test proposals for the
> > report system (in response to Bug787401 which becomes a bit difficult now
> > that the bug is closed ;-) ) and I wonder:
> > >> Is this idea still worth while?
> > >> Do you already have an idea about what is going to change?
> > >>
> > >> Christopher:
> > >> Regarding your question below:
> > >> I think the report definition is triggered at the very beginning when
> > the moduels are loaded.
> > >> inner_main triggers libgncmod_report_gnome_gnc_module_init
> > (gncmod-report-gnome.c)
> > >> this triggers to load guile module "gnucash report standard-reports"
> > (standard-report.scm)
> > >> this triggers to load all standard  reports
> > >> this triggers that (gnc:define-report) is called per report
> > >> -> it has nothing to do with html rendering
> > >>
> > >> If you take the changes from PR#360 and comment out the report ID in
> > the call to gnc:define-report from any standard report, you will see that
> > an "ordinary" pop-up window is created.
> > >>
> > >> -Carsten
> > >>
> > >>
> > >>
> > >>  Weitergeleitete Nachricht 
> > >> Betreff: Re: [Gnucash/gnucash] Bug787401 test report definition
> > (#360)
> > >> Datum:   Thu, 07 Jun 2018 03:47:52 -0700
> > >> Von: Christopher Lam 
> > >> Antwort an:  Gnucash/gnucash  > 3bf8470a850e163f0c92cf00011730cf5892a169ce13999...@reply.github.com>
> > >> An:  Gnucash/gnucash 
> > >> Kopie (CC):  GnuFiBux , Author <
> > aut...@noreply.github.com>
> > >>
> > >>
> > >>
> > >> I can understand the need to remove gui calls but not entirely sure
> > exactly how the |(gnc:define-report)| is being called. I know they're
> being
> > triggered with every report code e.g. at the end of transaction.scm, but
> > not sure what exactly is causing the transaction.scm to be run. So, where
> > will the gui error message be stated? As a html report perhaps?
> > >
> > > Carsten,
> > >
> > > You don't need a bug report to submit a PR. If you're motivated to keep
> > adding tests for the report system by all means do!
> > >
> > > As to what will change, Geert and I have discussed some general
> > directions and Chris has been working away at some things that interest
> > him, see [1].
> > >
> > > We'd like to better separate the data retrieval and summarization from
> > the presentation, perhaps with an intermediate format. We'd also like to
> be
> > able to use something lighter and more portable than WebKitGtk for
> > in-program report presentation and to support report file output in
> formats
> > other than HTML and whatever WebKitGtk lets us print (that's how the PDFs
> > are created and 

Re: [GNC-dev] GnuCash 3 on Linux

2018-06-10 Thread Geert Janssens
Op zondag 10 juni 2018 11:07:36 CEST schreef Chris Good:
> > -Original Message-
> > From: John Ralls 
> > Sent: Sunday, 10 June 2018 6:13 AM
> > To: Chris Good 
> > Cc: gnucash-devel@gnucash.org
> > Subject: Re: [GNC-dev] GnuCash 3 on Linux
> > 
> > > On 9. Jun 2018, at 00:17, Chris Good  wrote:
> > > 
> > > Hi John,
> > > 
> > > Thanks very much for your help.
> > > A little more please...
> > > 
> > > On my Ubuntu 16.04:
> > > 
> > > sudo apt-get update -qq
> > > sudo apt-get build-dep -qq gnucash > /dev/null sudo apt-get install
> > > -qq git bash-completion cmake make swig xsltproc
> > > libdbd-sqlite3 texinfo ninja-build libboost-all-dev libgtk-3-dev
> > > libwebkit2gtk-3.0-dev > /dev/null sudo apt-get --reinstall install -qq
> > > language-pack-en language-pack-fr cd /home/cgood/github git clone
> > > https://github.com/google/googletest -b release-1.8.0 gtest (created
> > > /home/cgood/github/gtest)
> > > 
> > > cd /home/cgood/github/gnucash-maint
> > > git checkout maint
> > > git pull --rebase upstream maint
> > > git push origin maint
> > > 
> > > /home/cgood/github/gnucash-maint/README.dependencies :
> > >   guile   2.2.0 or 2.0.0
> > >   googletest  1.7.0
> > > 
> > > As 'make uninstall' didn't work from my 2.6.21 git repo:
> > >  cd /home/cgood/github/gnucash-maint-install
> > >  rm -r *
> > > 
> > > cd /home/cgood/github/gnucash-maint-build
> > > rm -r *
> > > cmake -G Ninja -D
> > > CMAKE_INSTALL_PREFIX=$HOME/github/gnucash-maint-install -D
> > 
> > WITH_AQBANKING=OFF \
> > 
> > >   -D WITH_OFX=OFF -DGTEST_ROOT=$HOME/github/gtest/googletest
> > > 
> > > -DGMOCK_ROOT=$HOME/cgood/github/gtest/googlemock \
> > > 
> > >   ../gnucash-maint
> > > 
> > > ninja
> > > [5/892] Generating ../../lib/gnucash/scm/ccache/2.0/json.go
> > > wrote
> > > `/home/cgood/github/gnucash-maint-
> > 
> > build/lib/gnucash/scm/ccache/2.0/json.go'
> > 
> > > [22/892] Generating ../../../lib/gnucash/scm/ccache/2.0/json/syntax.go
> > > wrote
> > > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0/jso
> > > n/synt
> > > ax.go'
> > > [25/892] Generating ../../../lib/gnucash/scm/ccache/2.0/json/parser.go
> > > wrote
> > > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0/jso
> > > n/pars
> > > er.go'
> > > [28/892] Generating
> > > ../../../lib/gnucash/scm/ccache/2.0/json/builder.go
> > > wrote
> > > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0/jso
> > > n/buil
> > > der.go'
> > > [120/892] Building CXX object
> > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > > st/src
> > > /gtest-all.cc.o
> > > FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> > > -I/home/cgood/github/gnucash-maint/common
> > > -I/home/cgood/github/gnucash-maint/libgnucash/engine
> > > -I/home/cgood/github/gnucash-maint/common/test-core
> > > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> > > -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest -Werror -
> > 
> > Wall -Wmissing-declarations
> > 
> > > -Wno-unused -Wno-error=parentheses -std=gnu++11-Wno-missing-
> > 
> > declarations
> > 
> > > -MMD -MT
> > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > > st/src
> > > /gtest-all.cc.o -MF
> > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > > st/src
> > > /gtest-all.cc.o.d -o
> > > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > > st/src /gtest-all.cc.o -c
> > > /home/cgood/github/gtest/googletest/src/gtest-all.cc
> > > In file included from
> > > /home/cgood/github/gtest/googletest/src/gtest-all.cc:42:0:
> > > /home/cgood/github/gtest/googletest/src/gtest.cc:35:41: fatal error:
> > > gtest/internal/custom/gtest.h: No such file or directory compilation
> > > terminated.
> > > [120/892] Building CXX object
> > > common/test-
> > 
> > core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > 
> > > ck/src
> > > /gmock-all.cc.o
> > > FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> > > -I/home/cgood/github/gnucash-maint/common
> > > -I/home/cgood/github/gnucash-maint/libgnucash/engine
> > > -I/home/cgood/github/gnucash-maint/common/test-core
> > > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> > > -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest
> > > -I/home/cgood/github/gtest/googlemock
> > > -Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses
> > > -std=gnu++11-Wno-missing-declarations -MMD -MT
> > > common/test-
> > 
> > core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > 
> > > ck/src
> > > /gmock-all.cc.o -MF
> > > common/test-
> > 
> > core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > 
> > > ck/src
> > > /gmock-all.cc.o.d -o
> > > common/test-
> > 
> > core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > 
> > > ck/src /gmock-all.cc.o -c
> > > /home/cgood/github/gtest/googlemock/src/gmock-all.cc

Re: [GNC-dev] GnuCash 3 on Linux

2018-06-10 Thread Chris Good
> -Original Message-
> From: John Ralls 
> Sent: Sunday, 10 June 2018 6:13 AM
> To: Chris Good 
> Cc: gnucash-devel@gnucash.org
> Subject: Re: [GNC-dev] GnuCash 3 on Linux
> 
> 
> 
> > On 9. Jun 2018, at 00:17, Chris Good  wrote:
> >
> > Hi John,
> >
> > Thanks very much for your help.
> > A little more please...
> >
> > On my Ubuntu 16.04:
> >
> > sudo apt-get update -qq
> > sudo apt-get build-dep -qq gnucash > /dev/null sudo apt-get install
> > -qq git bash-completion cmake make swig xsltproc
> > libdbd-sqlite3 texinfo ninja-build libboost-all-dev libgtk-3-dev
> > libwebkit2gtk-3.0-dev > /dev/null sudo apt-get --reinstall install -qq
> > language-pack-en language-pack-fr cd /home/cgood/github git clone
> > https://github.com/google/googletest -b release-1.8.0 gtest (created
> > /home/cgood/github/gtest)
> >
> > cd /home/cgood/github/gnucash-maint
> > git checkout maint
> > git pull --rebase upstream maint
> > git push origin maint
> >
> > /home/cgood/github/gnucash-maint/README.dependencies :
> > guile   2.2.0 or 2.0.0
> > googletest  1.7.0
> >
> > As 'make uninstall' didn't work from my 2.6.21 git repo:
> >  cd /home/cgood/github/gnucash-maint-install
> >  rm -r *
> >
> > cd /home/cgood/github/gnucash-maint-build
> > rm -r *
> > cmake -G Ninja -D
> > CMAKE_INSTALL_PREFIX=$HOME/github/gnucash-maint-install -D
> WITH_AQBANKING=OFF \
> >   -D WITH_OFX=OFF -DGTEST_ROOT=$HOME/github/gtest/googletest
> > -DGMOCK_ROOT=$HOME/cgood/github/gtest/googlemock \
> >   ../gnucash-maint
> >
> > ninja
> > [5/892] Generating ../../lib/gnucash/scm/ccache/2.0/json.go
> > wrote
> > `/home/cgood/github/gnucash-maint-
> build/lib/gnucash/scm/ccache/2.0/json.go'
> > [22/892] Generating ../../../lib/gnucash/scm/ccache/2.0/json/syntax.go
> > wrote
> > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0/jso
> > n/synt
> > ax.go'
> > [25/892] Generating ../../../lib/gnucash/scm/ccache/2.0/json/parser.go
> > wrote
> > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0/jso
> > n/pars
> > er.go'
> > [28/892] Generating
> > ../../../lib/gnucash/scm/ccache/2.0/json/builder.go
> > wrote
> > `/home/cgood/github/gnucash-maint-build/lib/gnucash/scm/ccache/2.0/jso
> > n/buil
> > der.go'
> > [120/892] Building CXX object
> > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > st/src  
> > /gtest-all.cc.o
> > FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> > -I/home/cgood/github/gnucash-maint/common
> > -I/home/cgood/github/gnucash-maint/libgnucash/engine
> > -I/home/cgood/github/gnucash-maint/common/test-core
> > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> > -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest -Werror -
> Wall -Wmissing-declarations
> > -Wno-unused -Wno-error=parentheses -std=gnu++11-Wno-missing-
> declarations
> > -MMD -MT
> > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > st/src
> > /gtest-all.cc.o -MF
> > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > st/src
> > /gtest-all.cc.o.d -o
> > common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googlete
> > st/src /gtest-all.cc.o -c
> > /home/cgood/github/gtest/googletest/src/gtest-all.cc
> > In file included from
> > /home/cgood/github/gtest/googletest/src/gtest-all.cc:42:0:
> > /home/cgood/github/gtest/googletest/src/gtest.cc:35:41: fatal error:
> > gtest/internal/custom/gtest.h: No such file or directory compilation
> > terminated.
> > [120/892] Building CXX object
> > common/test-
> core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > ck/src
> > /gmock-all.cc.o
> > FAILED: /usr/bin/c++   -DHAVE_CONFIG_H -DHAVE_GUILE20 -Icommon
> > -I/home/cgood/github/gnucash-maint/common
> > -I/home/cgood/github/gnucash-maint/libgnucash/engine
> > -I/home/cgood/github/gnucash-maint/common/test-core
> > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> > -I/usr/include/guile/2.0 -I/home/cgood/github/gtest/googletest
> > -I/home/cgood/github/gtest/googlemock
> > -Werror -Wall -Wmissing-declarations -Wno-unused -Wno-error=parentheses
> > -std=gnu++11-Wno-missing-declarations -MMD -MT
> > common/test-
> core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > ck/src
> > /gmock-all.cc.o -MF
> > common/test-
> core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > ck/src
> > /gmock-all.cc.o.d -o
> > common/test-
> core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemo
> > ck/src /gmock-all.cc.o -c
> > /home/cgood/github/gtest/googlemock/src/gmock-all.cc
> > In file included from
> > /home/cgood/github/gtest/googlemock/src/gmock-all.cc:46:0:
> > /home/cgood/github/gtest/googlemock/src/gmock-spec-builders.cc:339:1:
> error:
> > prototype for 'testing::internal::UntypedActionResultHolderBase*
> > testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith(const
> > void*)' does not match any in class
> >