Gnucash-git build problems on MacoSX/Quartz

John Ralls jralls at ceridwen.us
Tue Mar 7 17:05:58 EST 2017


> On Mar 7, 2017, at 1:07 PM, Christoph R <subscriptions+listen at rohland.net> wrote:
> 
> Hi John and others,
> 
> I am trying to get the master branch to compile for a week now without real success.
> 
> jhbuild builds most packages fine. 
> 
> here are the manual steps I have done:
> I patched guile to not use clock_getcpuclockid; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23870 <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23870>
> I had to build boost with "./b2 address-model=32 architecture=x86” to get a i386 build instead of a 64 bit build
> Several modules choked on git dirty trees, which I fixed with "git reset --hard HEAD”
> 
> But the final build of gnucash-git fails with:
> "ce-9/boot-9.scm:109:20: In procedure dynamic-link: file: "libtest-core-guile", message: "file not found"
> make[3]: *** [unittest-support.go] Error 1”
> 
> I can get around this with calling “make -i”. This will build a gnucash binary. 
> When starting this it fails with “dyld: Library not loaded: libboost_regex.dylib”.
> When starting it with “DYLD_FALLBACK_LIBRARY_PATH=~/gnucash-unstable/lib ./gnucash-unstable/bin/gnucash” gnucash is starting fine and compiling all the scheme files.
> 
> Calling make with “DYLD_PRINT_LIBRARIES=1” does not show anything.
> John, you mentioned to build libtool with LD_DEBUG_LOADERS. How do I do that?
> 
> Any help is appreciated!


LT_DEBUG_LOADERS, not LD...
In a jhbuild shell cd to $PREFIX/src/libtool-2.4.6 and run
  ./configure --prefix $PREFIX CFLAGS="$CFLAGS -DLT_DEBUG_LOADERS" && make clean && make && make install

The boost build parameters are in a comment just before the boost module in gnucash.modules. Note that that comment also says that you must run install_name_tool on the result; the full command is in the modules. That fixes the rpaths in the boost libraries so that they'll link without having to set any of the ld flags. You'll need to re-link gnucash and all of its modules afterwards.

Regards,
John Ralls



More information about the gnucash-devel mailing list