Re: [GNC-dev] Co-Owner (v0.3.0)

john <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <[email protected]>

> On Jun 29, 2022, at 10:32 AM, Ralf Zerres <[email protected]> wrote:
> 
> Hey all,
> 
> I'm still active on hacking the coowner branch.
> It's quite a stony path, but I do my best and got into the code
> structure quite well. The active, rebases branch is now called
> `cooowner`. No i do get stuck on two nasty problems. Appreciate your
> advice:
> 
> * seems there is the need of a specific GTK environment
>   Which one is needed to use glade and code integration (seems plaind
> 3.x version isn't enough)
> 
> * given situation: compiles, but i introduced a regression 
> 
> 	11:23:34 ERROR <gnc.engine> gboolean
> qof_choice_add_class(const char*, char*, char*): assertion
> 'qof_object_is_choice(select)' failed
> 
>  * debug gnucash
>     build path:
>     cd ~/build-coowner;  
>    cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=./install -
> G Ninja ..)
> 
>    no i'm strugglin within gdb. Since the app is multi-threaded, i
> like to simplify the debug session and wonder if it would be possible
> to just run with a singel thread?
> 
> * does gnucash have a chat for active development (mattermost, discord,
> et al?)
> 


We're severely behind in cleaning out deprecated Gtk code so anything from around 3.10 should work OK. Glade is another matter, Bob Fewell keeps regenerating the Glade files with new versions. I avoid the problem by using emacs on glade files, but otherwise you need to keep up to date. Maybe Bob can jump in with some more advice.

The part of GnuCash that you're interested in is single-threaded. Guile and WebKit fire off some threads for their own nefarious purposes but you can ignore them.

CMAKE_BUILD_TYPE=Debug doesn't turn off optimization, you need to add -O0 or -O1 to CMAKE_CPP_FLAGS if you need to have all of your locals and args populated and your code to step linearly.

We have an IRC channel, see https://wiki.gnucash.org/wiki/IRC, with some of the core team usually present.

Regards,
John Ralls
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.