[GNC-dev] Help with making changes on Windows maint
John Ralls
jralls at ceridwen.us
Sun Apr 22 10:07:58 EDT 2018
> On Apr 22, 2018, at 6:42 AM, Robert Fewell <14ubobit at gmail.com> wrote:
>
> Deleting the maint/inst/lib/gnucash directory did not fix it but what did was when you get the jhbuild menu after it fails, copying all the maint/build/bin files to maint/inst/bin and then I selected option 1 to rebuild.
>
> Had some time and with the changes made to gnc-main-window.c/h, at the failure all I needed to do was copy maint/build/bin/libgncmod-gnome-utils.dll to the maint/inst/bin directory and continue with the rebuild and all was OK.
>
> Not sure why at build time it is looking in the inst directory ?
Sorry, my brain-fart: On Windows the dlls are in bin, so the fallback (from uninstalling with install_manifest.txt) is to rm $PREFIX/bin/libgnc*. Copying the newly-built libs up to $PREFIX/bin will also ensure that the correct libs are used for compiling the scheme files.
The underlying problem is that Guile dlopens the foo.dll in response to a (use foo) and its built-in search path starts with $PREFIX/bin. This has been a problem since we started using Guile-2. While building itself, Guile uses a shell script, <builddir>/meta/build-env that prevents the problem; we may be able to fix this by adapting whatever it’s doing into GncAddSchemeTargets.cmake.
Regards,
John Ralls
More information about the gnucash-devel
mailing list