Re: Compiling -DWITH_GNUCASH=NO

2018-03-24 Thread John Ralls


> On Mar 24, 2018, at 7:35 AM, Matthew Pounsett  wrote:
> 
> 
> 
> On 23 March 2018 at 11:59, John Ralls  > wrote:
> 
> 
>> On Mar 23, 2018, at 8:34 AM, Matthew Pounsett > > wrote:
>> 
>> On 23 March 2018 at 00:35, Geert Janssens > >
>> wrote:
>> 
>>> 
>>> Ideally this would become part of libgnucash in order to make the report
>>> generation platform independent as well (and hence opening the way to make
>>> it
>>> accessible one day on android or osx platforms). This will only be
>>> possible at
>>> the cost of moving away from scheme as reporting engine unfortunately as
>>> that
>>> would not be portable...
>>> 
>> 
>> lua maybe?  It seems popular and portable.. and it's already on my personal
>> education roadmap. :)
> 
> Apple’s rules for iOS include *no interpreters*. That means no Guile, no 
> Python, no Lua, no Ruby, no Javascript.
> 
> That's a shame.  But doesn't that pretty much rule out having an easily 
> expandable reporting engine on iOS?

Not really. The report module in GnuCash is very much done “the hard way”. 
Plain queries and a simple processor to wrap the results in html along with a 
bit of css would get the same results with a lot less effort; add a 
query-by-example UI and the result would be infinitely more user friendly. I 
exaggerated a bit about Javascript because iOS includes Safari and it obviously 
has a javascript interpreter in it. I don’t know UIKit very well but I’d be 
surprised if it doesn’t expose some sort of browser-like view that we could use 
for displaying reports.

Regards,
John Ralls
___
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.

Re: Compiling -DWITH_GNUCASH=NO

2018-03-24 Thread Matthew Pounsett
On 23 March 2018 at 11:59, John Ralls  wrote:

>
>
> On Mar 23, 2018, at 8:34 AM, Matthew Pounsett  wrote:
>
> On 23 March 2018 at 00:35, Geert Janssens 
> wrote:
>
>
> Ideally this would become part of libgnucash in order to make the report
> generation platform independent as well (and hence opening the way to make
> it
> accessible one day on android or osx platforms). This will only be
> possible at
> the cost of moving away from scheme as reporting engine unfortunately as
> that
> would not be portable...
>
>
> lua maybe?  It seems popular and portable.. and it's already on my personal
> education roadmap. :)
>
>
> Apple’s rules for iOS include *no interpreters*. That means no Guile, no
> Python, no Lua, no Ruby, no Javascript.
>

That's a shame.  But doesn't that pretty much rule out having an easily
expandable reporting engine on iOS?


>
> BTW, no, lua isn’t particularly popular: https://insights.
> stackoverflow.com/survey/2017#technology
> https://isocpp.org/files/papers/CppDevSurvey-2018-02-summary.pdf
>
> That shows percentage of all languages, not embedded
scripting/configuration languages.   And speaking from recent personal
experience, lua seems to be gaining in popularity faster than anything else
I've noticed for that purpose.
___
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.

Re: Compiling -DWITH_GNUCASH=NO

2018-03-23 Thread John Ralls


> On Mar 23, 2018, at 8:34 AM, Matthew Pounsett  wrote:
> 
> On 23 March 2018 at 00:35, Geert Janssens 
> wrote:
> 
>> 
>> Ideally this would become part of libgnucash in order to make the report
>> generation platform independent as well (and hence opening the way to make
>> it
>> accessible one day on android or osx platforms). This will only be
>> possible at
>> the cost of moving away from scheme as reporting engine unfortunately as
>> that
>> would not be portable...
>> 
> 
> lua maybe?  It seems popular and portable.. and it's already on my personal
> education roadmap. :)

Apple’s rules for iOS include *no interpreters*. That means no Guile, no 
Python, no Lua, no Ruby, no Javascript.

