CMake Error at common/cmake_modules/GncAddTest.cmake:139 (message):
GTEST not found. Please install it or set GTEST_ROOT or GMOCK_ROOT
Call Stack (most recent call first):
Tried the following with no success:
build dir below source dir FAIL
build same level as source FAIL
Absolute path FAIL
Relative path FAIL
installed googlemock FAIL
See the wiki linux build instructions about installing GTEST/GMOCK.
Then try to build again.
> On Oct 18, 2019 w42d291, at 11:08 AM, NOSTOP <[hidden email]> wrote:
> [hidden email] >
> I'm trying to build on mint 19.2.
> I ran David Cousens Script to get libs, dependencies, etc for a build of ver
> 3.7. Confirmed all were successful.
> Running :
> ~/Applications_building/gnucash-3.7/gnucash-build$ cmake -GNinja
> -DCMAKE_INSTALL_PREFIX=/usr/local ..
> Always gets the error in terminal :
> CMake Error at common/cmake_modules/GncAddTest.cmake:139 (message):
> GTEST not found. Please install it or set GTEST_ROOT or GMOCK_ROOT
> Call Stack (most recent call first):
> CMakeLists.txt:625 (gnc_gtest_configure)
> Tried the following with no success:
> build dir below source dir FAIL
> build same level as source FAIL
> Absolute path FAIL
> Relative path FAIL
> installed googlemock FAIL
> Has anyone a suggestion/solution?
> Thank you
While awaiting for replies to my request for help, I went
ahead and removed googletest as installed by the Mint repo and followed the
It worked insofar as I'm no longer getting any errors
regarding GTEST GMOCK and build files were written to the build
However checking the error log, it's not empty either. It shows
some other issues unrelated to googtest but related to ninja."ninja: build
stopped: subcommand failed".
I'm not at the build machine or I'd paste the
exact errors here.
I'm not sure whether to expect an perfectly clean
CMakeError.log or whether some errors are not of consequence and will not
prevent hinder a successful build and install.
This is the first time I've tried to compile and install a program, so I'm taking it slow and
learning as I go.