[GNC-dev] Compiling not working

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[GNC-dev] Compiling not working

lists+gnucash
Hi,


I am trying to compile gnucash.

I downloaded the tarball gnucash-3.7.tar.bz2,
installed and compiled all necessary dependencies,
run
     mkdir mybuild && cd mybuild && cmake
-DCMAKE_INSTALL_PREFIX=/opt/gnucash ..
and then (inside the build directory)
     make

and I get the following errors (snip, full in attachement)

[ 19%] Building CXX object
libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
/build/libgnucash/engine/Account.cpp:244:13: error: static inline [-Werror]
   244 | G_INLINE_FUNC void mark_account (Account *acc);
       |             ^~~~~~~~~~~~~~~
/build/libgnucash/engine/Account.cpp:262:13: error: G_ADD_PRIVATE [-Werror]
   262 |     priv = GET_PRIVATE(acc);
       |             ^~~~~~~~~~~~~~~

I am building inside a docker container (but this shouldn't be the
problem, I guess).

What is the problem here?


Thanks,
Alexander

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

gnucash_compile.log (25K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [GNC-dev] Compiling not working

John Ralls-2


> On Oct 23, 2019, at 11:15 AM, [hidden email] wrote:
>
> Hi,
>
>
> I am trying to compile gnucash.
>
> I downloaded the tarball gnucash-3.7.tar.bz2,
> installed and compiled all necessary dependencies,
> run
>    mkdir mybuild && cd mybuild && cmake -DCMAKE_INSTALL_PREFIX=/opt/gnucash ..
> and then (inside the build directory)
>    make
>
> and I get the following errors (snip, full in attachement)
>
> [ 19%] Building CXX object libgnucash/engine/CMakeFiles/gncmod-engine.dir/Account.cpp.o
> /build/libgnucash/engine/Account.cpp:244:13: error: static inline [-Werror]
>  244 | G_INLINE_FUNC void mark_account (Account *acc);
>      |             ^~~~~~~~~~~~~~~
> /build/libgnucash/engine/Account.cpp:262:13: error: G_ADD_PRIVATE [-Werror]
>  262 |     priv = GET_PRIVATE(acc);
>      |             ^~~~~~~~~~~~~~~
>
> I am building inside a docker container (but this shouldn't be the problem, I guess).
>
> What is the problem here?

Your Glib is too new. ;-)

See https://bugs.gnucash.org/show_bug.cgi?id=797407.

The simplest solution for you would be to build the maint branch from git.

Regards,
John Ralls

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel