Re: [GNC-dev] Building 3.5 package for Disco

2019-04-28 Thread Stephen M. Butler
On 4/27/19 6:48 AM, John Ralls wrote:
>
>> On Apr 26, 2019, at 8:16 PM, Stephen M. Butler  wrote:
>>
>> On 4/26/19 4:04 PM, John Ralls wrote:
 On Apr 26, 2019, at 10:04 AM, Stephen M. Butler  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.

--Steve

-- 
Stephen M Butler, PMP, PSM
stephen.m.butle...@gmail.com
kg...@arrl.net
253-350-0166
---
GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] How to contribute to GnuCash?

2019-04-28 Thread Geert Janssens
That was the code path I was looking for in my previous reply. And indeed 
while copying a transaction goes through scheme code it's not the engine 
itself requiring it. So something to clean up eventually, but probably not 
blocking for a companion app.

Geert

Op zaterdag 27 april 2019 18:24:00 CEST schreef John Ralls:
> Right, engine-interface.scm is one of several files of helper code to make
> it easier or more idiomatic to write scheme code using the engine. They're
> not in the path if one uses the engine API from Scheme. Contrast that with
> using an options dialog from C: That goes through the Scheme options code
> in app-utils to be written to the book's slots via kvp-scm.cpp.
> 
> Regards,
> John Ralls
> 
> > On Apr 27, 2019, at 7:53 AM, Christopher Lam 
> > wrote:
> > 
> > I've managed to enter some guile code from the register: "Transaction >
> > Copy Transaction" will copy the current transaction into an scm object via
> > functions in engine-interface.scm, called from split-register.c, and I
> > presume this scm object is read back to paste later on. Ditto Transaction
> > >
> > Duplicate Transaction.
> > 
> > 
> > On Sat, 27 Apr 2019 at 14:29, Geert Janssens 
> > 
> > wrote:
> >> Op zaterdag 27 april 2019 16:05:42 CEST schreef John Ralls:
>  On Apr 26, 2019, at 10:55 PM, Geert Janssens <
> >> 
> >> geert.gnuc...@kobaltwit.be>
> >> 
>  wrote:>
>  
>  Op zaterdag 27 april 2019 01:01:38 CEST schreef John Ralls:
> > What Geert meant is that our current engine code *isn't* particularly
> > portable, though I think that since it compiles OK on MacOS it
> >> 
> >> shouldn't
> >> 
> > have too much trouble with iOS either. It's a mix of C and C++ and the
> > main
> > dependencies are Boost and Gnome Glib; the XML file backend also
> >> 
> >> depends
> >> 
> > on
> > libxml2 and the SQL backend depends on libdbi.
> > 
> > The public mirror for our git repository is at
> > https://github.com/gnucash/gnucash. Note that the stable branch is
> > "maint".
> > Doxygen API docs are at https://code.gnucash.org/docs/MAINT.
> > 
> > Regards,
> > John Ralls
>  
>  The devil is in the details... The engine code currently still depends
> >> 
> >> on
> >> 
>  guile as well, which is a scripting language. Doesn't Apple impose
>  restrictions on that ?
>  I currently don't have a full overview of where guile is used in the
>  engine
>  code. I know the option system is heavily dependent on it, but that's
>  primarily used by the report system.
> >>> 
> >>> There's no guile in the backends, and only a little in engine, core
> >> 
> >> utils,
> >> 
> >>> and gnc-module for facilitating the wrappers. App-utils is heavy with
> >>> scheme but that's to support application features like options and the
> >>> financial functions for scheduled transactions, and price-quote is
> >> 
> >> scheme.
> >> 
> >>> I think John's team can set up a build of just engine and the backends
> >> 
> >> they
> >> 
> >>> want to support without swigging and so without guile. That should be
> >>> enough for a companion project similar to GfA.
> >>> 
> >>> Regards,
> >>> John Ralls
> >> 
> >> I'm glad to hear that. I have a vague recollection of tracing some
> >> transaction
> >> code in the past and ending up in guile. That may have been cleaned up by
> >> now.
> >> 
> >> 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




___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel