Re: [GNC-dev] Build error

2023-01-05 Thread David Cousens
D It may help more if you can tell us what OS and version you are building on
and the version of GnuCash you are building. There are usually 3 steps in the
build:
1 Running "cmake" to set up the build
2 Running "make" or "ninja" to build the libraries and program
3 Running "ninja install" to install the program (this can be either a local
install to your home directory or installed system wide for all users).

If you have previously built GnuCash with failures, it is a good idea to delete
the build directory before rebuidling

The build on Linux instructions are still up to date AFAIK. The reports are
generally separate from the main program and are written in Scheme/Guile and the
guile interpreter runs within GnuCash. To change and customize reports should
not require you to rebuild GnuCash itself. (see
https://wiki.gnucash.org/wiki/Custom_Reports ).

From the directory structure you appear to be building on a Linux variant. The
cmake output to the terminal will tell you if you are missing any dependencies.
You may need to enable the deb-src module in your software sources as others
have noted, particularly to use the sudo apt build-dep gnucash command. In some
linux repositories, the dependencies headers don't always have the generic
libraries names
apt-cache search  where string is a n extract from the generic library
name can usually help locate the appropriate development headers in a particular
Debian/Ubuntu derivative

David Cousens

On Thu, 2023-01-05 at 22:18 +0100, ml enquirer wrote:
> Hi,
> 
> Thanks for all your hard work on gnucash; it's fantastic.
> 
> To try and debug some budget reporting issues I'm having (
> https://lists.gnucash.org/pipermail/gnucash-user/2023-January/104734.html),
> I'm trying to build for the first time. I *think* I installed all the
> dependencies, but I'm running up against the following build error.
> 
> Is it obvious to you what I must be doing wrong? Could it be related to the
> fact that I'm trying to build on a system that already has gnucash
> installed? I see notes during compilation like:
> ;;; note: source file  dir>/gnucash/gnucash-
> build/share/guile/site/3.0/gnucash/reports/standard/trial-balance.scm
> ;;;   newer than compiled
> /usr/lib/guile/3.0/site-ccache/gnucash/reports/standard/trial-balance.go
> 
> Many thanks,
> D
> 
> ```
> Backtrace:
> In /usr/bin/guild:
>     72:17 19 (main _)
> In srfi/srfi-1.scm:
>     634:9 18 (for-each # …)
> In scripts/compile.scm:
>    279:27 17 (_ _)
> In system/base/target.scm:
>  65:6 16 (with-target _ _)
> In system/base/compile.scm:
>     187:6 15 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ …)
>  53:4 14 (call-with-output-file/atomic _ _ _)
> In ice-9/boot-9.scm:
>   1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
> In system/base/compile.scm:
>     69:11 12 (_)
>    190:11 11 (_ #)
>    331:39 10 (read-and-compile # #:from _ …)
>    261:27  9 (_ _ _)
> In ice-9/boot-9.scm:
>    2836:4  8 (save-module-excursion #)
> In language/scheme/compile-tree-il.scm:
>     31:16  7 (_)
> In ice-9/psyntax.scm:
>   1218:36  6 (expand-top-sequence (#) …)
>   1210:19  5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
>    259:10  4 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
> In unknown file:
>    3 (load-extension "libgnc-gnome" "scm_init_sw_gnome_module")
> In system/foreign-library.scm:
>    190:25  2 (load-foreign-library _ #:extensions _ # _ #:search-path …)
> In unknown file:
>    1 (dlopen "/usr/lib/libgnc-gnome.so" 1)
> In ice-9/boot-9.scm:
>   1685:16  0 (raise-exception _ #:continuable? _)
> 
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure dlopen: file "/usr/lib/libgnc-gnome.so", message
> "/usr/lib/libgnc-gnome.so: undefined symbol: gnc_get_euro"
> ```
> ___
> 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


Re: [GNC-dev] Build error

2023-01-05 Thread Simon Roberts
I built on Ubuntu 20.04 using these instructions:

https://wiki.gnucash.org/wiki/Building_On_Linux

The build file was *massively simpler* than what you have. The one piece
that gave me trouble was that in order for the line:

sudo apt -y build-dep gnucash

to work, you must edit the file /etc/apt/sources.list and removed the
comments from the lines that start with "deb-src". It's possible they don't
all have to be uncommented, but it wasn't clear to me which were actually
necessary, and I figured that allowing something to be used is not the same
as using it :)

But before I got that build-dep thing going, it was a nightmare. After, a
walk in the park.

HTH,
Simon






On Thu, Jan 5, 2023 at 2:35 PM Stephen M. Butler <
stephen.m.butle...@gmail.com> wrote:

> This is the script I was given (I forget who donated it) to load
> dependencies on a Unix type box.  I am on Ubuntu and have upgraded to
> 22.10.  I think originally ran the script on 18.10 or 19.04.
>
> save this script then run it using sudo ...
>
> #!/bin/bash
> echo "Script to install development environment for GnuCash ~V3.0"
> echo ""
> echo "Installing build environment:"
> echo "   build-essential"
> apt --yes --force-yes install build-essential
> echo "   cmake"
> apt --yes --force-yes install cmake
> echo "   ninja-build"
> apt --yes --force-yes install ninja-build
> echo ""
> echo "Installing GnuCash dependencies and development headers:"
> echo "   libglib2.0 and dev headers"
> apt --yes --force-yes install libglib2.0 libglib2.0-dev
> echo "   libxml2 libxml++2.6-dev libxml2-utils"
> apt --yes --force-yes install libxml2 libxml++2.6-dev libxml2-utils
> echo "   libxslt1.1 libxslt1-dev"
> apt --yes --force-yes install libxslt1.1 libxslt1-dev
> echo "   libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev"
> apt --yes --force-yes install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
> echo "   gtk+3.0 libgtk-3-dev"
> apt --yes --force-yes install gtk+3.0 libgtk-3-dev
> echo "   zlib1g zlib1g-dev"
> apt --yes --force-yes install zlib1g zlib1g-dev
> echo "   guile-2.0 guile-2.0-dev"
> apt --yes --force-yes install guile-2.0 guile-2.0-dev
> echo "   swig   3.0 on LM19  2.0 on Lm18?"
> apt --yes --force-yes install swig
> echo "   apt-get install libboost-all-dev"
> apt-get install libboost-all-dev
> echo "   libsecret-1-0 libsecret-1-0-dev"
> apt-get install libsecret-1-0 libsecret-1-0-dev
> echo " AqBanking Tools"
> echo "   aqbanking-tools libaqbanking-dev"
> apt-get install aqbanking-tools libaqbanking-dev
> echo "   gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev"
> apt-get install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev
> echo "   ktoblzcheck libktoblzcheck1-dev"
> apt-get install ktoblzcheck libktoblzcheck1-dev
> echo " OFX support"
> echo "   libofx libofx-dev"
> apt-get install libofx-dev
> echo "   xsltproc"
> apt-get install xsltproc
> echo " Database backend support"
> echo "   libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3"
> apt-get install libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3
> echo " Python support"
> apt-get install python3-pytest
> echo " Google Test"
> apt --yes --force-yes install googletest
>
>
> On 1/5/23 13:18, ml enquirer wrote:
> > Hi,
> >
> > Thanks for all your hard work on gnucash; it's fantastic.
> >
> > To try and debug some budget reporting issues I'm having (
> >
> https://lists.gnucash.org/pipermail/gnucash-user/2023-January/104734.html
> ),
> > I'm trying to build for the first time. I *think* I installed all the
> > dependencies, but I'm running up against the following build error.
> >
> > Is it obvious to you what I must be doing wrong? Could it be related to
> the
> > fact that I'm trying to build on a system that already has gnucash
> > installed? I see notes during compilation like:
> > ;;; note: source file  >
> dir>/gnucash/gnucash-build/share/guile/site/3.0/gnucash/reports/standard/trial-balance.scm
> > ;;;   newer than compiled
> > /usr/lib/guile/3.0/site-ccache/gnucash/reports/standard/trial-balance.go
> >
> > Many thanks,
> > D
> >
> > ```
> > Backtrace:
> > In /usr/bin/guild:
> >  72:17 19 (main _)
> > In srfi/srfi-1.scm:
> >  634:9 18 (for-each # …)
> > In scripts/compile.scm:
> > 279:27 17 (_ _)
> > In system/base/target.scm:
> >   65:6 16 (with-target _ _)
> > In system/base/compile.scm:
> >  187:6 15 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ …)
> >   53:4 14 (call-with-output-file/atomic _ _ _)
> > In ice-9/boot-9.scm:
> >1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
> > In system/base/compile.scm:
> >  69:11 12 (_)
> > 190:11 11 (_ #)
> > 331:39 10 (read-and-compile # #:from _ …)
> > 261:27  9 (_ _ _)
> > In ice-9/boot-9.scm:
> > 2836:4  8 (save-module-excursion #)
> > In language/scheme/compile-tree-il.scm:
> >  31:16  7 (_)
> > In ice-9/psyntax.scm:
> >1218:36  6 (expand-top-sequence (#) …)
> >1210:19  5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
> 

Re: [GNC-dev] Build error

2023-01-05 Thread Stephen M. Butler
This is the script I was given (I forget who donated it) to load 
dependencies on a Unix type box.  I am on Ubuntu and have upgraded to 
22.10.  I think originally ran the script on 18.10 or 19.04.


save this script then run it using sudo ...

#!/bin/bash
echo "Script to install development environment for GnuCash ~V3.0"
echo ""
echo "Installing build environment:"
echo "   build-essential"
apt --yes --force-yes install build-essential
echo "   cmake"
apt --yes --force-yes install cmake
echo "   ninja-build"
apt --yes --force-yes install ninja-build
echo ""
echo "Installing GnuCash dependencies and development headers:"
echo "   libglib2.0 and dev headers"
apt --yes --force-yes install libglib2.0 libglib2.0-dev
echo "   libxml2 libxml++2.6-dev libxml2-utils"
apt --yes --force-yes install libxml2 libxml++2.6-dev libxml2-utils
echo "   libxslt1.1 libxslt1-dev"
apt --yes --force-yes install libxslt1.1 libxslt1-dev
echo "   libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev"
apt --yes --force-yes install libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-dev
echo "   gtk+3.0 libgtk-3-dev"
apt --yes --force-yes install gtk+3.0 libgtk-3-dev
echo "   zlib1g zlib1g-dev"
apt --yes --force-yes install zlib1g zlib1g-dev
echo "   guile-2.0 guile-2.0-dev"
apt --yes --force-yes install guile-2.0 guile-2.0-dev
echo "   swig   3.0 on LM19  2.0 on Lm18?"
apt --yes --force-yes install swig
echo "   apt-get install libboost-all-dev"
apt-get install libboost-all-dev
echo "   libsecret-1-0 libsecret-1-0-dev"
apt-get install libsecret-1-0 libsecret-1-0-dev
echo " AqBanking Tools"
echo "   aqbanking-tools libaqbanking-dev"
apt-get install aqbanking-tools libaqbanking-dev
echo "   gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev"
apt-get install gwenhywfar-tools libgwenhywfar60 libgwenhywfar60-dev
echo "   ktoblzcheck libktoblzcheck1-dev"
apt-get install ktoblzcheck libktoblzcheck1-dev
echo " OFX support"
echo "   libofx libofx-dev"
apt-get install libofx-dev
echo "   xsltproc"
apt-get install xsltproc
echo " Database backend support"
echo "   libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3"
apt-get install libdbi1 libdbi-dev libdbd-pgsql libdbd-mysql libdbd-sqlite3
echo " Python support"
apt-get install python3-pytest
echo " Google Test"
apt --yes --force-yes install googletest


On 1/5/23 13:18, ml enquirer wrote:

Hi,

Thanks for all your hard work on gnucash; it's fantastic.

To try and debug some budget reporting issues I'm having (
https://lists.gnucash.org/pipermail/gnucash-user/2023-January/104734.html),
I'm trying to build for the first time. I *think* I installed all the
dependencies, but I'm running up against the following build error.

Is it obvious to you what I must be doing wrong? Could it be related to the
fact that I'm trying to build on a system that already has gnucash
installed? I see notes during compilation like:
;;; note: source file /gnucash/gnucash-build/share/guile/site/3.0/gnucash/reports/standard/trial-balance.scm
;;;   newer than compiled
/usr/lib/guile/3.0/site-ccache/gnucash/reports/standard/trial-balance.go

Many thanks,
D

```
Backtrace:
In /usr/bin/guild:
 72:17 19 (main _)