BTW, no, lua isn’t particularly popular: 
https://insights.stackoverflow.com/survey/2017#technology 

https://isocpp.org/files/papers/CppDevSurvey-2018-02-summary.pdf 


Regards,
John Ralls


___
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.

Re: Compiling -DWITH_GNUCASH=NO

2018-03-23 Thread Matthew Pounsett
On 23 March 2018 at 00:35, Geert Janssens 
wrote:

>
> Ideally this would become part of libgnucash in order to make the report
> generation platform independent as well (and hence opening the way to make
> it
> accessible one day on android or osx platforms). This will only be
> possible at
> the cost of moving away from scheme as reporting engine unfortunately as
> that
> would not be portable...
>

lua maybe?  It seems popular and portable.. and it's already on my personal
education roadmap. :)
___
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.


Re: Compiling -DWITH_GNUCASH=NO

2018-03-22 Thread Geert Janssens
Op vrijdag 23 maart 2018 06:27:07 WIB schreef Christopher Lam:
> Hi Potuz
> 
> This is clever- would you mind documenting the process to run reports
> from command line?
> 
> C

It's one of my long term goals to separate report generation from report 
display. That would allow to generate reports from the command line.

Ideally this would become part of libgnucash in order to make the report 
generation platform independent as well (and hence opening the way to make it 
accessible one day on android or osx platforms). This will only be possible at 
the cost of moving away from scheme as reporting engine unfortunately as that 
would not be portable...

A huge work and hence long term...

Geert


___
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.


Re: Compiling -DWITH_GNUCASH=NO

2018-03-22 Thread Geert Janssens
Op donderdag 22 maart 2018 21:20:19 WIB schreef Potuz:
> Hello, I have a number of scripts that parse my .gnucash sqlite dbase and
> produce reports. I'd like to be able to compile and run those programs in a
> linux system without gtk+ (in particular no gnome and no webkit-gtk).
> However when I try to compile with -DWITH_GNUCASH=NO I pick errors since it
> seems that libgnucash needs scm/price-quotes.scm which in turn needs
> scm-gnome-utils which seem to be defined under gnucash/gnome-utils/ but
> that directory won't be included without WITH_GNUCASH. The error I get is
> simply:
> 
> make[2]: *** No rule to make target
> '/var/tmp/portage/app-office/gnucash-2.7.5-r1/work/
> gnucash-2.7.5/libgnucash/scm/scm-gnome-utils', needed by
> 'lib64/gnucash/scm/ccache/2.2/ gnucash/price-quotes.go'.  Stop.
> 
> How should I build libgnucash without gtk?

Our goal is to make libgnucash independent of gtk. But your experiment shows 
we're not fully there yet...

Can you file this as a bug report ?

Geert


___
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.


Re: Compiling -DWITH_GNUCASH=NO

2018-03-22 Thread Potuz

On Mar 23, Christopher Lam wrote:

Hi Potuz

This is clever- would you mind documenting the process to run reports
from command line?


I am not running gnucash reports, I wrote my own set of C programs to write tax returns and portfolio performance related reports specialized for Brazilian tax laws. 


I got a new laptop and I moved to Qt + qtwebengine and since I am on Gentoo I 
am not keen on compiling gtk+ and certainly not gtk-webkit. This way I now can 
compile libgnucash (which my programs link) without gnucash

Cheers, 

R. 



C


On 23/03/18 04:57, Potuz wrote:

On Mar 22, Potuz wrote:

Hello, I have a number of scripts that parse my .gnucash sqlite dbase
and produce reports. I'd like to be able to compile and run those
programs in a linux system without gtk+ (in particular no gnome and
no webkit-gtk). However when I try to compile with -DWITH_GNUCASH=NO
I pick errors since it seems that libgnucash needs
scm/price-quotes.scm which in turn needs scm-gnome-utils which seem
to be defined under gnucash/gnome-utils/ but that directory won't be
included without WITH_GNUCASH. The error I get is simply:

make[2]: *** No rule to make target
'/var/tmp/portage/app-office/gnucash-2.7.5-r1/work/
gnucash-2.7.5/libgnucash/scm/scm-gnome-utils', needed by
'lib64/gnucash/scm/ccache/2.2/
gnucash/price-quotes.go'.  Stop.

How should I build libgnucash without gtk?

Thanks,

P.


For what it's worth, I solved my issue simply removing the target in
libgnucash/scm/CMakeLists.txt




signature.asc
Description: PGP signature
___
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.

Re: Compiling -DWITH_GNUCASH=NO

2018-03-22 Thread Christopher Lam

Hi Potuz

This is clever- would you mind documenting the process to run reports 
from command line?


C


On 23/03/18 04:57, Potuz wrote:

On Mar 22, Potuz wrote:
Hello, I have a number of scripts that parse my .gnucash sqlite dbase 
and produce reports. I'd like to be able to compile and run those 
programs in a linux system without gtk+ (in particular no gnome and 
no webkit-gtk). However when I try to compile with -DWITH_GNUCASH=NO 
I pick errors since it seems that libgnucash needs 
scm/price-quotes.scm which in turn needs scm-gnome-utils which seem 
to be defined under gnucash/gnome-utils/ but that directory won't be 
included without WITH_GNUCASH. The error I get is simply:


make[2]: *** No rule to make target 
'/var/tmp/portage/app-office/gnucash-2.7.5-r1/work/
gnucash-2.7.5/libgnucash/scm/scm-gnome-utils', needed by 
'lib64/gnucash/scm/ccache/2.2/

gnucash/price-quotes.go'.  Stop.

How should I build libgnucash without gtk?

Thanks,

P.

For what it's worth, I solved my issue simply removing the target in 
libgnucash/scm/CMakeLists.txt


___
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.


Re: Compiling -DWITH_GNUCASH=NO

2018-03-22 Thread Potuz

On Mar 22, Potuz wrote:

Hello, I have a number of scripts that parse my .gnucash sqlite dbase and 
produce reports. I'd like to be able to compile and run those programs in a 
linux system without gtk+ (in particular no gnome and no webkit-gtk). However 
when I try to compile with -DWITH_GNUCASH=NO I pick errors since it seems that 
libgnucash needs scm/price-quotes.scm which in turn needs scm-gnome-utils which 
seem to be defined under gnucash/gnome-utils/ but that directory won't be 
included without WITH_GNUCASH. The error I get is simply:

make[2]: *** No rule to make target 
'/var/tmp/portage/app-office/gnucash-2.7.5-r1/work/
gnucash-2.7.5/libgnucash/scm/scm-gnome-utils', needed by 
'lib64/gnucash/scm/ccache/2.2/
gnucash/price-quotes.go'.  Stop.

How should I build libgnucash without gtk?

Thanks,

P.


For what it's worth, I solved my issue simply removing the target in 
libgnucash/scm/CMakeLists.txt



___
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.




signature.asc
Description: PGP signature
___
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.

Compiling -DWITH_GNUCASH=NO

2018-03-22 Thread Potuz

Hello, I have a number of scripts that parse my .gnucash sqlite dbase and 
produce reports. I'd like to be able to compile and run those programs in a 
linux system without gtk+ (in particular no gnome and no webkit-gtk). However 
when I try to compile with -DWITH_GNUCASH=NO I pick errors since it seems that 
libgnucash needs scm/price-quotes.scm which in turn needs scm-gnome-utils which 
seem to be defined under gnucash/gnome-utils/ but that directory won't be 
included without WITH_GNUCASH. The error I get is simply:

make[2]: *** No rule to make target 
'/var/tmp/portage/app-office/gnucash-2.7.5-r1/work/
gnucash-2.7.5/libgnucash/scm/scm-gnome-utils', needed by 
'lib64/gnucash/scm/ccache/2.2/
gnucash/price-quotes.go'.  Stop.

How should I build libgnucash without gtk?

Thanks, 

P. 



signature.asc
Description: PGP signature
___
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.