Build problems after r19920
Mike Alexander
mta at umich.edu
Sat Dec 11 22:15:44 EST 2010
SVN version r19920 introduced a couple of build problems. This changed
made src/core-utils/gnc-main.c include "gnome-utils/gnc-version.h".
This works only if the build directory is the source directory. I
normally build in a separate build directory parallel to the source
directory. That way I can have both a debug and optimized build and I
can start over from scratch by just blowing away the build directory
(or moving it aside).
This problem can be fixed by changing the include to just
"gnc-version.h" and adding -I${top_builddir}/src/gnome-utils to
AM_CPPFLAGS in core-utils/Makefile.am, but then you hit another problem
that I'm not sure how to fix. The problem is that gnc-version.h is
built by gnome-utils/Makefile.am, but core-utils is built before
gnome-utils. This means that if you build from scratch gnc-main.c
tries to include it before it exists.
Something needs to get rearranged. You can't really move
gnc_get_svn_version to gnome-utils since it needs to be available in a
non-GUI build. I don't know what would happen if you tried to build
gnome-utils before core-utils, but I suspect it wouldn't work.
Mike
More information about the gnucash-devel
mailing list