Re: [GNC-dev] Build error

Simon Roberts <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <CADsQA7huSy52_6WwM2mFxuErKNdc9=gRRYRLkoB3BkMWCVTgTQ@mail.gmail.com>
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 <
[email protected]> 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 <my home
> >
> 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 #<procedure 7fbff6aaf7d0 at scripts/compile.…> …)
> > 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 (_ #<closed: file 7fbfee028150>)
> >     331:39 10 (read-and-compile #<input: report-menus.scm 13> #:from _ …)
> >     261:27  9 (_ _ _)
> > In ice-9/boot-9.scm:
> >     2836:4  8 (save-module-excursion #<procedure 7fbfd7d21a20 at lang…>)
> > In language/scheme/compile-tree-il.scm:
> >      31:16  7 (_)
> > In ice-9/psyntax.scm:
> >    1218:36  6 (expand-top-sequence (#<syntax:report-menus.scm:35:0 …>) …)
> >    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
> > [email protected]
> > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>
> --
> Stephen M Butler, PMP, PSM
> [email protected]
> [email protected]
> 253-350-0166
> -------------------------------------------
> GnuPG Fingerprint:  8A25 9726 D439 758D D846 E5D4 282A 5477 0385 81D8
>
> _______________________________________________
> gnucash-devel mailing list
> [email protected]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>


-- 
Simon Roberts
(303) 249 3613
_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.