Re: [GNC] piecharts/linecharts turned blank in reports after upgrade

2021-07-24 Thread Dong Lin via gnucash-user


I created a fresh VM using ubuntu 21.04, minimal install with no gnucash
installed.

$ sudo apt-get build-dep gnucash
$ git clone https://github.com/Gnucash/gnucash.git
$ cd gnucash
$ git reset --hard 4.6
$ mkdir ../build && cd ../build
$ cmake ../gnucash
$ make -j8
$ ./bin/gnucash

the resulting gnucash produced blank charts.  tables are visible when
enabled.


> No, that switches only the libgnc*.so libs in lib/gnucash. There are
> others in lib/.
>
> You cannot build GnuCash with an installed GnuCash. You must `sudo apt-get
> remove gnucash` then `rm -rf *` your build directory and re-run cmake &&
> ninja.
>
> Regards,
> John Ralls
>
>
>> On Jul 20, 2021, at 9:16 PM, Dong Lin  wrote:
>>
>>
>> vm-ubuntu-1:~/src/build-gnucash$ mv lib lib-local-build
>> vm-ubuntu-1:~/src/build-gnucash$ ln -s /usr/lib/x86_64-linux-gnu/gnucash
>> lib
>>
>> this only switches the libgnc-*.so libs only.  all other libs continue
>> to
>> point to /usr/lib.
>>
>> vm-ubuntu-1:~/src/build-gnucash$ ./bin/gnucash
>> ./bin/gnucash: symbol lookup error: ./bin/gnucash: undefined symbol:
>> gnc_run_report_with_error_handling
>>
>>
>>> Switched how? What libwebkit2gtk.so and libjavascriptcoregtk.so was
>>> libgnc-html.so linked to if not the ones in /usr/lib?
>>>
>>> Regards,
>>> John Ralls
>>>
 On Jul 20, 2021, at 7:55 PM, Dong Lin  wrote:


 On a freshly installed Ubuntu 21.04 VM with apt installed GNC 4.4. the
 apt
 installed GNC runs fine with charts visible.

 But locally built GNC (tip of the latest maint branch) has the same
 issue.
 I tried switching the libs in build_dir to point to
 /usr/lib/x86_64-linux-gnu/gnucash,  but the local gnucash encountered
 an
 undefined symbol gnc_run_report_with_error_handling and couldn't
 start.

 apt removed the system gnucash, purged ~/.cache. reran the local gnc,
 same
 problem, blank charts.
 only the table is visible.

 the build environment was prepared with apt-get build-dep gnucash as
 instructed.

>


___
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: [GNC] piecharts/linecharts turned blank in reports after upgrade

2021-07-24 Thread Christopher Lam
Try exporting the report to HTML and view source to determine where it's
trying to find chartjs sources.

On Sun, 25 Jul 2021, 9:06 am Dong Lin via gnucash-user, <
gnucash-user@gnucash.org> wrote:

>
> I created a fresh VM using ubuntu 21.04, minimal install with no gnucash
> installed.
>
> $ sudo apt-get build-dep gnucash
> $ git clone https://github.com/Gnucash/gnucash.git
> $ cd gnucash
> $ git reset --hard 4.6
> $ mkdir ../build && cd ../build
> $ cmake ../gnucash
> $ make -j8
> $ ./bin/gnucash
>
> the resulting gnucash produced blank charts.  tables are visible when
> enabled.
>
>
> > No, that switches only the libgnc*.so libs in lib/gnucash. There are
> > others in lib/.
> >
> > You cannot build GnuCash with an installed GnuCash. You must `sudo
> apt-get
> > remove gnucash` then `rm -rf *` your build directory and re-run cmake &&
> > ninja.
> >
> > Regards,
> > John Ralls
> >
> >
> >> On Jul 20, 2021, at 9:16 PM, Dong Lin  wrote:
> >>
> >>
> >> vm-ubuntu-1:~/src/build-gnucash$ mv lib lib-local-build
> >> vm-ubuntu-1:~/src/build-gnucash$ ln -s /usr/lib/x86_64-linux-gnu/gnucash
> >> lib
> >>
> >> this only switches the libgnc-*.so libs only.  all other libs continue
> >> to
> >> point to /usr/lib.
> >>
> >> vm-ubuntu-1:~/src/build-gnucash$ ./bin/gnucash
> >> ./bin/gnucash: symbol lookup error: ./bin/gnucash: undefined symbol:
> >> gnc_run_report_with_error_handling
> >>
> >>
> >>> Switched how? What libwebkit2gtk.so and libjavascriptcoregtk.so was
> >>> libgnc-html.so linked to if not the ones in /usr/lib?
> >>>
> >>> Regards,
> >>> John Ralls
> >>>
>  On Jul 20, 2021, at 7:55 PM, Dong Lin  wrote:
> 
> 
>  On a freshly installed Ubuntu 21.04 VM with apt installed GNC 4.4. the
>  apt
>  installed GNC runs fine with charts visible.
> 
>  But locally built GNC (tip of the latest maint branch) has the same
>  issue.
>  I tried switching the libs in build_dir to point to
>  /usr/lib/x86_64-linux-gnu/gnucash,  but the local gnucash encountered
>  an
>  undefined symbol gnc_run_report_with_error_handling and couldn't
>  start.
> 
>  apt removed the system gnucash, purged ~/.cache. reran the local gnc,
>  same
>  problem, blank charts.
>  only the table is visible.
> 
>  the build environment was prepared with apt-get build-dep gnucash as
>  instructed.
> 
> >
>
>
> ___
> 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.
>
___
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.