[GNC-dev] Gnucash-3.0 build error: GTEST not found
jralls at ceridwen.us
Mon Apr 9 10:11:29 EDT 2018
> On Apr 8, 2018, at 11:56 PM, DaveC49 <davidcousens at bigpond.com> wrote:
> Thanks John,
> I did clone the googletest-master at https://github.com/google/googletest
> which has gmock incorporated. I will try pointing GMOCK_ROOT and GTEST_ROOT
> at the copies within my user directory that I installed it from as a shared
> library in usr/local. I will also check the permissions on the shared
> library to see if that is what is causing a problem.
> I will incorporate the patch https://github.com/Gnucash/gnucash/pull/329
> into the existing code and use v1.8.0 from now on. I have not found a
> successful description on the ubuntu and linux mint forums for how to
> properly install google test as a shared library. The readme under
> googletest on github still describes the setup for v 1.7.0. I had changed
> the install to put the libraries and includes in what seemed like
> appropriate locations under /usr/local.
> I would have got further today but unfortunately the weather here was
> magnificent so I opted for fishing from my kayak instead but I will get back
> to it tonight
The Googletest documentation says that one should not build google test or google mock as shared libraries, and our build system prefers it that way. Some distros insist that one should anyway because they don’t want to be distributing source, I suppose. If you already have a source clone then just point GTEST_ROOT and GMOCK_ROOT at the appropriate subdirectories in it and be done with it.
More information about the gnucash-devel