building master

Alex Aycinena alex.aycinena at gmail.com
Sun Apr 23 19:57:14 EDT 2017


> ---------- Forwarded message ----------
> From: John Ralls <jralls at ceridwen.us>
> To: Alex Aycinena <alex.aycinena at gmail.com>
> Cc: gnucash-devel <gnucash-devel at gnucash.org>
> Bcc:
> Date: Sat, 22 Apr 2017 16:48:05 -0700
> Subject: Re: building master
>
> > On Apr 22, 2017, at 3:47 PM, Alex Aycinena <alex.aycinena at gmail.com>
> wrote:
> >
> >>
>
> <clip>

> So to switch to using cmake with ninja, I installed cmake (which installed
> > cmake-data and jsoncpp, as well) and ninja-build (on Fedora). But from
> your
> > note, it was still unclear to me how to use them. Up to now, I have had
> two
> > parallel directories, for example, gnucash-clean, where the source is
> > checked out to, and gnucash-clean-build, where I build. Then I would:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean
> > $ git pull
> > $ ./autogen.sh
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ rm -rf *
> > $ ../gnucash-clean/configure
> > --srcdir=/home/gnucash-dev/gitcheckouts/gnucash-clean
> > --prefix=/opt/gnucash-git/gnucash-clean --enable-debug --enable-doxygen
> > --enable-error-on-warning --enable-compile-warnings=yes
> > --with-dbi-dbd-dir=/usr/lib64/dbd --enable-ofx --enable-aqbanking
> > --enable-locale-specific-tax --enable-python
> > $ make
> > $ make check
> >
> > Then after switching to root:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ make install
> >
> > So now I tried instead:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean
> > $ git pull
> > $ ./autogen.sh   <-- still needed I assumed?
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ rm -rf *
> > cmake -D WITH_PYTHON=ON \
> > -D CMAKE_INSTALL_PREFIX=/opt/gnucash-git/gnucash-clean \
> > -D CMAKE_BUILD_TYPE=Debug \
> > -D WITH_AQBANKING=ON -G Ninja \
> >  /home/gnucash-dev/gitcheckouts/gnucash-clean
> > $ ninja-build
> >
> > It was working away until it stopped with:
> >
> > [166/962] cd
> > /home/gnucash-dev/gitchec...ean/src/doc/design/gnucash-design.texi
> > FAILED: src/doc/design/CMakeFiles/gnucash-design.texi
> > cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build/src/doc/design &&
> > makeinfo -I
> > /home/gnucash-dev/gitcheckouts/gnucash-clean-build/src/doc/design
> > /home/gnucash-dev/gitcheckouts/gnucash-clean/
> src/doc/design/gnucash-design.texi
> > /bin/sh: makeinfo: command not found
> > [168/962] Building CXX object
> > src/libq...Files/gnc-qof.dir/qof/qofsession.cpp.o
> > ninja: build stopped: subcommand failed.
> >
> > Feedback would be welcome.
> >
> > I assume once I get a clean build, then I would:
> >
> > $ ninja-build check
> >
> > Then after switching to root:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ ninja-build install
> >
> > Also, what happens to these other configure options I would previously
> set:
> >
> > --enable-doxygen
> > --enable-error-on-warning
> > --enable-compile-warnings=yes
> > --with-dbi-dbd-dir=/usr/lib64/dbd
> > --enable-ofx (I see in CMakeCache.txt that WITH_OFX:BOOL=ON even though I
> > didn't specify it)
> > --enable-locale-specific-tax
>
> Alex,
>
> See https://github.com/Gnucash/gnucash/blob/master/cmake/README_CMAKE.txt.
>
> You don't need or want to autogen. That's autotools and CMake doesn't use
> any of that stuff.
> Pretty much everything is on by default so generally no build options need
> to be set.
>
> The failure suggests that you might not have texinfo installed. We should
> probably just turn off building the obsolete texi files anyway and think
> about removing them.
>
> Regards,
> John Ralls
>
>
>
>
> ---------- Forwarded message ----------
> From: Geert Janssens <geert.gnucash at kobaltwit.be>
> To: gnucash-devel at gnucash.org
> Cc: John Ralls <jralls at ceridwen.us>, Alex Aycinena <
> alex.aycinena at gmail.com>
> Bcc:
> Date: Sun, 23 Apr 2017 12:25:56 +0200
> Subject: Re: building master
> On zondag 23 april 2017 01:48:05 CEST John Ralls wrote:
> > See https://github.com/Gnucash/gnucash/blob/master/cmake/
> README_CMAKE.txt.
> >
>
> Ah, that was the link I should have passed to Wm as well... Thanks for
> referring to it.
>
> Geert
>

John and Geert,

Thanks for the help. I installed texinfo and followed your other
suggestions and got a clean build and check with cmake and ninja so now I'm
back in business.

Alex


More information about the gnucash-devel mailing list