[GNC-dev] GnuCash 3 on Linux

Chris Good goodchris96 at gmail.com
Sat Jun 9 03:17:35 EDT 2018


> Message: 4
> Date: Tue, 5 Jun 2018 06:47:55 -0700
> From: John Ralls <jralls at ceridwen.us>
> To: Chris Good <goodchris96 at gmail.com>
> Cc: gnucash-devel at gnucash.org
> Subject: Re: [GNC-dev] GnuCash 3 on Linux
> Message-ID: <D60F36AF-4C36-4958-AFBE-03E6A8133006 at ceridwen.us>
> Content-Type: text/plain;	charset=us-ascii
> 
> 
> > On Jun 5, 2018, at 5:53 AM, Chris Good <goodchris96 at gmail.com> wrote:
> >
> > Hi,
> >
> > I'm working on my BackupGnuCash stand-alone app.
> >
> > I have 2 questions today:
> >
> > 1.
> >
> > I'm a little uncertain about where the saved reports and metadata
> > files are in GnuCash 3.0 for Linux.
> >
> > I suspect they are by default:
> >
> > ~/.local/share/gnucash/saved-reports-2.4
> >
> > ~/.local/share/gnucash/books/[BOOK].gnucash.gcm
> >
> > unless overridden by XDG_DATA_HOME.
> >
> > Can some-one please confirm?
> >
> > 2.
> >
> > I tried to get version 3 on Linux (Ubuntu 16.04) running to test myself.
> >
> > I found gnucash_3.0-1 at the Debian Archive [1] but when I tried to
> > install it,
> >
> > the following packages were not available:
> >
> >
> > guile-2.2-libs is only available for bionic (18.04LTS) -> 18.10
> > libaqbanking35 is available in 16.04 -> 18.10
> > libboost-*.62.0 only available in 17.10 -> 18.10
> > libgtk-3-0 (>= 3.21.5) only available on 17.10 -> 18.10
> > libgwenhywfar60 (>= 3.99.16) available on 14.04 -> 18.10
> > libicu57 (>= 57.1- only available on 17.10
> >
> > Looks like I should upgrade to 18.04 (I mostly only use this VM for
> > testing
> > GnuCash) or is there an easy way to install the required packages
> > without overriding the standard packages? I guess on 16.04, I could
> > compile the new package versions to /usr/local?
> >
> > Maybe I should upgrade to 18.04 then try to build from gnucash maint
source?
> >
> > I'm a little worried the Debian Archive 3.0-1 was built on a system
> > with a not easily reproducible mixture of package versions. I cannot
> > find any documentation saying what you need to run it.
> >
> > The https://wiki.gnucash.org/wiki/BuildUbuntu16.04 page mentions only
> > guile-2.0 not guile-2.2.
> >
> > Does the current gnucash maint build OK on Ubuntu 18.04?
> >
> > [1] http://ftp.us.debian.org/debian/pool/main/g/gnucash/
> 
> Chris,
> 
> Our Travis CI tests on Ubuntu 14.04 so it should work on any Ubuntu later
than
> that. You can copy-and-paste the apt-get and git clone commands from
> https://github.com/Gnucash/gnucash/blob/maint/util/ci/ubuntu-14.04-docker
> <https://github.com/Gnucash/gnucash/blob/maint/util/ci/ubuntu-14.04-
> docker> to get a ready-to-go build environment.
> 
> Regards,
> John Ralls
> 
> ------------------------------

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/json/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/json/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/json/buil
der.go'
[120/892] Building CXX object
common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googletest/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/googletest/src
/gtest-all.cc.o -MF
common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googletest/src
/gtest-all.cc.o.d -o
common/test-core/CMakeFiles/gtest.dir/home/cgood/github/gtest/googletest/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/googlemock/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/googlemock/src
/gmock-all.cc.o -MF
common/test-core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemock/src
/gmock-all.cc.o.d -o
common/test-core/CMakeFiles/gmock.dir/home/cgood/github/gtest/googlemock/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
'testing::internal::UntypedFunctionMockerBase'
 UntypedFunctionMockerBase::UntypedInvokeWith(const void* const
untyped_args)
 ^
In file included from
/usr/include/gmock/gmock-generated-function-mockers.h:43:0,
                 from /usr/include/gmock/gmock.h:61,
                 from
/home/cgood/github/gtest/googlemock/src/gmock-all.cc:40:
/usr/include/gmock/gmock-spec-builders.h:214:40: error: candidate is: const
testing::internal::UntypedActionResultHolderBase*
testing::internal::UntypedFunctionMockerBase::UntypedInvokeWith(const void*)
   const UntypedActionResultHolderBase* UntypedInvokeWith(
                                        ^
ninja: build stopped: subcommand failed.

find ../gtest -name gtest.h
../gtest/googletest/include/gtest/internal/custom/gtest.h
../gtest/googletest/include/gtest/gtest.h

Regards, Chris Good



More information about the gnucash-devel mailing list