[GNC] installer build failure, libgnc-html The specified module could not be found, on MINGW32

Hai Liang Wang hailiang.hl.wang at gmail.com
Wed Aug 14 22:05:57 EDT 2024


Problem solved, fixed by adjust file:
gnucash\stable\src\gnucash-git\common\cmake_modules\GncAddSchemeTargets.cmake.

*      if(NOT MINGW64 OR ${GUILE_EFFECTIVE_VERSION} VERSION_LESS 2.2)*
*        make_unix_path_list(_GUILE_LOAD_PATH)*
*        make_unix_path_list(_GUILE_LOAD_COMPILED_PATH)*
*      elseif(MINGW64)*
*        make_unix_path_list(_GUILE_LOAD_PATH)*
*        make_unix_path_list(_GUILE_LOAD_COMPILED_PATH)*
*      endif()*


Previously, using `make_win32_path_list` make the paths are join with `;`,
but in the guile offical doc, it says,  *GUILE_LOAD_PATH's value should be
a colon-separated list of directories. *
https://www.gnu.org/software/guile/docs/docs-2.2/guile-ref/Environment-Variables.html#

Cheers.
Hai Liang W.


On Wed, Aug 14, 2024 at 3:58 PM Hai Liang Wang <hailiang.hl.wang at gmail.com>
wrote:

> Try to set GUILE_EXTENSIONS_PATH, but still not work.
>
> As the root case seems to be -
> *In procedure dynamic-link: file: "libgnc-html", message: "The specified
> module could not be found."*
>
> I find out GUILE_EXTENSIONS_PATH
> <https://www.gnu.org/software/guile/manual/html_node/Environment-Variables.html>is
> not set in the cmake guile compile command, So just append this
> GUILE_EXTENSIONS_PATH
> in gcdev64\gnucash\stable\src\gnucash-git\common\cmake_modules\GncAddSchemeTargets.cmake.
>
> And now, when the build runs, the cmake command is -
>
> *C:\WINDOWS\system32\cmd.exe /C "cd /D
> C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\html &&
> C:\gcdev64\msys2\mingw32\bin\cmake.exe -E env
> PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin\;C:/gcdev64/gnucash/stable/inst/bin\;C:/gcdev64/msys2/opt/miniconda3/envs/venv-py3/bin\;C:/gcdev64/scripts\;C:/gcdev64/msys2/mingw32/bin\;C:/gcdev64/msys2/usr/local/bin\;C:/gcdev64/msys2/usr/bin\;C:/gcdev64/msys2/usr/bin\;C:/Windows/System32\;C:/Windows\;C:/Windows/System32/Wbem\;C:/Windows/System32/WindowsPowerShell/v1.0\;C:/gcdev64/msys2/usr/bin/site_perl\;C:/gcdev64/msys2/usr/bin/vendor_perl\;C:/gcdev64/msys2/usr/bin/core_perl\;C:/gcdev64/msys2/mingw64/bin
> GNC_UNINSTALLED=YES
> GNC_BUILDDIR=C:/gcdev64/gnucash/stable/build/gnucash-git
> GUILE_LOAD_PATH=C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html/deprecated\;C:/gcdev64/gnucash/stable/inst/share/guile/2.2\;C:/gcdev64/gnucash/stable/build/gnucash-git/share/guile/site/2.2
> GUILE_LOAD_COMPILED_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/gnucash/html\;C:/gcdev64/gnucash/stable/inst/lib/guile/2.2/ccache\;C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache\;C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache/gnucash/deprecated
> GNC_MODULE_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin
> GUILE_EXTENSIONS_PATH=C:/gcdev64/gnucash/stable/build/gnucash-git/bin
> C:/gcdev64/gnucash/stable/inst/bin/guile -e "(@@ (guild) main)" -s
> C:/gcdev64/gnucash/stable/inst/bin/guild compile -o
> C:/gcdev64/gnucash/stable/build/gnucash-git/lib/guile/2.2/site-ccache/gnucash/html.go
> C:/gcdev64/gnucash/stable/src/gnucash-git/gnucash/html/html.scm"*
> ---
>
> But the same error happens.
> Look forward for some help, thanks.
>
> Full log is attached.
>
> Cheers.
> Hai Liang W.
>
>
> On Wed, Aug 14, 2024 at 2:29 PM Hai Liang Wang <hailiang.hl.wang at gmail.com>
> wrote:
>
>> hi, folks
>>
>> During build gnucash-git with `TARGET=gnucash-stable jhbuild -f jhbuildrc
>> build`, come to a problem.
>> Error trace below -
>>
>> *In unknown file:*
>>
>> *           1 (load-extension "libgnc-html" "scm_init_sw_gnc_html_mod�")*
>>
>> *In ice-9/boot-9.scm:*
>>
>> *   752:25  0 (dispatch-exception _ _ _)*
>>
>>
>>
>> *ice-9/boot-9.scm:752:25: In procedure dispatch-exception:*
>>
>> *In procedure dynamic-link: file: "libgnc-html", message: "The specified
>> module could not be found."*
>>
>> *[39/333] Building C object
>> gnucash/gnome/CMakeFiles/gnc-gnome.dir/assistant-acct-period.c.obj*
>>
>> ---
>>
>> Now, I can find the module* libgnc-html.dll *
>> in C:\gcdev64\gnucash\stable\build\gnucash-git\bin
>> And *libgnc-html.dll.a*
>> in C:\gcdev64\gnucash\stable\build\gnucash-git\gnucash\html
>>
>> How to fix this `*The specified module could not be found.*` ?
>>
>> Please help, thanks.
>>
>> Attached the full log.
>>
>>
>>
>> Cheers.
>> Hai Liang W.
>>
>


More information about the gnucash-user mailing list