[GNC-dev] Building 3.5 package for Disco

Stephen M. Butler kg7je at arrl.net
Sun Apr 28 18:12:37 EDT 2019

On 4/27/19 6:48 AM, John Ralls wrote:
>> 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
Thanks for the confirmation John.  I'll dig into debian/rules to figure
out how/where it invokes cmake.  Cutting trees today so probably tomorrow.


Stephen M Butler, PMP, PSM
Stephen.M.Butler51 at gmail.com
kg7je at arrl.net
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

More information about the gnucash-devel mailing list