[GNC] mint 19.2 build error re GTEST

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[GNC] mint 19.2 build error re GTEST

NOSTOP
[hidden email]

Greetings!

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



--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] mint 19.2 build error re GTEST

Adrien Monteleone-2
See the wiki linux build instructions about installing GTEST/GMOCK.

Then try to build again.

Regards,
Adrien

> On Oct 18, 2019 w42d291, at 11:08 AM, NOSTOP <[hidden email]> wrote:
>
> [hidden email]
>
> Greetings!
>
> 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


_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] mint 19.2 build error re GTEST

David Cousens
In reply to this post by NOSTOP
You can  install googletest1.8.0-6 using apt. The instructions on the Wiki
(https://wiki.gnucash.org/wiki/Google_Test) came from before googletest was
available in apt.

The script should have done that but to check it is properly installed.

apt list --installed | grep google  

should return
googletest/bionic,now 1.8.0-6 amd64 [installed]

or

dpkg -l | grep google

which will re

ii  googletest:amd64                                                 1.8.0-6                                      
amd64        Google's C++ test framework

will tell you if it is installed on your system

whereis googletest

should give: googletest: /usr/src/googletest/googletest

whereis gtest

will give: gtest: /usr/include/gtest

and
whereis gmock

should return: gmock: /usr/include/gmock /usr/share/gmock

David Cousens





-----
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
David Cousens
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] mint 19.2 build error re GTEST

NOSTOP
This post was updated on .
In reply to this post by Adrien Monteleone-2
Thank you Adrien.

While awaiting for replies to my request for help, I went
ahead and removed googletest as installed by the Mint repo and followed the
wiki procedure.
It worked insofar as I'm no longer getting any errors
regarding GTEST GMOCK and build files were written to the build
directory.

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.

Update to follow.

Thank you



--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] mint 19.2 build error re GTEST

NOSTOP
In reply to this post by David Cousens
Hello David,

The script did install googletest 1.8.0-6 as expected.

The problem was not googletest 1.8.0-6  wasn't installed, but rather It was
not found running cmake.

I went ahead and removed it, then followed the wiki and re-ran cmake without
any more GTEST issues.

This is not to say i'm out of the woods as there are other errors seen in
the CMakeError.log seemingly unrelated googletest which I need to
investigate before I run ninja.

Thank you



--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.