[GNC-dev] Building 3.5 package for Disco

John Ralls jralls at ceridwen.us
Sat Apr 27 09:48:08 EDT 2019



> On Apr 26, 2019, at 8:16 PM, Stephen M. Butler <kg7je at arrl.net> wrote:
> 
> On 4/26/19 4:04 PM, John Ralls wrote:
>> 
>>> On Apr 26, 2019, at 10:04 AM, Stephen M. Butler <kg7je at arrl.net> wrote:
>>> 
>>> Based on the following, have I run into a problem with googletest on
>>> Disco?  Additional Guidance sure appreciated.
>>> 
>> Just point GnuCash at the source directories with -DGTEST_ROOT and -DGMOCK_ROOT. It will take care of building them.
>> 
>> Regards,
>> John Ralls
>> 
> 
> found these two lines up front in the debian/rules file.
> 
>    export GMOCK_ROOT=$(CURDIR)/.build/__gtest/googlemock
>    export GTEST_ROOT=$(CURDIR)/.build/__gtest/googletestT
> 
> Changed them to be:
> 
>    export GMOCK_ROOT=/usr/src/googletest/googletest
>    export GTEST_ROOT=/usr/src/googletest/googlemock
> 
> and dpkg_buildpackage thru eggs all over the screen within a couple of
> seconds.  Now searching for how cmake is invoked.  Probably pick this up
> again Sunday evening. 

CMake doesn't read the environment except for CFLAGS, CXXFLAGS, and LDFLAGS so you have to explicitly set those on the cmake command line:
   cmake -G Ninja -D CMAKE_INSTALL_PREFIX=/path/to/install -D GTEST_ROOT=/usr/src/googletest/googletest -D GMOCK_ROOT=/usr/src/googletest/googlemock /path/to/gnucash-source

Regards,
John Ralls



More information about the gnucash-devel mailing list