[GNC-dev] GnuCash 3.0 wine versus Windoze 10

Robin Chattopadhyay robinraymn at gmail.com
Fri Apr 20 22:17:29 EDT 2018

I *was* enjoying my fresh build until I decided to try again from scratch
in order to get the python bindings incorporated.

So, I already have python2.7 and python3 since I had python bindings
installed with Gnucash 2.6.19 previously. I took your suggestion and
installed python3-pytest, but I'm still getting hung up at the same point:

[ 29%] Linking C shared module ../../lib/gnucash/_unittest_support.so
/usr/bin/ld: /usr/local/lib/libpython3.6m.a(abstract.o): relocation
R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making
a shared object; recompile with -fPIC
/usr/local/lib/libpython3.6m.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
common/test-core/CMakeFiles/unittest_support.dir/build.make:104: recipe for
target 'lib/gnucash/_unittest_support.so' failed
make[2]: *** [lib/gnucash/_unittest_support.so] Error 1
CMakeFiles/Makefile2:1746: recipe for target
'common/test-core/CMakeFiles/unittest_support.dir/all' failed
make[1]: *** [common/test-core/CMakeFiles/unittest_support.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

I ran dpkg -l | grep pytest which returned:
ii  python3-pytest          2.8.7-4        all          Simple, powerful
testing in Python3

On Fri, Apr 20, 2018 at 11:58 AM, Geert Janssens <geert.gnucash at kobaltwit.be
> wrote:

> > I was running into problems with cmake when I set -D WITH_PYTHON=ON. I
> > didn't capture any of the error messages, but it IIRC it was complaining
> > about not having some test utility. I eventually switched to -D
> > WITH_PYTHON=OFF and I was able to proceed. Is it possible that this is
> > related to not installing the GTEST/GMOCK packages?
> No this is not related to GTEST/GMOCK. When you enable python, the build
> system requires the python testing framework, which is not always
> installed by
> default and the package to install it from differs greatly from platform
> to
> platform. On fedora it's called python3-pytest I believe.
> Enjoy your freshly built gnucash :)
> Geert

More information about the gnucash-devel mailing list