Re: [GNC-dev] Chartsjs javascript not loaded in html reports since 4.6
The suggestion works for running from the build directory. However, version 4.8a is not installing correctly. I'm seeing no charts and negative values for equity / liability accounts after installing with make. I'm not sure how to debug this issue. It runs correctly from the build directory after creating the symlink. I'm running on ubuntu 20.04. Antonios Hadjigeorgalis LinkedIn.com <http://www.linkedin.com/in/AntoniosHadji> @AntoniosHadji <https://www.twitter.com/AntoniosHadji> On Sat, Nov 27, 2021 at 5:56 PM D. wrote: > Someone reported similar troubles a while back. Take a look at > https://lists.gnucash.org/pipermail/gnucash-user/2021-July/097219.html > > I believe there was a simple fix. > ------ > *From:* Antonios Hadjigeorgalis > *Sent:* Sat Nov 27 15:54:50 EST 2021 > *To:* gnucash-devel@gnucash.org > *Subject:* [GNC-dev] Chartsjs javascript not loaded in html reports since > 4.6 > > When I build 4.7, or 4.8a the html reports with javascript chartjs do not > show the charts. > When I export the report to html, I see the chartjs library is missing. > > src="file:///"> > > Where in 4.6 I see > > src="file:usr/local/share/gnucash/chartjs/Chart.bundle.min.js"> > > the javascript location appears to be sourced from guile function > gnc-path-find-localized-html-file in file > share/guile/site/2.2/gnucash/report/html-chart.scm > > I can find this function defined in both 4.6 and the later builds in file > bindings/guile/swig-core-utils-guile.c. > > Based on my current understanding of the code base, that's as far as I got > in looking for what is causing this error. Are there any particular parts > of the documentation that would help me understand how this is happening? > I'd love to fix it if it could. Any help would be appreciated. > > > Antonios Hadjigeorgalis > LinkedIn.com <http://www.linkedin.com/in/AntoniosHadji> > @AntoniosHadji > <https://www.twitter.com/AntoniosHadji> > -- > > 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
[GNC-dev] Chartsjs javascript not loaded in html reports since 4.6
When I build 4.7, or 4.8a the html reports with javascript chartjs do not show the charts. When I export the report to html, I see the chartjs library is missing. Where in 4.6 I see the javascript location appears to be sourced from guile function gnc-path-find-localized-html-file in file share/guile/site/2.2/gnucash/report/html-chart.scm I can find this function defined in both 4.6 and the later builds in file bindings/guile/swig-core-utils-guile.c. Based on my current understanding of the code base, that's as far as I got in looking for what is causing this error. Are there any particular parts of the documentation that would help me understand how this is happening? I'd love to fix it if it could. Any help would be appreciated. Antonios Hadjigeorgalis LinkedIn.com <http://www.linkedin.com/in/AntoniosHadji> @AntoniosHadji <https://www.twitter.com/AntoniosHadji> ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] GnuCash 3.4: Building on ubuntu 18.04
Thanks John. My solution was to put a symlink in $HOME/bin linked to the working version in my build tree. This seems to be working normally for me. On Tue, Jan 1, 2019 at 12:58 AM John Ralls wrote: > > Cmake mangles some paths when CMAKE_INSTALL_PREFIX is rooted in either > /usr or /opt, and defaults to /usr/local. The simplest work-around is to > set it to something in $HOME. A little more complicated approach (one that > I sometimes take) is to create a top-level directory and chown it to your > userid and use a subdirectory under that for CMAKE_INSTALL_PREFIX. > > Regards, > John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
[GNC-dev] GnuCash 3.4: Building on ubuntu 18.04
I'm seeing two issues when building gnucash on ubuntu 18.04 issue #1: build completes successfully using cmake and make with cmake command line: cmake -DWITH_PYTHON=ON -DCMAKE_INSTALL_PREFIX=/opt/gnucash34 -DCMAKE_BUILD_TYPE=RelWithDebInfo .. But then, the executable fails to find library modules is /opt/gnucash34/lib after make install. Also, the same error occurs if trying to start from the build directory. I see lines in the trace file saying (there are about 20 lines with various module names in place of ... * 14:56:29 WARN Could not locate module gnucash/ ... v.0 * 14:56:29 MESSG Could not locate module gnucash/ ... v.0 and a final line saying * 14:56:29 WARN GnuCash engine failed to initialize. Exiting. If I remove the -DCMAKE_INSTALL_PREFIX=/opt/gnucash34 then the build starts and works from the build directory. issue#2 Running tests, one test fails: 28 - test-userdata-dir-invalid-home (Failed). This happens regardless of successful Running that test individually shows error messages such as: (Error: /home/antonios/.config/gnucash is a descendant of a non-existing home directory. As GnuCash will never create a home directory this path can't be used: Permission denied: "/home/antonios/.config/gnucash") Antonios Hadjigeorgalis signature.asc Description: OpenPGP digital signature ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Perl Modules
Ubuntu 16.04 installs this long list of perl modules when it installs GnuCash from the repo. I don't see this documented anywhere (except for libfinance-quote-perl module). The build instructions don't mention these. Should these be installed when building GnuCash? If so, I would be happy to update the wiki build instructions. The build does succeed without them. libclass-singleton-perl libcommon-sense-perl libdate-manip-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl libhtml-tableextract-perl libjson-perl libjson-xs-perl libmodule-implementation-perl libmodule-runtime-perl libparams-classify-perl libparams-validate-perl libtry-tiny-perl libtypes-serialiser-perl ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel