Re: [GNC-dev] Trouble with gsettings in GC 4.9

2022-01-07 Thread bugzilla

Hi Derek,
thanks for your prompt reply. I am not sure if version 3.8 had been 
uninstalled before the *BUILT* process. So I did the following:

cd gnucash/build
sudo make uninstall
make clean
rm ~/.cache/dconf/user
mv /opt/gnucash/share/glib-2.0/schemas/gschemas.compiled 
/opt/gnucash/share/glib-2.0/schemas/gschemas.compiled.bkp

(there were no other files inside the 'schemas' folder)

Now I also get error messages that point to /.cache/guile/

/opt/gnucash/bin/gnucash
This is a development version. It may or may not work.
Report bugs and other problems to gnucash-devel@gnucash.org
You can also lookup and file bug reports at https://bugs.gnucash.org
To find the last stable version, please refer to https://www.gnucash.org/
;;; WARNING: loading compiled file 
/opt/gnucash/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
;;; note: source file 
/opt/gnucash/share/guile/site/2.2/gnucash/utilities.scm
;;;   newer than compiled 
/home/banking/.cache/guile/ccache/2.0-LE-8-2.0/opt/gnucash/share/guile/site/2.2/gnucash/utilities.scm.go

;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;   or pass the --no-auto-compile argument to disable.
;;; compiling /opt/gnucash/share/guile/site/2.2/gnucash/utilities.scm
;;; WARNING: loading compiled file 
/opt/gnucash/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/core-utils.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
;;; WARNING: loading compiled file 
/opt/gnucash/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"

;;; note: source file /opt/gnucash/share/guile/site/2.2/gnucash/engine.scm
;;;   newer than compiled 
/home/banking/.cache/guile/ccache/2.0-LE-8-2.0/opt/gnucash/share/guile/site/2.2/gnucash/engine.scm.go

;;; compiling /opt/gnucash/share/guile/site/2.2/gnucash/engine.scm

...

;;; WARNING: loading compiled file 
/opt/gnucash/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/reports/standard/payables.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
;;; note: source file 
/opt/gnucash/share/guile/site/2.2/gnucash/reports/standard/payables.scm
;;;   newer than compiled 
/home/banking/.cache/guile/ccache/2.0-LE-8-2.0/opt/gnucash/share/guile/site/2.2/gnucash/reports/standard/payables.scm.go
;;; compiling 
/opt/gnucash/share/guile/site/2.2/gnucash/reports/standard/payables.scm


...

I am a bit at a loss here.

And after the deleting the /.cache/guile/ folder and doing everything 
all over again - also:
;;; compiling 
/opt/gnucash/share/guile/site/2.2/gnucash/qif-import/qif-guess-map.scm
;;; gnucash/qif-import/qif-guess-map.scm:233:20: warning: possibly 
unbound variable `'
;;; gnucash/qif-import/qif-guess-map.scm:237:28: warning: possibly 
unbound variable `qif-map-entry:gnc-name'


Regards,
Dirk


On 03.01.22 15:27, Derek Atkins wrote:

Hi,

On Mon, January 3, 2022 3:55 am, bugzilla wrote:

Hi everyone,

first of all  a happy new year to you all.

I tried to compile GC 4.9 on Linux Mint 20 ulyana following the
recommendations below. The build and installation process worked fine.

[snip]


I also did not have a previous 4.x version installed. Only the default
3.8 version that was released with the 'ulyana' Mint version. This
version was uninstalled before installing 4.9.

Ah, but was it uninstalled before you *BUILT* 4.9?


Any advice on this subject would be greatly appreciated.

Thanks,
Dirk

-derek



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


Re: [GNC-dev] Trouble with gsettings in GC 4.9

2022-01-03 Thread Derek Atkins
Hi,

On Mon, January 3, 2022 3:55 am, bugzilla wrote:
> Hi everyone,
>
> first of all  a happy new year to you all.
>
> I tried to compile GC 4.9 on Linux Mint 20 ulyana following the
> recommendations below. The build and installation process worked fine.
[snip]

> I also did not have a previous 4.x version installed. Only the default
> 3.8 version that was released with the 'ulyana' Mint version. This
> version was uninstalled before installing 4.9.

Ah, but was it uninstalled before you *BUILT* 4.9?

> Any advice on this subject would be greatly appreciated.
>
> Thanks,
> Dirk

-derek

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


Re: [GNC-dev] Trouble with gsettings in GC 4.9

2022-01-03 Thread bugzilla

Hi everyone,

first of all  a happy new year to you all.

I tried to compile GC 4.9 on Linux Mint 20 ulyana following the 
recommendations below. The build and installation process worked fine. 
However, when I run the /opt/gnucash/bin/gnucash command, I get heaps of 
error messages that follow the following pattern.


To find the last stable version, please refer to https://www.gnucash.org/
;;; WARNING: loading compiled file 
/opt/gnucash/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/utilities.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
;;; WARNING: loading compiled file 
/opt/gnucash/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/core-utils.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"
;;; WARNING: loading compiled file 
/opt/gnucash/lib/x86_64-linux-gnu/guile/2.2/site-ccache/gnucash/engine.go 
failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object 
file: "\x7fELF\x02\x01\x01ÿ\x00\x00\x00\x00\x00\x00\x00\x00"

...

Also some pie charts are not displayed. Only some fractions of the legend.

I have also followed the dependency guide on:
https://wiki.gnucash.org/wiki/Uninstall_Gnucash_Linux

with the following changes deviating from the example:
  sudo apt install swig3.0 (was 2.0, but highlighted that newer version 
were also available on the system)
  sudo apt install libgwenhywfar-core-dev libgwenhywfar79 
libgwenhywfar79-dev
  #was: sudo apt install gwenhywfar-tools libgwenhywfar60 
libgwenhywfar60-dev

  sudo apt install libgwengui-gtk3-0 libgwengui-gtk3-dev
  # was: sudo apt install libgwengui-gtk3 libgwengui-gtk3-dev

In the 'about' info window the following version is indicated.
Version 4.8
Build ID: git 4.9+(2021-12-18)
Finance-Quote: 1.51

I also did not have a previous 4.x version installed. Only the default 
3.8 version that was released with the 'ulyana' Mint version. This 
version was uninstalled before installing 4.9.


Any advice on this subject would be greatly appreciated.

Thanks,
Dirk


On 31.12.21 13:02, Christian Wehling wrote:

Hi John, Geert,
It works, thanks for your help!

What have I done?
1. emptied all old, not needed build directories and uninstalled the old 
flatpak version.
2. removed all org.gnucash.*.gschema.xml and gschemas.compiled from 
/usr/local/share/glib-
2.0/schemas/
3. deleted $HOME/.cache/dconf
4. install GnuCash 4.9 again

Regards and a happy new year,
Christian


Am Freitag, dem 31.12.2021 um 11:54 +0100 schrieb Geert Janssens:

This is misleading.

Even the newer gnucash still installs schemas for org.gnucash. next 
to
org.gnucash.GnuCash.
In recent versions these are defined in 
org.gnucash.GnuCash.deprecated.gschema.xml (1)


So it's absolutely normal both will still show up in dconf.

However if there are *two* sets of gschema.xml files that define the same 
org.gnucash.
schema, the glib schema compiler will bail out as soon as it detects the first 
duplicate schema.
As a result it won't reach the schema files starting with org.gnucash.GnuCash 
and hence it won't
compile the newer schema.

I have now looked at your dconf.backup file. It shows both 
org.gnucash. and
org.gnucash.GnuCash. entries. That's correct and should be so since 
gnucash 4.7. That's
when I added the new schema.

I also went back to your very first message. In there you write:

  If I run:
  glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
  /usr/local/share/glib-
  2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
  Zeile 3, Zeichen 1:  wurde
  bereits angegeben.  --strict was specified; exiting.

This really points as /usr/local/share/glib-2.0/schemas as the cause. It holds 
gschema.xml files
from before gnucash 4.7 (the ones named org.gnucash.

As we have been talking about this in all directions it's not clear to me 
whether these are still
there. If so, can you remove those and rerun
ninja install ?

Or instead of ninja install you can also do as John suggests in directly rerun 
glib-compile-
schemas. For that to work the org.gnucash.GnuCash. schema files 
should be left in that
directory though.

Regards,

Geert

(1) We need to keep those
1. to be able to migrate the user' settings (a one-time event)
2. allow the user to downgrade without loosing preferences
The old schema is targeted for full removal only in gnucash 6.


Op donderdag 30 december 2021 22:22:11 CET schreef John Ralls:

Yesterday you attached a dump from dconf that shows both org.gnucash.GnuCash
and org.gnucash schema entries. If you're absolutely sure that you've
gotten rid of all instances of org.gnucash.foo.schema.xml from everywhere
outside of your gnucash-4.7 build directory and you've removed the
gschemas.compiled files from those places then another possibility is that
your version of dconf keeps a cache. See if $HOME/.caches/dconf exists and
if it does, 

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-31 Thread Geert Janssens
Glad you got it fixed!

Happy new year to you too!

Geert

Op vrijdag 31 december 2021 13:02:40 CET schreef Christian Wehling:
> Hi John, Geert,
> It works, thanks for your help!
> 
> What have I done?
> 1. emptied all old, not needed build directories and uninstalled the old
> flatpak version. 2. removed all org.gnucash.*.gschema.xml and
> gschemas.compiled from /usr/local/share/glib- 2.0/schemas/
> 3. deleted $HOME/.cache/dconf
> 4. install GnuCash 4.9 again
> 
> Regards and a happy new year,
> Christian
> 
> Am Freitag, dem 31.12.2021 um 11:54 +0100 schrieb Geert Janssens:
> > This is misleading.
> > 
> > Even the newer gnucash still installs schemas for org.gnucash.
> > next to org.gnucash.GnuCash.
> > In recent versions these are defined in
> > org.gnucash.GnuCash.deprecated.gschema.xml (1)
> > 
> > 
> > So it's absolutely normal both will still show up in dconf.
> > 
> > However if there are *two* sets of gschema.xml files that define the same
> > org.gnucash. schema, the glib schema compiler will bail out as
> > soon as it detects the first duplicate schema. As a result it won't reach
> > the schema files starting with org.gnucash.GnuCash and hence it won't
> > compile the newer schema.
> > 
> > I have now looked at your dconf.backup file. It shows both
> > org.gnucash. and org.gnucash.GnuCash. entries.
> > That's correct and should be so since gnucash 4.7. That's when I added
> > the new schema.
> > 
> > I also went back to your very first message. In there you write:
> > >  If I run:
> > >  glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
> > >  /usr/local/share/glib-
> > >  2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
> > >  Zeile 3, Zeichen 1:  wurde
> > >  bereits angegeben.  --strict was specified; exiting.
> > 
> > This really points as /usr/local/share/glib-2.0/schemas as the cause. It
> > holds gschema.xml files from before gnucash 4.7 (the ones named
> > org.gnucash.
> > 
> > As we have been talking about this in all directions it's not clear to me
> > whether these are still there. If so, can you remove those and rerun
> > ninja install ?
> > 
> > Or instead of ninja install you can also do as John suggests in directly
> > rerun glib-compile- schemas. For that to work the
> > org.gnucash.GnuCash. schema files should be left in that
> > directory though.
> > 
> > Regards,
> > 
> > Geert
> > 
> > (1) We need to keep those
> > 1. to be able to migrate the user' settings (a one-time event)
> > 2. allow the user to downgrade without loosing preferences
> > The old schema is targeted for full removal only in gnucash 6.
> > 
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-31 Thread Christian Wehling
Hi John, Geert,
It works, thanks for your help!

What have I done?
1. emptied all old, not needed build directories and uninstalled the old 
flatpak version.
2. removed all org.gnucash.*.gschema.xml and gschemas.compiled from 
/usr/local/share/glib-
2.0/schemas/ 
3. deleted $HOME/.cache/dconf
4. install GnuCash 4.9 again

Regards and a happy new year,
Christian


Am Freitag, dem 31.12.2021 um 11:54 +0100 schrieb Geert Janssens:
> This is misleading.
> 
> Even the newer gnucash still installs schemas for org.gnucash. 
> next to
> org.gnucash.GnuCash.
> In recent versions these are defined in 
> org.gnucash.GnuCash.deprecated.gschema.xml (1)
> 
> 
> So it's absolutely normal both will still show up in dconf.
> 
> However if there are *two* sets of gschema.xml files that define the same 
> org.gnucash.
> schema, the glib schema compiler will bail out as soon as it detects the 
> first duplicate schema.
> As a result it won't reach the schema files starting with org.gnucash.GnuCash 
> and hence it won't
> compile the newer schema.
> 
> I have now looked at your dconf.backup file. It shows both 
> org.gnucash. and
> org.gnucash.GnuCash. entries. That's correct and should be so 
> since gnucash 4.7. That's
> when I added the new schema.
> 
> I also went back to your very first message. In there you write:
> >  If I run:
> >  glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
> >  /usr/local/share/glib-
> >  2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
> >  Zeile 3, Zeichen 1:  wurde
> >  bereits angegeben.  --strict was specified; exiting.
> 
> This really points as /usr/local/share/glib-2.0/schemas as the cause. It 
> holds gschema.xml files
> from before gnucash 4.7 (the ones named org.gnucash.
> 
> As we have been talking about this in all directions it's not clear to me 
> whether these are still
> there. If so, can you remove those and rerun
> ninja install ?
> 
> Or instead of ninja install you can also do as John suggests in directly 
> rerun glib-compile-
> schemas. For that to work the org.gnucash.GnuCash. schema files 
> should be left in that
> directory though.
> 
> Regards,
> 
> Geert
> 
> (1) We need to keep those
> 1. to be able to migrate the user' settings (a one-time event)
> 2. allow the user to downgrade without loosing preferences
> The old schema is targeted for full removal only in gnucash 6.
> 
> 
> Op donderdag 30 december 2021 22:22:11 CET schreef John Ralls:
> > Yesterday you attached a dump from dconf that shows both org.gnucash.GnuCash
> > and org.gnucash schema entries. If you're absolutely sure that you've
> > gotten rid of all instances of org.gnucash.foo.schema.xml from everywhere
> > outside of your gnucash-4.7 build directory and you've removed the
> > gschemas.compiled files from those places then another possibility is that
> > your version of dconf keeps a cache. See if $HOME/.caches/dconf exists and
> > if it does, delete it.
> >
> > In that same letter you said your build procedure is
> >
> > > cd gnucash-4.9/build
> > > cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_PYTHON=ON
> > > ../source sudo ninja install
> >
> > Please modify that to
> > cd gnucash-4.9/build
> > rm -rf * && cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D
> > WITH_PYTHON=ON ../source ninja
> > sudo ninja install
> >
> > If that fails please paste the whole output either to an attachment or to
> > some upload site like Github's GIST and tell us the URL to it.
> >
> > Regards,
> > John Ralls
> 
-- 

liebe Grüße
Christian

Key-FP: AB59 7576 4CFA 7A79 70CB  DA1B 7ADC B970 A533 2483



signature.asc
Description: This is a digitally signed message part
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-31 Thread Geert Janssens
This is misleading.

Even the newer gnucash still installs schemas for org.gnucash. next 
to 
org.gnucash.GnuCash.
In recent versions these are defined in 
org.gnucash.GnuCash.deprecated.gschema.xml (1)


So it's absolutely normal both will still show up in dconf.

However if there are *two* sets of gschema.xml files that define the same 
org.gnucash. schema, the glib schema compiler will bail out as soon 
as it 
detects the first duplicate schema. As a result it won't reach the schema files 
starting with 
org.gnucash.GnuCash and hence it won't compile the newer schema.

I have now looked at your dconf.backup file. It shows both 
org.gnucash. and 
org.gnucash.GnuCash. entries. That's correct and should be so since 
gnucash 
4.7. That's when I added the new schema.

I also went back to your very first message. In there you write:
>  If I run:
>  glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
>  /usr/local/share/glib-
>  2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
>  Zeile 3, Zeichen 1:  wurde
>  bereits angegeben.  --strict was specified; exiting.

This really points as /usr/local/share/glib-2.0/schemas as the cause. It holds 
gschema.xml 
files from before gnucash 4.7 (the ones named 
org.gnucash.

As we have been talking about this in all directions it's not clear to me 
whether these are still 
there. If so, can you remove those and rerun
ninja install ?

Or instead of ninja install you can also do as John suggests in directly rerun 
glib-compile-
schemas. For that to work the org.gnucash.GnuCash. schema files 
should be 
left in that directory though.

Regards,

Geert

(1) We need to keep those 
1. to be able to migrate the user' settings (a one-time event)
2. allow the user to downgrade without loosing preferences
The old schema is targeted for full removal only in gnucash 6.


Op donderdag 30 december 2021 22:22:11 CET schreef John Ralls:
> Yesterday you attached a dump from dconf that shows both org.gnucash.GnuCash
> and org.gnucash schema entries. If you're absolutely sure that you've
> gotten rid of all instances of org.gnucash.foo.schema.xml from everywhere
> outside of your gnucash-4.7 build directory and you've removed the
> gschemas.compiled files from those places then another possibility is that
> your version of dconf keeps a cache. See if $HOME/.caches/dconf exists and
> if it does, delete it.
> 
> In that same letter you said your build procedure is
> 
> > cd gnucash-4.9/build
> > cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_PYTHON=ON
> > ../source sudo ninja install
> 
> Please modify that to
> cd gnucash-4.9/build
> rm -rf * && cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D
> WITH_PYTHON=ON ../source ninja
> sudo ninja install
> 
> If that fails please paste the whole output either to an attachment or to
> some upload site like Github's GIST and tell us the URL to it.
> 
> Regards,
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-30 Thread John Ralls
Christian,

GSettings says it uses XDG_DATA_DIRS plus /usr/share and /usr/local/share so in 
theory you need worry only about the gschemas.compiled in directories that are 
on those paths and that might have had org.gnucash.foo.schema.xml in them the 
last time glib-compile-schemas was run on them. OTOH you've been spinning your 
wheels on this for several days and the GnuCash schema files are easily 
generated and all schemas compiled as part of building GnuCash so the only 
thing to worry about is deleting schema files that belong to something else. If 
XDG_DATA_DIRS is empty then the minimum to delete would be 
/usr/local/share/glib-2.0/schemas/gschemas.compiled; if it isn't add any 
directories on it that might have had GnuCash schemas in it. For each of those 
you can regenerate gschemas.compiled with glib-compile-schemas --strict 
/path/to/schemas after clearing out any GnuCash schema files, regardless of 
whether they're new or old style. You want to end up with exactly one set of 
installed GnuCash s
 chemas.

Regards,
John Ralls

> On Dec 30, 2021, at 2:00 PM, Christian Wehling  wrote:
> 
> Hi John,
> 
> sudo find / -name gschemas.compiled
> /snap/gnome-3-38-2004/76/usr/share/glib-2.0/schemas/gschemas.compiled
> /snap/gnome-3-38-2004/87/usr/share/glib-2.0/schemas/gschemas.compiled
> /snap/gnome-3-34-1804/72/usr/share/glib-2.0/schemas/gschemas.compiled
> /snap/gnome-3-34-1804/77/usr/share/glib-2.0/schemas/gschemas.compiled
> /var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/6b970053ec40ec1b23a6827c2a284fb3bbcdaff16073b
> 3f99d9597d5ad49f62f/files/share/glib-2.0/schemas/gschemas.compiled
> /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/3.38/6df990742488033089e8964b6d9f4f43bc35d403bf43
> c7f7de7ab3f775137525/files/share/glib-2.0/schemas/gschemas.compiled
> /home/chris/github/gnucash/install/share/glib-2.0/schemas/gschemas.compiled
> /home/chris/github/gnucash/build/share/glib-2.0/schemas/gschemas.compiled
> /home/chris/.local/share/glib-2.0/schemas/gschemas.compiled
> /home/chris/Projekte/gnucash/build/share/glib-2.0/schemas/gschemas.compiled
> /home/chris/Programme/gnucash-4.9/build/share/glib-2.0/schemas/gschemas.compiled
> /home/chris/Programme/gnucash-4.7/build/share/glib-2.0/schemas/gschemas.compiled
> /usr/share/glib-2.0/schemas/gschemas.compiled
> /usr/local/share/glib-2.0/schemas/gschemas.compiled
> 
> Is it sufficient to remove all the gschemas.compiled in $HOME/* and 
> /usr/local/share/ ?
> I will try that out tomorrow.
> 
> Regards,
> Christian
> 
> Am Donnerstag, dem 30.12.2021 um 13:22 -0800 schrieb John Ralls:
>> Yesterday you attached a dump from dconf that shows both org.gnucash.GnuCash 
>> and org.gnucash
>> schema entries. If you're absolutely sure that you've gotten rid of all 
>> instances of
>> org.gnucash.foo.schema.xml from everywhere outside of your gnucash-4.7 build 
>> directory and you've
>> removed the gschemas.compiled files from those places then another 
>> possibility is that your
>> version of dconf keeps a cache. See if $HOME/.caches/dconf exists and if it 
>> does, delete it.
>> 
>> In that same letter you said your build procedure is
>>> cd gnucash-4.9/build
>>> cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_PYTHON=ON 
>>> ../source
>>> sudo ninja install
>> 
>> Please modify that to
>> cd gnucash-4.9/build
>> rm -rf * && cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D 
>> WITH_PYTHON=ON ../source
>> ninja
>> sudo ninja install
>> 
>> If that fails please paste the whole output either to an attachment or to 
>> some upload site like
>> Github's GIST and tell us the URL to it.
>> 
>> Regards,
>> John Ralls
>> 
>>> On Dec 30, 2021, at 7:42 AM, Christian Wehling  wrote:
>>> 
>>> So, I first uninstalled everything and restarted the computer.
>>> Now "sudo find / -name libgnc*.so" only finds these directories:
>>> /var/lib/flatpak/app/org.gnucash.GnuCash/ => not in use
>>> ~/github/gnucash/build/lib/ => for development
>>> ~/Programme/gnucash-4.7/build/lib/ => productiv
>>> ~/Programme/gnucash-4.9/build/lib/
>>> In my opinion, this is not critical.
>>> 
>>> /usr/lib and /usr/local/lib do not contain libgnc*.so.
>>> 
>>> /etc/ld.so.conf.d contains this:
>>> fakeroot-x86_64-linux-gnu.conf 
>>> i386-linux-gnu.conf 
>>> libc.conf => /usr/local/lib
>>> x86_64-linux-gnu.conf 
>>> zz_i386-biarch-compat.conf
>>> and these directories do not contain libgnc*.so either.
>>> 
>>> The LD_LIBRARY_PATH does not contain any entries. Should I specify
>>> something here and, if so, what?
>>> 
>>> I fear something is broken with dconf, however I have no idea what and
>>> how to fix something in dconf.
>>> 
>>> I'm afraid I'll have to do a system update to get a newer GnuCash
>>> version working.
>>> 
>>> Regards,
>>> Christian
>>> 
>>> 
>>> Am Mittwoch, dem 29.12.2021 um 12:53 -0800 schrieb John Ralls:
 From yesterday's errors
>>> 
>>> * 16:29:33  INFO  [gnc_load_app_icons] Path 20:
>>> /opt/gnucash/share/gnucash/icons
>>> 
>>> Suggests that you might also 

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-30 Thread Christian Wehling
Hi Geert,
sudo find / -name org.gnucash.*.gschema.xml results in:

/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/6b970053ec40ec1b23a6827c2
a284fb3bbcdaff16073b3f99d9597d5ad49f62f/files/share/glib-
2.0/schemas/org.gnucash.window.pages.gschema.xml
[...snip]
/home/chris/github/gnucash/install/share/glib-
2.0/schemas/org.gnucash.GnuCash.window.pages.account.tree.gschema.xml
[...]
/home/chris/github/gnucash/build/share/glib-
2.0/schemas/org.gnucash.GnuCash.window.pages.account.tree.gschema.xml
[...]
/home/chris/.local/share/glib-
2.0/schemas/org.gnucash.dialogs.flicker.weh.gschema.xml
/home/chris/.local/share/glib-
2.0/schemas/org.gnucash.dialogs.flicker.gschema.xml
[...]
/home/chris/Projekte/gnucash/build/share/glib-
2.0/schemas/org.gnucash.window.pages.gschema.xml
[...]
/home/chris/Programme/gnucash-4.9/build/share/glib-
2.0/schemas/org.gnucash.GnuCash.window.pages.account.tree.gschema.xml
[...]
/home/chris/Programme/gnucash-4.7/build/share/glib-
2.0/schemas/org.gnucash.GnuCash.window.pages.account.tree.gschema.xml
[...]
/usr/local/share/glib-
2.0/schemas/org.gnucash.GnuCash.window.pages.account.tree.gschema.xml
[...]

I suspect I have a personal problem as I have not cleaned up and still had the
old schema files (without camelcase) from the old versions <4.7 when I installed
the latest version.

Regards,
Christian

Am Donnerstag, dem 30.12.2021 um 22:12 +0100 schrieb Geert Janssens:
> Christian,
> 
> Have you also searched for org.gnucash.*.gschema.xml ?
> These files are important during the installation process. If these were
> present (the files that don't have GnuCash in camelcase in their name) the
> installation will not work properly.
> But the actual problem file in that case will be called gschemas.compiled.
> That's the file used by gsettings (not dconf) to know which preference keys
> should exist.
> 
> I am slightly puzzled though because the migration of settings actually
> already happened in gnucash 4.7.
> 
> Regards,
> 
> Geert
> 
> Op donderdag 30 december 2021 16:42:44 CET schreef Christian Wehling:
> > So, I first uninstalled everything and restarted the computer.
> > Now "sudo find / -name libgnc*.so" only finds these directories:
> >  /var/lib/flatpak/app/org.gnucash.GnuCash/ => not in use
> >  ~/github/gnucash/build/lib/ => for development
> >  ~/Programme/gnucash-4.7/build/lib/ => productiv
> >  ~/Programme/gnucash-4.9/build/lib/
> > In my opinion, this is not critical.
> >
> > /usr/lib and /usr/local/lib do not contain libgnc*.so.
> >
> > /etc/ld.so.conf.d contains this:
> >  fakeroot-x86_64-linux-gnu.conf
> >  i386-linux-gnu.conf
> >  libc.conf => /usr/local/lib
> >  x86_64-linux-gnu.conf
> >  zz_i386-biarch-compat.conf
> > and these directories do not contain libgnc*.so either.
> >
> > The LD_LIBRARY_PATH does not contain any entries. Should I specify
> > something here and, if so, what?
> >
> > I fear something is broken with dconf, however I have no idea what and
> > how to fix something in dconf.
> >
> > I'm afraid I'll have to do a system update to get a newer GnuCash
> > version working.
> >
> > Regards,
> > Christian
> >
> > Am Mittwoch, dem 29.12.2021 um 12:53 -0800 schrieb John Ralls:
> > > From yesterday's errors
> >
> > * 16:29:33  INFO  [gnc_load_app_icons] Path 20:
> > /opt/gnucash/share/gnucash/icons
> >
> > Suggests that you might also have installed into /opt/gnucash at some
> > point, so look there. You should also check /usr/lib just in case you
> > installed the distro build at some point, and take a look at
> > /etc/ld.so.conf and `echo $LD_PIBRARY_PATH` for other possible
> > locations.
> >
> > You can always do `find / -name libgnc*.so`, though that will take a
> > while. If you have `locate` installed and you've generated the
> > indexes `locate libgnc*.so` will be considerably faster, but since it
> > has to index the hard disk it will take longer than find would if
> > it's not installed and indexed already.
> >
> > Regards,
> > John Ralls
> >
> > On Dec 29, 2021, at 12:18 PM, Christian Wehling <
> > c.wehl...@posteo.de> wrote:
> >
> > mhh,
> > with these steps I always install a new version:
> >
> > cd gnucash-4.9/build
> > cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D
> > WITH_PYTHON=ON
> > ../source
> > sudo ninja install
> >
> > Since I don't set a special library path, I assume that
> > /usr/local/lib
> > is used, there are no leftovers there.
> > Where can I look for more libgnc*?
> >
> > Attached is an extract from my dconf.
> >
> > Thanks for the support.
> >
> > Regards,
> > Christian
> >
> > Am Mittwoch, dem 29.12.2021 um 11:20 -0800 schrieb John Ralls:
> > Good.
> >
> > * 16:29:33  WARN 
> > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> > unknown
> > gsettings schema org.gnucash.general
> >
> > Suggests that there's a set of GnuCash libraries, i.e.
> > libgnc*.so,
> > somewhere on your LD_LIBRARY_PATH and the link is picking that up
> > instead of the just-built ones. The 4.9 ones should be looking
> > for
> > sch

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-30 Thread Christian Wehling
Hi John,

sudo find / -name gschemas.compiled
/snap/gnome-3-38-2004/76/usr/share/glib-2.0/schemas/gschemas.compiled
/snap/gnome-3-38-2004/87/usr/share/glib-2.0/schemas/gschemas.compiled
/snap/gnome-3-34-1804/72/usr/share/glib-2.0/schemas/gschemas.compiled
/snap/gnome-3-34-1804/77/usr/share/glib-2.0/schemas/gschemas.compiled
/var/lib/flatpak/app/org.gnucash.GnuCash/x86_64/stable/6b970053ec40ec1b23a6827c2a284fb3bbcdaff16073b
3f99d9597d5ad49f62f/files/share/glib-2.0/schemas/gschemas.compiled
/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/3.38/6df990742488033089e8964b6d9f4f43bc35d403bf43
c7f7de7ab3f775137525/files/share/glib-2.0/schemas/gschemas.compiled
/home/chris/github/gnucash/install/share/glib-2.0/schemas/gschemas.compiled
/home/chris/github/gnucash/build/share/glib-2.0/schemas/gschemas.compiled
/home/chris/.local/share/glib-2.0/schemas/gschemas.compiled
/home/chris/Projekte/gnucash/build/share/glib-2.0/schemas/gschemas.compiled
/home/chris/Programme/gnucash-4.9/build/share/glib-2.0/schemas/gschemas.compiled
/home/chris/Programme/gnucash-4.7/build/share/glib-2.0/schemas/gschemas.compiled
/usr/share/glib-2.0/schemas/gschemas.compiled
/usr/local/share/glib-2.0/schemas/gschemas.compiled

Is it sufficient to remove all the gschemas.compiled in $HOME/* and 
/usr/local/share/ ?
I will try that out tomorrow.

Regards,
Christian

Am Donnerstag, dem 30.12.2021 um 13:22 -0800 schrieb John Ralls:
> Yesterday you attached a dump from dconf that shows both org.gnucash.GnuCash 
> and org.gnucash
> schema entries. If you're absolutely sure that you've gotten rid of all 
> instances of
> org.gnucash.foo.schema.xml from everywhere outside of your gnucash-4.7 build 
> directory and you've
> removed the gschemas.compiled files from those places then another 
> possibility is that your
> version of dconf keeps a cache. See if $HOME/.caches/dconf exists and if it 
> does, delete it.
> 
> In that same letter you said your build procedure is
> > cd gnucash-4.9/build
> > cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_PYTHON=ON 
> > ../source
> > sudo ninja install
> 
> Please modify that to
> cd gnucash-4.9/build
> rm -rf * && cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D 
> WITH_PYTHON=ON ../source
> ninja
> sudo ninja install
> 
> If that fails please paste the whole output either to an attachment or to 
> some upload site like
> Github's GIST and tell us the URL to it.
> 
> Regards,
> John Ralls
> 
> > On Dec 30, 2021, at 7:42 AM, Christian Wehling  wrote:
> > 
> > So, I first uninstalled everything and restarted the computer.
> > Now "sudo find / -name libgnc*.so" only finds these directories:
> > /var/lib/flatpak/app/org.gnucash.GnuCash/ => not in use
> > ~/github/gnucash/build/lib/ => for development
> > ~/Programme/gnucash-4.7/build/lib/ => productiv
> > ~/Programme/gnucash-4.9/build/lib/
> > In my opinion, this is not critical.
> > 
> > /usr/lib and /usr/local/lib do not contain libgnc*.so.
> > 
> > /etc/ld.so.conf.d contains this:
> > fakeroot-x86_64-linux-gnu.conf 
> > i386-linux-gnu.conf 
> > libc.conf => /usr/local/lib
> > x86_64-linux-gnu.conf 
> > zz_i386-biarch-compat.conf
> > and these directories do not contain libgnc*.so either.
> > 
> > The LD_LIBRARY_PATH does not contain any entries. Should I specify
> > something here and, if so, what?
> > 
> > I fear something is broken with dconf, however I have no idea what and
> > how to fix something in dconf.
> > 
> > I'm afraid I'll have to do a system update to get a newer GnuCash
> > version working.
> > 
> > Regards,
> > Christian
> > 
> > 
> > Am Mittwoch, dem 29.12.2021 um 12:53 -0800 schrieb John Ralls:
> > > From yesterday's errors
> > 
> > * 16:29:33  INFO  [gnc_load_app_icons] Path 20:
> > /opt/gnucash/share/gnucash/icons
> > 
> > Suggests that you might also have installed into /opt/gnucash at some
> > point, so look there. You should also check /usr/lib just in case you
> > installed the distro build at some point, and take a look at
> > /etc/ld.so.conf and `echo $LD_PIBRARY_PATH` for other possible
> > locations.
> > 
> > You can always do `find / -name libgnc*.so`, though that will take a
> > while. If you have `locate` installed and you've generated the
> > indexes `locate libgnc*.so` will be considerably faster, but since it
> > has to index the hard disk it will take longer than find would if
> > it's not installed and indexed already.
> > 
> > Regards,
> > John Ralls
> > 
> > On Dec 29, 2021, at 12:18 PM, Christian Wehling <
> > c.wehl...@posteo.de> wrote:
> > 
> > mhh,
> > with these steps I always install a new version:
> > 
> > cd gnucash-4.9/build
> > cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D
> > WITH_PYTHON=ON
> > ../source
> > sudo ninja install
> > 
> > Since I don't set a special library path, I assume that
> > /usr/local/lib
> > is used, there are no leftovers there.
> > Where can I look for more libgnc*?
> > 
> > Attached is an extract from my dconf.
> > 
> > Thanks for the support.
> > 
> > Regards,
> >

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-30 Thread John Ralls
Yesterday you attached a dump from dconf that shows both org.gnucash.GnuCash 
and org.gnucash schema entries. If you're absolutely sure that you've gotten 
rid of all instances of org.gnucash.foo.schema.xml from everywhere outside of 
your gnucash-4.7 build directory and you've removed the gschemas.compiled files 
from those places then another possibility is that your version of dconf keeps 
a cache. See if $HOME/.caches/dconf exists and if it does, delete it.

In that same letter you said your build procedure is
> cd gnucash-4.9/build
> cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_PYTHON=ON ../source
> sudo ninja install

Please modify that to
cd gnucash-4.9/build
rm -rf * && cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D 
WITH_PYTHON=ON ../source
ninja
sudo ninja install

If that fails please paste the whole output either to an attachment or to some 
upload site like Github's GIST and tell us the URL to it.

Regards,
John Ralls

> On Dec 30, 2021, at 7:42 AM, Christian Wehling  wrote:
> 
> So, I first uninstalled everything and restarted the computer.
> Now "sudo find / -name libgnc*.so" only finds these directories:
> /var/lib/flatpak/app/org.gnucash.GnuCash/ => not in use
> ~/github/gnucash/build/lib/ => for development
> ~/Programme/gnucash-4.7/build/lib/ => productiv
> ~/Programme/gnucash-4.9/build/lib/
> In my opinion, this is not critical.
> 
> /usr/lib and /usr/local/lib do not contain libgnc*.so.
> 
> /etc/ld.so.conf.d contains this:
> fakeroot-x86_64-linux-gnu.conf 
> i386-linux-gnu.conf 
> libc.conf => /usr/local/lib
> x86_64-linux-gnu.conf 
> zz_i386-biarch-compat.conf
> and these directories do not contain libgnc*.so either.
> 
> The LD_LIBRARY_PATH does not contain any entries. Should I specify
> something here and, if so, what?
> 
> I fear something is broken with dconf, however I have no idea what and
> how to fix something in dconf.
> 
> I'm afraid I'll have to do a system update to get a newer GnuCash
> version working.
> 
> Regards,
> Christian
> 
> 
> Am Mittwoch, dem 29.12.2021 um 12:53 -0800 schrieb John Ralls:
>> From yesterday's errors
> 
> * 16:29:33  INFO  [gnc_load_app_icons] Path 20:
> /opt/gnucash/share/gnucash/icons
> 
> Suggests that you might also have installed into /opt/gnucash at some
> point, so look there. You should also check /usr/lib just in case you
> installed the distro build at some point, and take a look at
> /etc/ld.so.conf and `echo $LD_PIBRARY_PATH` for other possible
> locations.
> 
> You can always do `find / -name libgnc*.so`, though that will take a
> while. If you have `locate` installed and you've generated the
> indexes `locate libgnc*.so` will be considerably faster, but since it
> has to index the hard disk it will take longer than find would if
> it's not installed and indexed already.
> 
> Regards,
> John Ralls
> 
> On Dec 29, 2021, at 12:18 PM, Christian Wehling <
> c.wehl...@posteo.de> wrote:
> 
> mhh,
> with these steps I always install a new version:
> 
> cd gnucash-4.9/build
> cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D
> WITH_PYTHON=ON
> ../source
> sudo ninja install
> 
> Since I don't set a special library path, I assume that
> /usr/local/lib
> is used, there are no leftovers there.
> Where can I look for more libgnc*?
> 
> Attached is an extract from my dconf.
> 
> Thanks for the support.
> 
> Regards,
> Christian
> 
> Am Mittwoch, dem 29.12.2021 um 11:20 -0800 schrieb John Ralls:
> Good.
> 
> * 16:29:33  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> unknown
> gsettings schema org.gnucash.general
> 
> Suggests that there's a set of GnuCash libraries, i.e.
> libgnc*.so,
> somewhere on your LD_LIBRARY_PATH and the link is picking that up
> instead of the just-built ones. The 4.9 ones should be looking
> for
> schema org.gnucash.Gnucash.general instead of
> org.gnucash.general.
> 
> Regards,
> John Ralls
> 
> 
> On Dec 29, 2021, at 9:05 AM, Christian Wehling <
> c.wehl...@posteo.de
> wrote:
> 
> Hi John,
> right, i build in ~/Programme/gnucash-4.9/build
> 
> Christian
> 
> Am Mittwoch, dem 29.12.2021 um 08:22 -0800 schrieb john:
> You're building in a clean build directory, right? 
> 
> Regards,
> John Ralls
> 
> 
> On Dec 29, 2021, at 5:48 AM, Christian Wehling <
> c.wehl...@posteo.de
> wrote:
> 
> Hi,
> unfortunately, neither deleting the schema files after
> uninstalling
> nor
> installing them according to David's instructions helped.
> Fortunately, version 4.7 is still executable.
> 
> Are there other possibilities I can try?
> 
> Regards
> Christian
> 
> 
> 
> 
> Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
> Christian,
> 
> Try uninstalling 4.7 again, then make sure that
> /opt/share/glib-
> 2.0/schemas and /usr/share/glib-2.0/schemas contain no
> files
> whose
> names begin with `org.gnucash', then reinstall 4.9.
> 
> Regards,
> John Ralls
> 
> On Dec 28, 2021, at 7:50 AM, Christian Wehling <
> c.wehl...@posteo.de
> wrote:
> 
> Hi,
> I have tried all this:
> I star

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-30 Thread Geert Janssens
Christian,

Have you also searched for org.gnucash.*.gschema.xml ?
These files are important during the installation process. If these were 
present (the files that 
don't have GnuCash in camelcase in their name) the installation will not work 
properly.
But the actual problem file in that case will be called gschemas.compiled. 
That's the file used 
by gsettings (not dconf) to know which preference keys should exist.

I am slightly puzzled though because the migration of settings actually already 
happened in 
gnucash 4.7.

Regards,

Geert

Op donderdag 30 december 2021 16:42:44 CET schreef Christian Wehling:
> So, I first uninstalled everything and restarted the computer.
> Now "sudo find / -name libgnc*.so" only finds these directories:
>  /var/lib/flatpak/app/org.gnucash.GnuCash/ => not in use
>  ~/github/gnucash/build/lib/ => for development
>  ~/Programme/gnucash-4.7/build/lib/ => productiv
>  ~/Programme/gnucash-4.9/build/lib/
> In my opinion, this is not critical.
> 
> /usr/lib and /usr/local/lib do not contain libgnc*.so.
> 
> /etc/ld.so.conf.d contains this:
>  fakeroot-x86_64-linux-gnu.conf
>  i386-linux-gnu.conf
>  libc.conf => /usr/local/lib
>  x86_64-linux-gnu.conf
>  zz_i386-biarch-compat.conf
> and these directories do not contain libgnc*.so either.
> 
> The LD_LIBRARY_PATH does not contain any entries. Should I specify
> something here and, if so, what?
> 
> I fear something is broken with dconf, however I have no idea what and
> how to fix something in dconf.
> 
> I'm afraid I'll have to do a system update to get a newer GnuCash
> version working.
> 
> Regards,
> Christian
> 
> Am Mittwoch, dem 29.12.2021 um 12:53 -0800 schrieb John Ralls:
> > From yesterday's errors
> 
> * 16:29:33  INFO  [gnc_load_app_icons] Path 20:
> /opt/gnucash/share/gnucash/icons
> 
> Suggests that you might also have installed into /opt/gnucash at some
> point, so look there. You should also check /usr/lib just in case you
> installed the distro build at some point, and take a look at
> /etc/ld.so.conf and `echo $LD_PIBRARY_PATH` for other possible
> locations.
> 
> You can always do `find / -name libgnc*.so`, though that will take a
> while. If you have `locate` installed and you've generated the
> indexes `locate libgnc*.so` will be considerably faster, but since it
> has to index the hard disk it will take longer than find would if
> it's not installed and indexed already.
> 
> Regards,
> John Ralls
> 
> On Dec 29, 2021, at 12:18 PM, Christian Wehling <
> c.wehl...@posteo.de> wrote:
> 
> mhh,
> with these steps I always install a new version:
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-30 Thread Christian Wehling
So, I first uninstalled everything and restarted the computer.
Now "sudo find / -name libgnc*.so" only finds these directories:
 /var/lib/flatpak/app/org.gnucash.GnuCash/ => not in use
 ~/github/gnucash/build/lib/ => for development
 ~/Programme/gnucash-4.7/build/lib/ => productiv
 ~/Programme/gnucash-4.9/build/lib/
In my opinion, this is not critical.

/usr/lib and /usr/local/lib do not contain libgnc*.so.

/etc/ld.so.conf.d contains this:
 fakeroot-x86_64-linux-gnu.conf 
 i386-linux-gnu.conf 
 libc.conf => /usr/local/lib
 x86_64-linux-gnu.conf 
 zz_i386-biarch-compat.conf
and these directories do not contain libgnc*.so either.

The LD_LIBRARY_PATH does not contain any entries. Should I specify
something here and, if so, what?

I fear something is broken with dconf, however I have no idea what and
how to fix something in dconf.

I'm afraid I'll have to do a system update to get a newer GnuCash
version working.

Regards,
Christian


Am Mittwoch, dem 29.12.2021 um 12:53 -0800 schrieb John Ralls:
> From yesterday's errors

* 16:29:33  INFO  [gnc_load_app_icons] Path 20:
/opt/gnucash/share/gnucash/icons

Suggests that you might also have installed into /opt/gnucash at some
point, so look there. You should also check /usr/lib just in case you
installed the distro build at some point, and take a look at
/etc/ld.so.conf and `echo $LD_PIBRARY_PATH` for other possible
locations.

You can always do `find / -name libgnc*.so`, though that will take a
while. If you have `locate` installed and you've generated the
indexes `locate libgnc*.so` will be considerably faster, but since it
has to index the hard disk it will take longer than find would if
it's not installed and indexed already.

Regards,
John Ralls
 
On Dec 29, 2021, at 12:18 PM, Christian Wehling <
c.wehl...@posteo.de> wrote:

mhh,
with these steps I always install a new version:

cd gnucash-4.9/build
cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D
WITH_PYTHON=ON
../source
sudo ninja install

Since I don't set a special library path, I assume that
/usr/local/lib
is used, there are no leftovers there.
Where can I look for more libgnc*?

Attached is an extract from my dconf.

Thanks for the support.

Regards,
Christian

Am Mittwoch, dem 29.12.2021 um 11:20 -0800 schrieb John Ralls:
Good.

* 16:29:33  WARN 
[gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
unknown
gsettings schema org.gnucash.general

Suggests that there's a set of GnuCash libraries, i.e.
libgnc*.so,
somewhere on your LD_LIBRARY_PATH and the link is picking that up
instead of the just-built ones. The 4.9 ones should be looking
for
schema org.gnucash.Gnucash.general instead of
org.gnucash.general.

Regards,
John Ralls


On Dec 29, 2021, at 9:05 AM, Christian Wehling <
c.wehl...@posteo.de
wrote:

Hi John,
right, i build in ~/Programme/gnucash-4.9/build

Christian

Am Mittwoch, dem 29.12.2021 um 08:22 -0800 schrieb john:
You're building in a clean build directory, right? 

Regards,
John Ralls


On Dec 29, 2021, at 5:48 AM, Christian Wehling <
c.wehl...@posteo.de
wrote:

Hi,
unfortunately, neither deleting the schema files after
uninstalling
nor
installing them according to David's instructions helped.
Fortunately, version 4.7 is still executable.

Are there other possibilities I can try?

Regards
Christian




Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
Christian,

Try uninstalling 4.7 again, then make sure that
/opt/share/glib-
2.0/schemas and /usr/share/glib-2.0/schemas contain no
files
whose
names begin with `org.gnucash', then reinstall 4.9.

Regards,
John Ralls

On Dec 28, 2021, at 7:50 AM, Christian Wehling <
c.wehl...@posteo.de
wrote:

Hi,
I have tried all this:
I started with a working version 4.7, did a 'sudo make
uninstall'
and
then installed versions 4.8 and 4.9 with 'sudo make
install'
and
'sudo
ninja install'. Unfortunately, both versions were
unsuccessful.

The Output from 4.8 and 4.9:
* 16:29:33  INFO 
[gnc_load_app_icons]
Path
19:
/usr/share/pixmaps
* 16:29:33  INFO 
[gnc_load_app_icons]
Path
20:
/opt/gnucash/share/gnucash/icons
* 16:29:33  INFO 
[gnc_load_app_icons]
Path
21:
/opt/gnucash/share/icons
* 16:29:33 ERROR 
g_settings_new_full:
assertion
'schema != NULL' failed
* 16:29:33  WARN 
[gnc_gsettings_get_settings_ptr()] Ignoring attempt to
access
unknown
gsettings schema org.gnucash.GnuCash.general
* 16:29:33 ERROR  GVariant*
gnc_gsettings_get_user_value(const gchar*, const
gchar*):
assertion
'G_IS_SETTINGS (settings_ptr)' failed
* 16:29:33 ERROR 
g_settings_new_full:
assertion
'schema != NULL' failed
* 16:29:33  WARN 
[gnc_gsettings_get_settings_ptr()] Ignoring attempt to
access
unknown
gsettings schema org.gnucash.general
* 16:29:33 ERROR  GVariant*
gnc_gsettings_get_user_value(const gchar*, const
gchar*):
assertion
'G_IS_SETTINGS (settings_ptr)' failed
* 16:29:33 ERROR 
g_settings_new_full:
assertion
'schema != NULL' failed

I've also checked the dependencies and the version
numbers
of
gsettings.

Fortunately, I was able to get version 4.7 to wo

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-29 Thread John Ralls
>From yesterday's errors

* 16:29:33  INFO  [gnc_load_app_icons] Path 20:
/opt/gnucash/share/gnucash/icons

Suggests that you might also have installed into /opt/gnucash at some point, so 
look there. You should also check /usr/lib just in case you installed the 
distro build at some point, and take a look at /etc/ld.so.conf and `echo 
$LD_PIBRARY_PATH` for other possible locations.

You can always do `find / -name libgnc*.so`, though that will take a while. If 
you have `locate` installed and you've generated the indexes `locate 
libgnc*.so` will be considerably faster, but since it has to index the hard 
disk it will take longer than find would if it's not installed and indexed 
already.

Regards,
John Ralls
 
> On Dec 29, 2021, at 12:18 PM, Christian Wehling  wrote:
> 
> mhh,
> with these steps I always install a new version:
> 
> cd gnucash-4.9/build
> cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_PYTHON=ON
> ../source
> sudo ninja install
> 
> Since I don't set a special library path, I assume that /usr/local/lib
> is used, there are no leftovers there.
> Where can I look for more libgnc*?
> 
> Attached is an extract from my dconf.
> 
> Thanks for the support.
> 
> Regards,
> Christian
> 
> Am Mittwoch, dem 29.12.2021 um 11:20 -0800 schrieb John Ralls:
>> Good.
>> 
>> * 16:29:33  WARN 
>> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
>> gsettings schema org.gnucash.general
>> 
>> Suggests that there's a set of GnuCash libraries, i.e. libgnc*.so,
>> somewhere on your LD_LIBRARY_PATH and the link is picking that up
>> instead of the just-built ones. The 4.9 ones should be looking for
>> schema org.gnucash.Gnucash.general instead of org.gnucash.general.
>> 
>> Regards,
>> John Ralls
>> 
>> 
>>> On Dec 29, 2021, at 9:05 AM, Christian Wehling >>> wrote:
>>> 
>>> Hi John,
>>> right, i build in ~/Programme/gnucash-4.9/build
>>> 
>>> Christian
>>> 
>>> Am Mittwoch, dem 29.12.2021 um 08:22 -0800 schrieb john:
 You're building in a clean build directory, right? 
 
 Regards,
 John Ralls
 
 
> On Dec 29, 2021, at 5:48 AM, Christian Wehling <
> c.wehl...@posteo.de
>> wrote:
> 
> Hi,
> unfortunately, neither deleting the schema files after
> uninstalling
> nor
> installing them according to David's instructions helped.
> Fortunately, version 4.7 is still executable.
> 
> Are there other possibilities I can try?
> 
> Regards
> Christian
> 
> 
> 
> 
> Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
>> Christian,
>> 
>> Try uninstalling 4.7 again, then make sure that
>> /opt/share/glib-
>> 2.0/schemas and /usr/share/glib-2.0/schemas contain no files
>> whose
>> names begin with `org.gnucash', then reinstall 4.9.
>> 
>> Regards,
>> John Ralls
>> 
>>> On Dec 28, 2021, at 7:50 AM, Christian Wehling <
>>> c.wehl...@posteo.de
 wrote:
>>> 
>>> Hi,
>>> I have tried all this:
>>> I started with a working version 4.7, did a 'sudo make
>>> uninstall'
>>> and
>>> then installed versions 4.8 and 4.9 with 'sudo make
>>> install'
>>> and
>>> 'sudo
>>> ninja install'. Unfortunately, both versions were
>>> unsuccessful.
>>> 
>>> The Output from 4.8 and 4.9:
>>> * 16:29:33  INFO  [gnc_load_app_icons]
>>> Path
>>> 19:
>>> /usr/share/pixmaps
>>> * 16:29:33  INFO  [gnc_load_app_icons]
>>> Path
>>> 20:
>>> /opt/gnucash/share/gnucash/icons
>>> * 16:29:33  INFO  [gnc_load_app_icons]
>>> Path
>>> 21:
>>> /opt/gnucash/share/icons
>>> * 16:29:33 ERROR  g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> * 16:29:33  WARN 
>>> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to
>>> access
>>> unknown
>>> gsettings schema org.gnucash.GnuCash.general
>>> * 16:29:33 ERROR  GVariant*
>>> gnc_gsettings_get_user_value(const gchar*, const gchar*):
>>> assertion
>>> 'G_IS_SETTINGS (settings_ptr)' failed
>>> * 16:29:33 ERROR  g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> * 16:29:33  WARN 
>>> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to
>>> access
>>> unknown
>>> gsettings schema org.gnucash.general
>>> * 16:29:33 ERROR  GVariant*
>>> gnc_gsettings_get_user_value(const gchar*, const gchar*):
>>> assertion
>>> 'G_IS_SETTINGS (settings_ptr)' failed
>>> * 16:29:33 ERROR  g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> 
>>> I've also checked the dependencies and the version numbers
>>> of
>>> gsettings.
>>> 
>>> Fortunately, I was able to get version 4.7 to work again
>>> with
>>> 'sudo
>>> make install'. I have been doing this in the same way since
>>> 4.5
>>> and
>>> it
>>> has always worked until now.
>>> 
>>> Chris

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-29 Thread Geert Janssens
Op maandag 27 december 2021 17:57:17 CET schreef Christian Wehling:
> Hi,
> I have compiled version 4.9 (Ubuntu 20.04) from sourceforge.net and
> have trouble with the "glib-schemas".
> The installation seemed to run without errors, but when I start Gnucash
> I get these outputs:
> [...]
> * 16:48:51  INFO  [gnc_load_app_icons] Path 14:
> /usr/local/share/gnucash/icons
> * 16:48:51  INFO  [gnc_load_app_icons] Path 15:
> /usr/local/share/icons
> * 16:48:51 ERROR  g_settings_new_full: assertion
> 'schema != NULL' failed
> * 16:48:51  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.GnuCash.general
> * 16:48:51 ERROR  GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> [... and so on]
> 
> If I run:
> glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
> /usr/local/share/glib-
> 2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
> Zeile 3, Zeichen 1:  wurde
> bereits angegeben.  --strict was specified; exiting.
> 
> 
> I had installed version 4.7 in the same way and it worked fine.

In 4.9 there should not longer be a file 
/usr/local/share/glib-2.0/schemas/org.gnucash.dialogs.business.gschema.xml

If it's there, that's the reason for the installation failure and subsequent 
run time error.

In fact there shouldn't be any gschema.xml file in there that starts with 
org.gnucash. where  is anything but GnuCash. So you 
should only 
find files that start with org.gnucash.GnuCash or not with org.gnucash at all 
(you can have 
gschema.xml files from other applications you build manually).

Please remove all the org.gnucash..gschema.xml files from that directory 
before 
installing 4.9.
Then check if that exact file reappears after running "sudo ninja install". If 
it does, something 
is wrong with your sources or build directory.

Regards,

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


Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-29 Thread Christian Wehling
mhh,
with these steps I always install a new version:

cd gnucash-4.9/build
cmake -G"Ninja" -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_PYTHON=ON
../source
sudo ninja install

Since I don't set a special library path, I assume that /usr/local/lib
is used, there are no leftovers there.
Where can I look for more libgnc*?

Attached is an extract from my dconf.

Thanks for the support.

Regards,
Christian

Am Mittwoch, dem 29.12.2021 um 11:20 -0800 schrieb John Ralls:
> Good.
> 
> * 16:29:33  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.general
> 
> Suggests that there's a set of GnuCash libraries, i.e. libgnc*.so,
> somewhere on your LD_LIBRARY_PATH and the link is picking that up
> instead of the just-built ones. The 4.9 ones should be looking for
> schema org.gnucash.Gnucash.general instead of org.gnucash.general.
> 
> Regards,
> John Ralls
> 
> 
> > On Dec 29, 2021, at 9:05 AM, Christian Wehling  > > wrote:
> > 
> > Hi John,
> > right, i build in ~/Programme/gnucash-4.9/build
> > 
> > Christian
> > 
> > Am Mittwoch, dem 29.12.2021 um 08:22 -0800 schrieb john:
> > > You're building in a clean build directory, right? 
> > > 
> > > Regards,
> > > John Ralls
> > > 
> > > 
> > > > On Dec 29, 2021, at 5:48 AM, Christian Wehling <
> > > > c.wehl...@posteo.de
> > > > > wrote:
> > > > 
> > > > Hi,
> > > > unfortunately, neither deleting the schema files after
> > > > uninstalling
> > > > nor
> > > > installing them according to David's instructions helped.
> > > > Fortunately, version 4.7 is still executable.
> > > > 
> > > > Are there other possibilities I can try?
> > > > 
> > > > Regards
> > > > Christian
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
> > > > > Christian,
> > > > > 
> > > > > Try uninstalling 4.7 again, then make sure that
> > > > > /opt/share/glib-
> > > > > 2.0/schemas and /usr/share/glib-2.0/schemas contain no files
> > > > > whose
> > > > > names begin with `org.gnucash', then reinstall 4.9.
> > > > > 
> > > > > Regards,
> > > > > John Ralls
> > > > > 
> > > > > > On Dec 28, 2021, at 7:50 AM, Christian Wehling <
> > > > > > c.wehl...@posteo.de
> > > > > > > wrote:
> > > > > > 
> > > > > > Hi,
> > > > > > I have tried all this:
> > > > > > I started with a working version 4.7, did a 'sudo make
> > > > > > uninstall'
> > > > > > and
> > > > > > then installed versions 4.8 and 4.9 with 'sudo make
> > > > > > install'
> > > > > > and
> > > > > > 'sudo
> > > > > > ninja install'. Unfortunately, both versions were
> > > > > > unsuccessful.
> > > > > > 
> > > > > > The Output from 4.8 and 4.9:
> > > > > > * 16:29:33  INFO  [gnc_load_app_icons]
> > > > > > Path
> > > > > > 19:
> > > > > > /usr/share/pixmaps
> > > > > > * 16:29:33  INFO  [gnc_load_app_icons]
> > > > > > Path
> > > > > > 20:
> > > > > > /opt/gnucash/share/gnucash/icons
> > > > > > * 16:29:33  INFO  [gnc_load_app_icons]
> > > > > > Path
> > > > > > 21:
> > > > > > /opt/gnucash/share/icons
> > > > > > * 16:29:33 ERROR  g_settings_new_full:
> > > > > > assertion
> > > > > > 'schema != NULL' failed
> > > > > > * 16:29:33  WARN 
> > > > > > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to
> > > > > > access
> > > > > > unknown
> > > > > > gsettings schema org.gnucash.GnuCash.general
> > > > > > * 16:29:33 ERROR  GVariant*
> > > > > > gnc_gsettings_get_user_value(const gchar*, const gchar*):
> > > > > > assertion
> > > > > > 'G_IS_SETTINGS (settings_ptr)' failed
> > > > > > * 16:29:33 ERROR  g_settings_new_full:
> > > > > > assertion
> > > > > > 'schema != NULL' failed
> > > > > > * 16:29:33  WARN 
> > > > > > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to
> > > > > > access
> > > > > > unknown
> > > > > > gsettings schema org.gnucash.general
> > > > > > * 16:29:33 ERROR  GVariant*
> > > > > > gnc_gsettings_get_user_value(const gchar*, const gchar*):
> > > > > > assertion
> > > > > > 'G_IS_SETTINGS (settings_ptr)' failed
> > > > > > * 16:29:33 ERROR  g_settings_new_full:
> > > > > > assertion
> > > > > > 'schema != NULL' failed
> > > > > > 
> > > > > > I've also checked the dependencies and the version numbers
> > > > > > of
> > > > > > gsettings.
> > > > > > 
> > > > > > Fortunately, I was able to get version 4.7 to work again
> > > > > > with
> > > > > > 'sudo
> > > > > > make install'. I have been doing this in the same way since
> > > > > > 4.5
> > > > > > and
> > > > > > it
> > > > > > has always worked until now.
> > > > > > 
> > > > > > Christian
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
> > > > > > davidcousen...@gmail.com:
> > > > > > > Christian,
> > > > > > > 
> > > > > > > Not sure what the problem is but you could try using
> > > > > > > David
> > > > > > > Whitings
> > > > > > > script for
> > > > > > > installation on Ubuntu 20.04 which is now in the wiki
> > > > > > > at  
> > > > > > > https://wiki.gnucash.org/wiki/Building_On_Linux#Foc

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-29 Thread John Ralls
Good.

* 16:29:33  WARN 
[gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
gsettings schema org.gnucash.general

Suggests that there's a set of GnuCash libraries, i.e. libgnc*.so, somewhere on 
your LD_LIBRARY_PATH and the link is picking that up instead of the just-built 
ones. The 4.9 ones should be looking for schema org.gnucash.Gnucash.general 
instead of org.gnucash.general.

Regards,
John Ralls


> On Dec 29, 2021, at 9:05 AM, Christian Wehling  wrote:
> 
> Hi John,
> right, i build in ~/Programme/gnucash-4.9/build
> 
> Christian
> 
> Am Mittwoch, dem 29.12.2021 um 08:22 -0800 schrieb john:
>> You're building in a clean build directory, right? 
>> 
>> Regards,
>> John Ralls
>> 
>> 
>>> On Dec 29, 2021, at 5:48 AM, Christian Wehling >>> wrote:
>>> 
>>> Hi,
>>> unfortunately, neither deleting the schema files after uninstalling
>>> nor
>>> installing them according to David's instructions helped.
>>> Fortunately, version 4.7 is still executable.
>>> 
>>> Are there other possibilities I can try?
>>> 
>>> Regards
>>> Christian
>>> 
>>> 
>>> 
>>> 
>>> Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
 Christian,
 
 Try uninstalling 4.7 again, then make sure that /opt/share/glib-
 2.0/schemas and /usr/share/glib-2.0/schemas contain no files
 whose
 names begin with `org.gnucash', then reinstall 4.9.
 
 Regards,
 John Ralls
 
> On Dec 28, 2021, at 7:50 AM, Christian Wehling <
> c.wehl...@posteo.de
>> wrote:
> 
> Hi,
> I have tried all this:
> I started with a working version 4.7, did a 'sudo make
> uninstall'
> and
> then installed versions 4.8 and 4.9 with 'sudo make install'
> and
> 'sudo
> ninja install'. Unfortunately, both versions were unsuccessful.
> 
> The Output from 4.8 and 4.9:
> * 16:29:33  INFO  [gnc_load_app_icons]
> Path
> 19:
> /usr/share/pixmaps
> * 16:29:33  INFO  [gnc_load_app_icons]
> Path
> 20:
> /opt/gnucash/share/gnucash/icons
> * 16:29:33  INFO  [gnc_load_app_icons]
> Path
> 21:
> /opt/gnucash/share/icons
> * 16:29:33 ERROR  g_settings_new_full:
> assertion
> 'schema != NULL' failed
> * 16:29:33  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> unknown
> gsettings schema org.gnucash.GnuCash.general
> * 16:29:33 ERROR  GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*):
> assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> * 16:29:33 ERROR  g_settings_new_full:
> assertion
> 'schema != NULL' failed
> * 16:29:33  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> unknown
> gsettings schema org.gnucash.general
> * 16:29:33 ERROR  GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*):
> assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> * 16:29:33 ERROR  g_settings_new_full:
> assertion
> 'schema != NULL' failed
> 
> I've also checked the dependencies and the version numbers of
> gsettings.
> 
> Fortunately, I was able to get version 4.7 to work again with
> 'sudo
> make install'. I have been doing this in the same way since 4.5
> and
> it
> has always worked until now.
> 
> Christian
> 
> 
> 
> Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
> davidcousen...@gmail.com:
>> Christian,
>> 
>> Not sure what the problem is but you could try using David
>> Whitings
>> script for
>> installation on Ubuntu 20.04 which is now in the wiki at  
>> https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS
>> . It works
>> well with the only disadvantage it downloads a copy of the
>> whole
>> git
>> repository
>> and not just the specific source files for a single version,
>> OK
>> if
>> you don't
>> have any serious space issues.
>> 
>> The following commands from the script will do the setup for
>> builing
>> and install
>> the dependencies:
>> 
>> sudo apt -y update
>> sudo apt -y upgrade
>> sudo apt -y install git
>> sudo apt -y build-dep gnucash
>> 
>> ## To build series 4 of gnucash on Ubuntu 20.04
>> sudo apt -y install libboost-program-options1.71-dev
>> 
>> If you still want to work from the downloaded zip file of the
>> sources
>> just run
>> these first to make sure all the dependencies are loaded. I
>> would
>> try
>> a fresh
>> download of the zipped file from Sourceforge as well. There
>> was a
>> patch to the
>> 4.8 sources that affected the gsettings schemas from memory
>> but
>> AFAIK
>> it was
>> incorporated in the 4.9 sources.
>> 
>> If you run the following command ( I have also listed the
>> output
>> from
>> it on
>> Linux MInt 20.2 which should

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-29 Thread Christian Wehling
Hi John,
right, i build in ~/Programme/gnucash-4.9/build

Christian

Am Mittwoch, dem 29.12.2021 um 08:22 -0800 schrieb john:
> You're building in a clean build directory, right? 
> 
> Regards,
> John Ralls
> 
> 
> > On Dec 29, 2021, at 5:48 AM, Christian Wehling  > > wrote:
> > 
> > Hi,
> > unfortunately, neither deleting the schema files after uninstalling
> > nor
> > installing them according to David's instructions helped.
> > Fortunately, version 4.7 is still executable.
> > 
> > Are there other possibilities I can try?
> > 
> > Regards
> > Christian
> > 
> > 
> > 
> > 
> > Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
> > > Christian,
> > > 
> > > Try uninstalling 4.7 again, then make sure that /opt/share/glib-
> > > 2.0/schemas and /usr/share/glib-2.0/schemas contain no files
> > > whose
> > > names begin with `org.gnucash', then reinstall 4.9.
> > > 
> > > Regards,
> > > John Ralls
> > > 
> > > > On Dec 28, 2021, at 7:50 AM, Christian Wehling <
> > > > c.wehl...@posteo.de
> > > > > wrote:
> > > > 
> > > > Hi,
> > > > I have tried all this:
> > > > I started with a working version 4.7, did a 'sudo make
> > > > uninstall'
> > > > and
> > > > then installed versions 4.8 and 4.9 with 'sudo make install'
> > > > and
> > > > 'sudo
> > > > ninja install'. Unfortunately, both versions were unsuccessful.
> > > > 
> > > > The Output from 4.8 and 4.9:
> > > > * 16:29:33  INFO  [gnc_load_app_icons]
> > > > Path
> > > > 19:
> > > > /usr/share/pixmaps
> > > > * 16:29:33  INFO  [gnc_load_app_icons]
> > > > Path
> > > > 20:
> > > > /opt/gnucash/share/gnucash/icons
> > > > * 16:29:33  INFO  [gnc_load_app_icons]
> > > > Path
> > > > 21:
> > > > /opt/gnucash/share/icons
> > > > * 16:29:33 ERROR  g_settings_new_full:
> > > > assertion
> > > > 'schema != NULL' failed
> > > > * 16:29:33  WARN 
> > > > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> > > > unknown
> > > > gsettings schema org.gnucash.GnuCash.general
> > > > * 16:29:33 ERROR  GVariant*
> > > > gnc_gsettings_get_user_value(const gchar*, const gchar*):
> > > > assertion
> > > > 'G_IS_SETTINGS (settings_ptr)' failed
> > > > * 16:29:33 ERROR  g_settings_new_full:
> > > > assertion
> > > > 'schema != NULL' failed
> > > > * 16:29:33  WARN 
> > > > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> > > > unknown
> > > > gsettings schema org.gnucash.general
> > > > * 16:29:33 ERROR  GVariant*
> > > > gnc_gsettings_get_user_value(const gchar*, const gchar*):
> > > > assertion
> > > > 'G_IS_SETTINGS (settings_ptr)' failed
> > > > * 16:29:33 ERROR  g_settings_new_full:
> > > > assertion
> > > > 'schema != NULL' failed
> > > > 
> > > > I've also checked the dependencies and the version numbers of
> > > > gsettings.
> > > > 
> > > > Fortunately, I was able to get version 4.7 to work again with
> > > > 'sudo
> > > > make install'. I have been doing this in the same way since 4.5
> > > > and
> > > > it
> > > > has always worked until now.
> > > > 
> > > > Christian
> > > > 
> > > > 
> > > > 
> > > > Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
> > > > davidcousen...@gmail.com:
> > > > > Christian,
> > > > > 
> > > > > Not sure what the problem is but you could try using David
> > > > > Whitings
> > > > > script for
> > > > > installation on Ubuntu 20.04 which is now in the wiki at  
> > > > > https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS
> > > > > . It works
> > > > > well with the only disadvantage it downloads a copy of the
> > > > > whole
> > > > > git
> > > > > repository
> > > > > and not just the specific source files for a single version,
> > > > > OK
> > > > > if
> > > > > you don't
> > > > > have any serious space issues.
> > > > > 
> > > > > The following commands from the script will do the setup for
> > > > > builing
> > > > > and install
> > > > > the dependencies:
> > > > > 
> > > > > sudo apt -y update
> > > > > sudo apt -y upgrade
> > > > > sudo apt -y install git
> > > > > sudo apt -y build-dep gnucash
> > > > > 
> > > > > ## To build series 4 of gnucash on Ubuntu 20.04
> > > > > sudo apt -y install libboost-program-options1.71-dev
> > > > > 
> > > > > If you still want to work from the downloaded zip file of the
> > > > > sources
> > > > > just run
> > > > > these first to make sure all the dependencies are loaded. I
> > > > > would
> > > > > try
> > > > > a fresh
> > > > > download of the zipped file from Sourceforge as well. There
> > > > > was a
> > > > > patch to the
> > > > > 4.8 sources that affected the gsettings schemas from memory
> > > > > but
> > > > > AFAIK
> > > > > it was
> > > > > incorporated in the 4.9 sources.
> > > > > 
> > > > > If you run the following command ( I have also listed the
> > > > > output
> > > > > from
> > > > > it on
> > > > > Linux MInt 20.2 which should be the same as Ubuntu 20.04) you
> > > > > will
> > > > > list the
> > > > > packages affecting gsettings.
> > > > > 
> > > > > dpkg -l | grep gsettings
> > > > > 
> > > > > ii  dconf-gsettings-
> 

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-29 Thread john
You're building in a clean build directory, right? 

Regards,
John Ralls


> On Dec 29, 2021, at 5:48 AM, Christian Wehling  wrote:
> 
> Hi,
> unfortunately, neither deleting the schema files after uninstalling nor
> installing them according to David's instructions helped.
> Fortunately, version 4.7 is still executable.
> 
> Are there other possibilities I can try?
> 
> Regards
> Christian
> 
> 
> 
> 
> Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
>> Christian,
>> 
>> Try uninstalling 4.7 again, then make sure that /opt/share/glib-
>> 2.0/schemas and /usr/share/glib-2.0/schemas contain no files whose
>> names begin with `org.gnucash', then reinstall 4.9.
>> 
>> Regards,
>> John Ralls
>> 
>>> On Dec 28, 2021, at 7:50 AM, Christian Wehling >>> wrote:
>>> 
>>> Hi,
>>> I have tried all this:
>>> I started with a working version 4.7, did a 'sudo make uninstall'
>>> and
>>> then installed versions 4.8 and 4.9 with 'sudo make install' and
>>> 'sudo
>>> ninja install'. Unfortunately, both versions were unsuccessful.
>>> 
>>> The Output from 4.8 and 4.9:
>>> * 16:29:33  INFO  [gnc_load_app_icons] Path
>>> 19:
>>> /usr/share/pixmaps
>>> * 16:29:33  INFO  [gnc_load_app_icons] Path
>>> 20:
>>> /opt/gnucash/share/gnucash/icons
>>> * 16:29:33  INFO  [gnc_load_app_icons] Path
>>> 21:
>>> /opt/gnucash/share/icons
>>> * 16:29:33 ERROR  g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> * 16:29:33  WARN 
>>> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
>>> unknown
>>> gsettings schema org.gnucash.GnuCash.general
>>> * 16:29:33 ERROR  GVariant*
>>> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
>>> 'G_IS_SETTINGS (settings_ptr)' failed
>>> * 16:29:33 ERROR  g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> * 16:29:33  WARN 
>>> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
>>> unknown
>>> gsettings schema org.gnucash.general
>>> * 16:29:33 ERROR  GVariant*
>>> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
>>> 'G_IS_SETTINGS (settings_ptr)' failed
>>> * 16:29:33 ERROR  g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> 
>>> I've also checked the dependencies and the version numbers of
>>> gsettings.
>>> 
>>> Fortunately, I was able to get version 4.7 to work again with 'sudo
>>> make install'. I have been doing this in the same way since 4.5 and
>>> it
>>> has always worked until now.
>>> 
>>> Christian
>>> 
>>> 
>>> 
>>> Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
>>> davidcousen...@gmail.com:
 Christian,
 
 Not sure what the problem is but you could try using David
 Whitings
 script for
 installation on Ubuntu 20.04 which is now in the wiki at  
 https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS
 . It works
 well with the only disadvantage it downloads a copy of the whole
 git
 repository
 and not just the specific source files for a single version, OK
 if
 you don't
 have any serious space issues.
 
 The following commands from the script will do the setup for
 builing
 and install
 the dependencies:
 
 sudo apt -y update
 sudo apt -y upgrade
 sudo apt -y install git
 sudo apt -y build-dep gnucash
 
 ## To build series 4 of gnucash on Ubuntu 20.04
 sudo apt -y install libboost-program-options1.71-dev
 
 If you still want to work from the downloaded zip file of the
 sources
 just run
 these first to make sure all the dependencies are loaded. I would
 try
 a fresh
 download of the zipped file from Sourceforge as well. There was a
 patch to the
 4.8 sources that affected the gsettings schemas from memory but
 AFAIK
 it was
 incorporated in the 4.9 sources.
 
 If you run the following command ( I have also listed the output
 from
 it on
 Linux MInt 20.2 which should be the same as Ubuntu 20.04) you
 will
 list the
 packages affecting gsettings.
 
 dpkg -l | grep gsettings
 
 ii  dconf-gsettings-
 backend:amd64   0.36.0-
 1amd64simple
 configuration storage
 system - GSettings back-end
 ii  gsettings-desktop-
 schemas   3.36.0-
 1ubuntu1 all  GSettings
 desktop-
 wide schemas
 ii  libproxy1-plugin-
 gsettings:amd640.4.15-
 10ubuntu1.2  amd64automatic proxy
 configuration
 management library (GSettings plugin).
 
 It is ususlly a good idea on Linux to unistall the previous
 version
 befor
 installing a new version. On Linux Mint (not sure Ubuntu is
 exactly
 the same but
 I think it should be) if you right click on the icon in the menu
 you
 should get
 a dropdown 

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-29 Thread Christian Wehling
Hi,
unfortunately, neither deleting the schema files after uninstalling nor
installing them according to David's instructions helped.
Fortunately, version 4.7 is still executable.

Are there other possibilities I can try?

Regards
Christian




Am Dienstag, dem 28.12.2021 um 08:10 -0800 schrieb john:
> Christian,
> 
> Try uninstalling 4.7 again, then make sure that /opt/share/glib-
> 2.0/schemas and /usr/share/glib-2.0/schemas contain no files whose
> names begin with `org.gnucash', then reinstall 4.9.
> 
> Regards,
> John Ralls
> 
> > On Dec 28, 2021, at 7:50 AM, Christian Wehling  > > wrote:
> > 
> > Hi,
> > I have tried all this:
> > I started with a working version 4.7, did a 'sudo make uninstall'
> > and
> > then installed versions 4.8 and 4.9 with 'sudo make install' and
> > 'sudo
> > ninja install'. Unfortunately, both versions were unsuccessful.
> > 
> > The Output from 4.8 and 4.9:
> > * 16:29:33  INFO  [gnc_load_app_icons] Path
> > 19:
> > /usr/share/pixmaps
> > * 16:29:33  INFO  [gnc_load_app_icons] Path
> > 20:
> > /opt/gnucash/share/gnucash/icons
> > * 16:29:33  INFO  [gnc_load_app_icons] Path
> > 21:
> > /opt/gnucash/share/icons
> > * 16:29:33 ERROR  g_settings_new_full:
> > assertion
> > 'schema != NULL' failed
> > * 16:29:33  WARN 
> > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> > unknown
> > gsettings schema org.gnucash.GnuCash.general
> > * 16:29:33 ERROR  GVariant*
> > gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> > 'G_IS_SETTINGS (settings_ptr)' failed
> > * 16:29:33 ERROR  g_settings_new_full:
> > assertion
> > 'schema != NULL' failed
> > * 16:29:33  WARN 
> > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> > unknown
> > gsettings schema org.gnucash.general
> > * 16:29:33 ERROR  GVariant*
> > gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> > 'G_IS_SETTINGS (settings_ptr)' failed
> > * 16:29:33 ERROR  g_settings_new_full:
> > assertion
> > 'schema != NULL' failed
> > 
> > I've also checked the dependencies and the version numbers of
> > gsettings.
> > 
> > Fortunately, I was able to get version 4.7 to work again with 'sudo
> > make install'. I have been doing this in the same way since 4.5 and
> > it
> > has always worked until now.
> > 
> > Christian
> > 
> > 
> > 
> > Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
> > davidcousen...@gmail.com:
> > > Christian,
> > > 
> > > Not sure what the problem is but you could try using David
> > > Whitings
> > > script for
> > > installation on Ubuntu 20.04 which is now in the wiki at  
> > > https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS
> > > . It works
> > > well with the only disadvantage it downloads a copy of the whole
> > > git
> > > repository
> > > and not just the specific source files for a single version, OK
> > > if
> > > you don't
> > > have any serious space issues.
> > > 
> > > The following commands from the script will do the setup for
> > > builing
> > > and install
> > > the dependencies:
> > > 
> > > sudo apt -y update
> > > sudo apt -y upgrade
> > > sudo apt -y install git
> > > sudo apt -y build-dep gnucash
> > > 
> > > ## To build series 4 of gnucash on Ubuntu 20.04
> > > sudo apt -y install libboost-program-options1.71-dev
> > > 
> > > If you still want to work from the downloaded zip file of the
> > > sources
> > > just run
> > > these first to make sure all the dependencies are loaded. I would
> > > try
> > > a fresh
> > > download of the zipped file from Sourceforge as well. There was a
> > > patch to the
> > > 4.8 sources that affected the gsettings schemas from memory but
> > > AFAIK
> > > it was
> > > incorporated in the 4.9 sources.
> > > 
> > > If you run the following command ( I have also listed the output
> > > from
> > > it on
> > > Linux MInt 20.2 which should be the same as Ubuntu 20.04) you
> > > will
> > > list the
> > > packages affecting gsettings.
> > > 
> > > dpkg -l | grep gsettings
> > > 
> > > ii  dconf-gsettings-
> > > backend:amd64   0.36.0-
> > > 1amd64simple
> > > configuration storage
> > > system - GSettings back-end
> > > ii  gsettings-desktop-
> > > schemas   3.36.0-
> > > 1ubuntu1 all  GSettings
> > > desktop-
> > > wide schemas
> > > ii  libproxy1-plugin-
> > > gsettings:amd640.4.15-
> > > 10ubuntu1.2  amd64automatic proxy
> > > configuration
> > > management library (GSettings plugin).
> > > 
> > > It is ususlly a good idea on Linux to unistall the previous
> > > version
> > > befor
> > > installing a new version. On Linux Mint (not sure Ubuntu is
> > > exactly
> > > the same but
> > > I think it should be) if you right click on the icon in the menu
> > > you
> > > should get
> > > a dropdown menu with uninstall as one of the options. It may
> > > require
> > > you to keep
> > > the b

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-28 Thread john
Christian,

Try uninstalling 4.7 again, then make sure that /opt/share/glib-2.0/schemas and 
/usr/share/glib-2.0/schemas contain no files whose names begin with 
`org.gnucash', then reinstall 4.9.

Regards,
John Ralls

> On Dec 28, 2021, at 7:50 AM, Christian Wehling  wrote:
> 
> Hi,
> I have tried all this:
> I started with a working version 4.7, did a 'sudo make uninstall' and
> then installed versions 4.8 and 4.9 with 'sudo make install' and 'sudo
> ninja install'. Unfortunately, both versions were unsuccessful.
> 
> The Output from 4.8 and 4.9:
> * 16:29:33  INFO  [gnc_load_app_icons] Path 19:
> /usr/share/pixmaps
> * 16:29:33  INFO  [gnc_load_app_icons] Path 20:
> /opt/gnucash/share/gnucash/icons
> * 16:29:33  INFO  [gnc_load_app_icons] Path 21:
> /opt/gnucash/share/icons
> * 16:29:33 ERROR  g_settings_new_full: assertion
> 'schema != NULL' failed
> * 16:29:33  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.GnuCash.general
> * 16:29:33 ERROR  GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> * 16:29:33 ERROR  g_settings_new_full: assertion
> 'schema != NULL' failed
> * 16:29:33  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.general
> * 16:29:33 ERROR  GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> * 16:29:33 ERROR  g_settings_new_full: assertion
> 'schema != NULL' failed
> 
> I've also checked the dependencies and the version numbers of
> gsettings.
> 
> Fortunately, I was able to get version 4.7 to work again with 'sudo
> make install'. I have been doing this in the same way since 4.5 and it
> has always worked until now.
> 
> Christian
> 
> 
> 
> Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
> davidcousen...@gmail.com:
>> Christian,
>> 
>> Not sure what the problem is but you could try using David Whitings
>> script for
>> installation on Ubuntu 20.04 which is now in the wiki at  
>> https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS
>> . It works
>> well with the only disadvantage it downloads a copy of the whole git
>> repository
>> and not just the specific source files for a single version, OK if
>> you don't
>> have any serious space issues.
>> 
>> The following commands from the script will do the setup for builing
>> and install
>> the dependencies:
>> 
>> sudo apt -y update
>> sudo apt -y upgrade
>> sudo apt -y install git
>> sudo apt -y build-dep gnucash
>> 
>> ## To build series 4 of gnucash on Ubuntu 20.04
>> sudo apt -y install libboost-program-options1.71-dev
>> 
>> If you still want to work from the downloaded zip file of the sources
>> just run
>> these first to make sure all the dependencies are loaded. I would try
>> a fresh
>> download of the zipped file from Sourceforge as well. There was a
>> patch to the
>> 4.8 sources that affected the gsettings schemas from memory but AFAIK
>> it was
>> incorporated in the 4.9 sources.
>> 
>> If you run the following command ( I have also listed the output from
>> it on
>> Linux MInt 20.2 which should be the same as Ubuntu 20.04) you will
>> list the
>> packages affecting gsettings.
>> 
>> dpkg -l | grep gsettings
>> 
>> ii  dconf-gsettings-
>> backend:amd64   0.36.0-
>> 1amd64simple
>> configuration storage
>> system - GSettings back-end
>> ii  gsettings-desktop-
>> schemas   3.36.0-
>> 1ubuntu1 all  GSettings desktop-
>> wide schemas
>> ii  libproxy1-plugin-
>> gsettings:amd640.4.15-
>> 10ubuntu1.2  amd64automatic proxy
>> configuration
>> management library (GSettings plugin).
>> 
>> It is ususlly a good idea on Linux to unistall the previous version
>> befor
>> installing a new version. On Linux Mint (not sure Ubuntu is exactly
>> the same but
>> I think it should be) if you right click on the icon in the menu you
>> should get
>> a dropdown menu with uninstall as one of the options. It may require
>> you to keep
>> the build directory which has the install_manifest.text used to do
>> the
>> uninstall.
>> 
>> David Cousens
>> 
>> On Mon, 2021-12-27 at 16:57 +, Christian Wehling wrote:
>>> Hi,
>>> I have compiled version 4.9 (Ubuntu 20.04) from sourceforge.net
>>> and 
>>> have trouble with the "glib-schemas".
>>> The installation seemed to run without errors, but when I start
>>> Gnucash
>>> I get these outputs:
>>> [...]
>>> * 16:48:51  INFO  [gnc_load_app_icons] Path
>>> 14:
>>> /usr/local/share/gnucash/icons
>>> * 16:48:51  INFO  [gnc_load_app_icons] Path
>>> 15:
>>> /usr/local/share/icons
>>> * 16:48:51 ERROR  g_settings_new_full:
>>> assertion
>>> 'schema != NULL' failed
>>> * 16:48:51  WARN 
>>> [gnc_gsettings_get_settings_ptr()] Ignoring atte

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-28 Thread Christian Wehling
Hi,
I have tried all this:
I started with a working version 4.7, did a 'sudo make uninstall' and
then installed versions 4.8 and 4.9 with 'sudo make install' and 'sudo
ninja install'. Unfortunately, both versions were unsuccessful.

The Output from 4.8 and 4.9:
* 16:29:33  INFO  [gnc_load_app_icons] Path 19:
/usr/share/pixmaps
* 16:29:33  INFO  [gnc_load_app_icons] Path 20:
/opt/gnucash/share/gnucash/icons
* 16:29:33  INFO  [gnc_load_app_icons] Path 21:
/opt/gnucash/share/icons
* 16:29:33 ERROR  g_settings_new_full: assertion
'schema != NULL' failed
* 16:29:33  WARN 
[gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
gsettings schema org.gnucash.GnuCash.general
* 16:29:33 ERROR  GVariant*
gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
'G_IS_SETTINGS (settings_ptr)' failed
* 16:29:33 ERROR  g_settings_new_full: assertion
'schema != NULL' failed
* 16:29:33  WARN 
[gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
gsettings schema org.gnucash.general
* 16:29:33 ERROR  GVariant*
gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
'G_IS_SETTINGS (settings_ptr)' failed
* 16:29:33 ERROR  g_settings_new_full: assertion
'schema != NULL' failed

I've also checked the dependencies and the version numbers of
gsettings.

Fortunately, I was able to get version 4.7 to work again with 'sudo
make install'. I have been doing this in the same way since 4.5 and it
has always worked until now.

Christian



Am Dienstag, dem 28.12.2021 um 09:10 +1000 schrieb
davidcousen...@gmail.com:
> Christian,
> 
> Not sure what the problem is but you could try using David Whitings
> script for
> installation on Ubuntu 20.04 which is now in the wiki at  
> https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS
> . It works
> well with the only disadvantage it downloads a copy of the whole git
> repository
> and not just the specific source files for a single version, OK if
> you don't
> have any serious space issues.
> 
> The following commands from the script will do the setup for builing
> and install
> the dependencies:
> 
> sudo apt -y update
> sudo apt -y upgrade
> sudo apt -y install git
> sudo apt -y build-dep gnucash
> 
> ## To build series 4 of gnucash on Ubuntu 20.04
> sudo apt -y install libboost-program-options1.71-dev
> 
> If you still want to work from the downloaded zip file of the sources
> just run
> these first to make sure all the dependencies are loaded. I would try
> a fresh
> download of the zipped file from Sourceforge as well. There was a
> patch to the
> 4.8 sources that affected the gsettings schemas from memory but AFAIK
> it was
> incorporated in the 4.9 sources.
> 
> If you run the following command ( I have also listed the output from
> it on
> Linux MInt 20.2 which should be the same as Ubuntu 20.04) you will
> list the
> packages affecting gsettings.
> 
> dpkg -l | grep gsettings
> 
> ii  dconf-gsettings-
> backend:amd64   0.36.0-
> 1amd64simple
> configuration storage
> system - GSettings back-end
> ii  gsettings-desktop-
> schemas   3.36.0-
> 1ubuntu1 all  GSettings desktop-
> wide schemas
> ii  libproxy1-plugin-
> gsettings:amd640.4.15-
> 10ubuntu1.2  amd64automatic proxy
> configuration
> management library (GSettings plugin).
> 
> It is ususlly a good idea on Linux to unistall the previous version
> befor
> installing a new version. On Linux Mint (not sure Ubuntu is exactly
> the same but
> I think it should be) if you right click on the icon in the menu you
> should get
> a dropdown menu with uninstall as one of the options. It may require
> you to keep
> the build directory which has the install_manifest.text used to do
> the
> uninstall.
> 
> David Cousens
> 
> On Mon, 2021-12-27 at 16:57 +, Christian Wehling wrote:
> > Hi,
> > I have compiled version 4.9 (Ubuntu 20.04) from sourceforge.net
> > and 
> > have trouble with the "glib-schemas".
> > The installation seemed to run without errors, but when I start
> > Gnucash
> > I get these outputs:
> > [...]
> > * 16:48:51  INFO  [gnc_load_app_icons] Path
> > 14:
> > /usr/local/share/gnucash/icons
> > * 16:48:51  INFO  [gnc_load_app_icons] Path
> > 15:
> > /usr/local/share/icons
> > * 16:48:51 ERROR  g_settings_new_full:
> > assertion
> > 'schema != NULL' failed
> > * 16:48:51  WARN 
> > [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access
> > unknown
> > gsettings schema org.gnucash.GnuCash.general
> > * 16:48:51 ERROR  GVariant*
> > gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> > 'G_IS_SETTINGS (settings_ptr)' failed
> > [... and so on]
> > 
> > If I run:
> > glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
> > /usr/local/share/glib-
> > 2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
> > Zeile 3, Z

Re: [GNC-dev] Trouble with gsettings in GC 4.9

2021-12-27 Thread davidcousens49
Christian,

Not sure what the problem is but you could try using David Whitings script for
installation on Ubuntu 20.04 which is now in the wiki at  
https://wiki.gnucash.org/wiki/Building_On_Linux#Focal_Fossa_20.04_LTS. It works
well with the only disadvantage it downloads a copy of the whole git repository
and not just the specific source files for a single version, OK if you don't
have any serious space issues.

The following commands from the script will do the setup for builing and install
the dependencies:

sudo apt -y update
sudo apt -y upgrade
sudo apt -y install git
sudo apt -y build-dep gnucash

## To build series 4 of gnucash on Ubuntu 20.04
sudo apt -y install libboost-program-options1.71-dev

If you still want to work from the downloaded zip file of the sources just run
these first to make sure all the dependencies are loaded. I would try a fresh
download of the zipped file from Sourceforge as well. There was a patch to the
4.8 sources that affected the gsettings schemas from memory but AFAIK it was
incorporated in the 4.9 sources.

If you run the following command ( I have also listed the output from it on
Linux MInt 20.2 which should be the same as Ubuntu 20.04) you will list the
packages affecting gsettings.

dpkg -l | grep gsettings

ii  dconf-gsettings-backend:amd64   0.36.0-
1amd64simple configuration storage
system - GSettings back-end
ii  gsettings-desktop-schemas   3.36.0-
1ubuntu1 all  GSettings desktop-wide schemas
ii  libproxy1-plugin-gsettings:amd640.4.15-
10ubuntu1.2  amd64automatic proxy configuration
management library (GSettings plugin).

It is ususlly a good idea on Linux to unistall the previous version befor
installing a new version. On Linux Mint (not sure Ubuntu is exactly the same but
I think it should be) if you right click on the icon in the menu you should get
a dropdown menu with uninstall as one of the options. It may require you to keep
the build directory which has the install_manifest.text used to do the
uninstall.

David Cousens

On Mon, 2021-12-27 at 16:57 +, Christian Wehling wrote:
> Hi,
> I have compiled version 4.9 (Ubuntu 20.04) from sourceforge.net and 
> have trouble with the "glib-schemas".
> The installation seemed to run without errors, but when I start Gnucash
> I get these outputs:
> [...]
> * 16:48:51  INFO  [gnc_load_app_icons] Path 14:
> /usr/local/share/gnucash/icons
> * 16:48:51  INFO  [gnc_load_app_icons] Path 15:
> /usr/local/share/icons
> * 16:48:51 ERROR  g_settings_new_full: assertion
> 'schema != NULL' failed
> * 16:48:51  WARN 
> [gnc_gsettings_get_settings_ptr()] Ignoring attempt to access unknown
> gsettings schema org.gnucash.GnuCash.general
> * 16:48:51 ERROR  GVariant*
> gnc_gsettings_get_user_value(const gchar*, const gchar*): assertion
> 'G_IS_SETTINGS (settings_ptr)' failed
> [... and so on]
> 
> If I run:
> glib-compile-schemas --strict /usr/local/share/glib-2.0/schemas/
> /usr/local/share/glib-
> 2.0/schemas/org.gnucash.dialogs.business.gschema.xml:3:1  Fehler in
> Zeile 3, Zeichen 1:  wurde
> bereits angegeben.  --strict was specified; exiting.
> 
> 
> I had installed version 4.7 in the same way and it worked fine.
> 
> What can I do?
> 
> Christian
> 
> ___
> 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