I've tried but with the same outcome. I've found the cause of the problem. On my system I had installed libgtest-dev-1.7.0-4 (the only available version through the official repository of my Linux distribution). Apparently that is conflicting with the gmock of GoogleTest 1.8.0.
After deinstalling libgtest-dev-1.7.0-4, a fresh build ran through (with added -DGTEST and -DGMOCK pointing to the appropirate directories of the GoogleTest 1.8.0 source code repository). My GnuCash 3.0 is successfully built and starts. Thanks for assisting! Paul Am 26.04.2018 um 18:18 schrieb John Ralls: > Looks like a bug in googletest. Try checking out 'release-1.8.0'. > > Regards, > John Ralls > >> On Apr 26, 2018, at 8:49 AM, Paul Dest <paul.d...@web.de> wrote: >> >> Thanks for this advice. Now the cmake run ends successfully. But the >> following make fails as shown below. >> >> How to proceed? >> >> Thanks in advance, >> Paul >> >> paul@paul-Macmini ~/gnucash/build $ make >> [ 0%] Built target gwengui-gtk3 >> [ 5%] Built target po-gmo >> [ 16%] Built target po-gmo-build >> [ 18%] Built target gnc-module >> [ 18%] Built target gnc-vcs-info >> [ 18%] Built target swig-runtime-h >> [ 19%] Built target gnc-core-utils >> [ 19%] Built target iso-4217-c >> [ 28%] Built target gncmod-engine >> [ 29%] Built target test-core >> [ 30%] Built target gtest >> [ 30%] Built target test-core-guile >> [ 30%] Built target scm-test-core >> [ 30%] Building CXX object >> common/test-core/CMakeFiles/gmock.dir/home/paul/gnucash/googletest-from-github/googletest/googlemock/src/gmock-all.cc.o >> In file included from >> /home/paul/gnucash/googletest-from-github/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:44:0, >> from >> /home/paul/gnucash/googletest-from-github/googletest/googlemock/include/gmock/gmock-actions.h:46, >> from >> /home/paul/gnucash/googletest-from-github/googletest/googlemock/include/gmock/gmock.h:58, >> from >> /home/paul/gnucash/googletest-from-github/googletest/googlemock/src/gmock-all.cc:40: >> /home/paul/gnucash/googletest-from-github/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:72:22: >> error: ‘tuple’ is not a member of ‘testing’ >> struct MatcherTuple< ::testing::tuple<> > { >> ^ >> /home/paul/gnucash/googletest-from-github/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:72:22: >> note: suggested alternatives: >> >> ... >> <!-- a lot of other similar compile error messages --> >> ... >> >> cc1plus: all warnings being treated as errors >> common/test-core/CMakeFiles/gmock.dir/build.make:62: recipe for target >> 'common/test-core/CMakeFiles/gmock.dir/home/paul/gnucash/googletest-from-github/googletest/googlemock/src/gmock-all.cc.o' >> failed >> make[2]: *** >> [common/test-core/CMakeFiles/gmock.dir/home/paul/gnucash/googletest-from-github/googletest/googlemock/src/gmock-all.cc.o] >> Error 1 >> CMakeFiles/Makefile2:1955: recipe for target >> 'common/test-core/CMakeFiles/gmock.dir/all' failed >> make[1]: *** [common/test-core/CMakeFiles/gmock.dir/all] Error 2 >> Makefile:160: recipe for target 'all' failed >> make: *** [all] Error 2 >> >> >> Am 26.04.2018 um 13:29 schrieb Geert Janssens: >>> Op donderdag 26 april 2018 12:46:45 CEST schreef Paul Dest: >>>> Hi everybody, >>>> >>>> Trying to build gnucash-3.0 on my Linux Mint I get the following error >>>> message that I cannot fix on my own: >>>> >>>> -------------------------------------------------------- >>>> paul@paul-Macmini ~/gnucash/build $ cmake -D >>>> CMAKE_INSTALL_PREFIX=$HOME/.local ~/gnucash/gnucash-3.0/ >>>> -- Using guile-2.0.x >>>> -- Using guile SRFI-64 >>>> -- Checking for GTEST >>>> -- Checking for GMOCK >>>> CMake Error at common/cmake_modules/GncAddTest.cmake:168 (MESSAGE): >>>> GMOCK not found. Please install it or set GMOCK_ROOT >>>> Call Stack (most recent call first): >>>> CMakeLists.txt:596 (GNC_GTEST_CONFIGURE) >>>> >>>> >>>> -- Configuring incomplete, errors occurred! >>>> See also "/home/paul/gnucash/build/CMakeFiles/CMakeOutput.log". >>>> See also "/home/paul/gnucash/build/CMakeFiles/CMakeError.log". >>>> ------------------------------------------------------- >>>> >>>> I cannot find any gmock package in any repository or on the Web. >>>> Furthermore, the https://github.com/google/googlemock says: "This >>>> project has been absorbed into the GoogleTest project. All open >>>> googlemock issues have been moved there." And I have already installed >>>> all GoogleTest packages. >>>> >>>> How to proceed? >>>> >>>> Thanks in advance, >>>> Paul >>> The current recommendation is to clone the googletest repository and then >>> add >>> -DGMOCK_ROOT=<path-to-gmock-in-googletest-repo> to your cmake invocation. >>> >>> Regards, >>> >>> Geert >>> >>> >>> >> >> _______________________________________________ >> gnucash-devel mailing list >> gnucash-devel@gnucash.org >> https://lists.gnucash.org/mailman/listinfo/gnucash-devel > _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel