Build and run in separate directory
Derek Atkins
warlord at MIT.EDU
Thu Feb 9 09:59:49 EST 2006
Mike Alexander <mta at umich.edu> writes:
> --On February 8, 2006 9:45:40 AM -0500 Derek Atkins <warlord at MIT.EDU>
> wrote:
>
>> I'm not sure what SVN revision you're trying, but you can very well
>> /build/ gnucash in another build directory. I admit that I haven't
>> tried running it out of a separate build directory.
>
> I think it may work ok if the build directory is a sibling of the
> source directory. However there is a problem in intl-scm/Makefile.am
> if the build directory is not a sibling of the source directory. In my
> case I have some existing build tools that want the source directory at
> /tools/gnucash-1.9/gnucash-1.9 and the build directory at
> /tools/gnucash-1.9/build/darwin (one level deeper). It builds a list
> of SCM files in one directory and then tries to use the list in another
> and the relative path names in the list are not valid.
In the distcheck the builddir is a a child of the source tree, not a
sibling. In particular when I run distcheck I run it from
$HOME/src/gnucash-svn/test/ which is the svn checkout source tree,
$HOME/src/gnucash-svn/test/gnucash-1.9.0 gets created as the
distribution source tree, and then
$HOME/src/gnucash-svn/test/gnucash-1.9.0/_build is the build directory
building off of gnucash-1.9.0 sources. This obviously works fine
because distcheck works.
> I also got lots of compile errors because it couldn't find qofla-dir.h
> in ${top_builddir}/lib/libqof/qof until I changed QOF_CFLAGS in
> configure.in to search that directory. This might have been fixed in
> svn or it might be another artifact of my unusual setup.
Hmm... I have no idea why this would work in distcheck either if it
were a "real" issue. I would assume that distcheck would fail to find
this header as well.
You didn't specify which SVN revision you tried. Also, could you try
the 1.9.0 test release?
> All of the other changes were related to running, not building. I
> don't really care about these patches much. If you want them, fine.
> If you don't, so be it. I had them so I decided to send them.
Thanks. I guess there IS precedent for this elsewhere in the code
already, so... I'll take a look.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list