[GNC-dev] gnucash-3.0 build: GMOCK still causing trouble

Paul Dest paul.dest at web.de
Thu Apr 26 11:49:26 EDT 2018


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 at 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 at 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
>
>
>




More information about the gnucash-devel mailing list