In srfi/srfi-1.scm:
 634:9 18 (for-each # …)
In scripts/compile.scm:
279:27 17 (_ _)
In system/base/target.scm:
  65:6 16 (with-target _ _)
In system/base/compile.scm:
 187:6 15 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ …)
  53:4 14 (call-with-output-file/atomic _ _ _)
In ice-9/boot-9.scm:
   1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In system/base/compile.scm:
 69:11 12 (_)
190:11 11 (_ #)
331:39 10 (read-and-compile # #:from _ …)
261:27  9 (_ _ _)
In ice-9/boot-9.scm:
2836:4  8 (save-module-excursion #)
In language/scheme/compile-tree-il.scm:
 31:16  7 (_)
In ice-9/psyntax.scm:
   1218:36  6 (expand-top-sequence (#) …)
   1210:19  5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
259:10  4 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
In unknown file:
3 (load-extension "libgnc-gnome" "scm_init_sw_gnome_module")
In system/foreign-library.scm:
190:25  2 (load-foreign-library _ #:extensions _ # _ #:search-path …)
In unknown file:
1 (dlopen "/usr/lib/libgnc-gnome.so" 1)
In ice-9/boot-9.scm:
   1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure dlopen: file "/usr/lib/libgnc-gnome.so", message
"/usr/lib/libgnc-gnome.so: undefined symbol: gnc_get_euro"
```
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel



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

[GNC-dev] Build error

2023-01-05 Thread ml enquirer
Hi,

Thanks for all your hard work on gnucash; it's fantastic.

To try and debug some budget reporting issues I'm having (
https://lists.gnucash.org/pipermail/gnucash-user/2023-January/104734.html),
I'm trying to build for the first time. I *think* I installed all the
dependencies, but I'm running up against the following build error.

Is it obvious to you what I must be doing wrong? Could it be related to the
fact that I'm trying to build on a system that already has gnucash
installed? I see notes during compilation like:
;;; note: source file /gnucash/gnucash-build/share/guile/site/3.0/gnucash/reports/standard/trial-balance.scm
;;;   newer than compiled
/usr/lib/guile/3.0/site-ccache/gnucash/reports/standard/trial-balance.go

Many thanks,
D

```
Backtrace:
In /usr/bin/guild:
72:17 19 (main _)
In srfi/srfi-1.scm:
634:9 18 (for-each # …)
In scripts/compile.scm:
   279:27 17 (_ _)
In system/base/target.scm:
 65:6 16 (with-target _ _)
In system/base/compile.scm:
187:6 15 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ …)
 53:4 14 (call-with-output-file/atomic _ _ _)
In ice-9/boot-9.scm:
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In system/base/compile.scm:
69:11 12 (_)
   190:11 11 (_ #)
   331:39 10 (read-and-compile # #:from _ …)
   261:27  9 (_ _ _)
In ice-9/boot-9.scm:
   2836:4  8 (save-module-excursion #)
In language/scheme/compile-tree-il.scm:
31:16  7 (_)
In ice-9/psyntax.scm:
  1218:36  6 (expand-top-sequence (#) …)
  1210:19  5 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
   259:10  4 (parse _ (("placeholder" placeholder)) ((top) #(# # …)) …)
In unknown file:
   3 (load-extension "libgnc-gnome" "scm_init_sw_gnome_module")
In system/foreign-library.scm:
   190:25  2 (load-foreign-library _ #:extensions _ # _ #:search-path …)
In unknown file:
   1 (dlopen "/usr/lib/libgnc-gnome.so" 1)
In ice-9/boot-9.scm:
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure dlopen: file "/usr/lib/libgnc-gnome.so", message
"/usr/lib/libgnc-gnome.so: undefined symbol: gnc_get_euro"
```
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Can I delete the repository cagerskov/gnucash?

2023-01-05 Thread Claus Agerskov

Hi Derek

I will.

Thanks for all the work you and all the other contributers do.

Den 05-01-2023 kl. 13:33 skrev Derek Atkins:

Hi,
You are only hosting a fork, not the main dev repo.
You are free to delete your fork.

-derek

On Thu, January 5, 2023 7:25 am, Claus Agerskov wrote:

Hi all
I can see that I unknowingly have hosted maybe the main development
repository of GnuCash at my GitHub on https://github.com/cagerskov/gnucash

It hasn't been used since 2021-03-09.

Can I delete it or are there a good reason why I should keep it?

Thanks in advance

The most enjoyable greetings

--
Claus Agerskov - aka Cagerskov
AgerCon, Violens Kvt 6F, 2620 Albertslund, Danmark

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




--
Claus Agerskov
AgerCon, Violens Kvt 6F, 2620 Albertslund

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


Re: [GNC-dev] Can I delete the repository cagerskov/gnucash?

2023-01-05 Thread Derek Atkins
Hi,
You are only hosting a fork, not the main dev repo.
You are free to delete your fork.

-derek

On Thu, January 5, 2023 7:25 am, Claus Agerskov wrote:
> Hi all
> I can see that I unknowingly have hosted maybe the main development
> repository of GnuCash at my GitHub on https://github.com/cagerskov/gnucash
>
> It hasn't been used since 2021-03-09.
>
> Can I delete it or are there a good reason why I should keep it?
>
> Thanks in advance
>
> The most enjoyable greetings
>
> --
> Claus Agerskov - aka Cagerskov
> AgerCon, Violens Kvt 6F, 2620 Albertslund, Danmark
>
> ___
> gnucash-devel mailing list
> gnucash-devel@gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>


-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

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


[GNC-dev] Can I delete the repository cagerskov/gnucash?

2023-01-05 Thread Claus Agerskov

Hi all
I can see that I unknowingly have hosted maybe the main development 
repository of GnuCash at my GitHub on https://github.com/cagerskov/gnucash


It hasn't been used since 2021-03-09.

Can I delete it or are there a good reason why I should keep it?

Thanks in advance

The most enjoyable greetings

--
Claus Agerskov - aka Cagerskov
AgerCon, Violens Kvt 6F, 2620 Albertslund, Danmark

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