After I manually downloaded mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.sig and put it in gcdev64\msys2\var\cache\pacman\pkg to fix error: Maximum file size exceeded See https://github.com/msys2/MSYS2-packages/issues/942 Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\Users\goodc> e: PS E:\> cd .\data\GnuCash\gcdev64\ PS E:\data\GnuCash\gcdev64> .\setup-mingw64.ps1 -target_dir e:\Data\GnuCash\gcdev64 target_dir=e:\Data\GnuCash\gcdev64 download_dir=e:\Data\GnuCash\gcdev64\\downloads msys2_root=e:\Data\GnuCash\gcdev64\\msys2 x86_64=False preferred_mirror=http://repo.msys2.org get-item : Cannot find path 'HKCU:\SOFTWARE\Microsoft\HTML Help Workshop' because it does not exist. At E:\data\GnuCash\gcdev64\setup-mingw64.ps1:205 char:17 + ... talled_hh = get-item -path "hkcu:\SOFTWARE\Microsoft\HTML Help Worksh ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (HKCU:\SOFTWARE\...L Help Workshop:String) [Get-Item], ItemNotFoundExcep tion + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand Downloading e:\Data\GnuCash\gcdev64\\downloads\htmlhelp.exe from http://download.microsoft.com/download/0/a/9/0a939ef6-e31c-430f-a3df-dfae7960d564/htmlhelp.exe Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found." At E:\data\GnuCash\gcdev64\setup-mingw64.ps1:119 char:2 + (New-Object System.Net.WebClient).DownloadFile($url, "$download_f ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Installing e:\Data\GnuCash\gcdev64\\downloads\htmlhelp.exe Exception calling "Start" with "1" argument(s): "The system cannot find the file specified" At E:\data\GnuCash\gcdev64\setup-mingw64.ps1:126 char:5 + $proc = [Diagnostics.Process]::Start($psi) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : Win32Exception You cannot call a method on a null-valued expression. At E:\data\GnuCash\gcdev64\setup-mingw64.ps1:127 char:5 + $proc.waitForExit() + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Updating the installation. Accept the proposed changes. If the window doesn't close on its own then close it and re-run the script when it finishes. :: Synchronizing package databases... mingw32 1431.7 KiB 733 KiB/s 00:02 [#######################################] 100% mingw64 1438.6 KiB 501 KiB/s 00:03 [#######################################] 100% ucrt64 1571.7 KiB 672 KiB/s 00:02 [#######################################] 100% clang64 1479.8 KiB 467 KiB/s 00:03 [#######################################] 100% msys 372.7 KiB 178 KiB/s 00:02 [#######################################] 100% :: Starting core system upgrade... there is nothing to do :: Starting full system upgrade... :: Replace autoconf with msys/autoconf-wrapper? [Y/n] :: Replace pkg-config with msys/pkgconf? [Y/n] resolving dependencies... looking for conflicting packages... Packages (4) autoconf-2.71-3 [removal] autoconf-wrapper-15-1 pkg-config-0.29.2-4 [removal] pkgconf-1.8.0-1 Total Installed Size: 0.31 MiB Net Upgrade Size: -2.45 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [#######################################] 100% (2/2) checking package integrity [#######################################] 100% (2/2) loading package files [#######################################] 100% (2/2) checking for file conflicts [#######################################] 100% (4/4) checking available disk space [#######################################] 100% :: Running pre-transaction hooks... (1/1) Removing old entries from the info directory file... :: Processing package changes... (1/2) removing pkg-config [#######################################] 100% (2/2) removing autoconf [#######################################] 100% (1/2) installing autoconf-wrapper [#######################################] 100% (2/2) installing pkgconf [#######################################] 100% :: Synchronizing package databases... mingw32 1431.7 KiB 791 KiB/s 00:02 [#######################################] 100% mingw64 1438.6 KiB 513 KiB/s 00:03 [#######################################] 100% ucrt64 1571.7 KiB 722 KiB/s 00:02 [#######################################] 100% clang64 1479.8 KiB 823 KiB/s 00:02 [#######################################] 100% msys 372.7 KiB 304 KiB/s 00:01 [#######################################] 100% :: Starting core system upgrade... there is nothing to do :: Starting full system upgrade... there is nothing to do warning: asciidoc-9.1.1-1 is up to date -- skipping warning: autoconf2.13-2.13-5 is up to date -- skipping warning: autogen-5.18.16-3 is up to date -- skipping warning: automake-wrapper-11-4 is up to date -- skipping warning: bison-3.8.2-2 is up to date -- skipping warning: diffstat-1.64-1 is up to date -- skipping warning: diffutils-3.8-2 is up to date -- skipping warning: dos2unix-7.4.2-1 is up to date -- skipping warning: file-5.41-2 is up to date -- skipping warning: flex-2.6.4-2 is up to date -- skipping warning: gawk-5.1.0-2 is up to date -- skipping warning: gettext-0.21-1 is up to date -- skipping warning: gettext-devel-0.21-1 is up to date -- skipping warning: gperf-3.1-3 is up to date -- skipping warning: grep-1~3.0-3 is up to date -- skipping warning: groff-1.22.4-2 is up to date -- skipping warning: intltool-0.51.0-2 is up to date -- skipping warning: libtool-2.4.6-14 is up to date -- skipping warning: m4-1.4.19-2 is up to date -- skipping warning: make-4.3-3 is up to date -- skipping warning: man-db-2.9.4-1 is up to date -- skipping warning: pacman-6.0.1-9 is up to date -- skipping warning: pactoys-r55.8860e1f-1 is up to date -- skipping warning: patch-2.7.6-1 is up to date -- skipping warning: patchutils-0.4.2-2 is up to date -- skipping warning: perl-5.32.1-2 is up to date -- skipping warning: python-3.9.9-2 is up to date -- skipping warning: rsync-3.2.3-2 is up to date -- skipping warning: sed-4.8-2 is up to date -- skipping warning: texinfo-6.8-3 is up to date -- skipping warning: texinfo-tex-6.8-3 is up to date -- skipping warning: wget-1.21.2-1 is up to date -- skipping warning: xmlto-0.0.28-2 is up to date -- skipping warning: git-2.34.1-1 is up to date -- skipping warning: texinfo-6.8-3 is up to date -- skipping resolving dependencies... looking for conflicting packages... :: autoconf and autoconf-wrapper are in conflict. Remove autoconf-wrapper? [Y/n] :: pkg-config and pkgconf are in conflict. Remove pkgconf? [Y/n] Packages (4) autoconf-wrapper-15-1 [removal] pkgconf-1.8.0-1 [removal] autoconf-2.71-3 pkg-config-0.29.2-4 Total Installed Size: 2.76 MiB Net Upgrade Size: 2.45 MiB :: Proceed with installation? [Y/n] (2/2) checking keys in keyring [#######################################] 100% (2/2) checking package integrity [#######################################] 100% (2/2) loading package files [#######################################] 100% (2/2) checking for file conflicts [#######################################] 100% (4/4) checking available disk space [#######################################] 100% :: Processing package changes... (1/2) removing pkgconf [#######################################] 100% (2/2) removing autoconf-wrapper [#######################################] 100% (1/2) installing autoconf [#######################################] 100% (2/2) installing pkg-config [#######################################] 100% :: Running post-transaction hooks... (1/1) Updating the info directory file... warning: mingw-w64-i686-binutils-2.37-4 is up to date -- skipping warning: mingw-w64-i686-cmake-3.22.1-1 is up to date -- skipping warning: mingw-w64-i686-crt-git-9.0.0.6373.5be8fcd83-1 is up to date -- skipping warning: mingw-w64-i686-gcc-11.2.0-6 is up to date -- skipping warning: mingw-w64-i686-gcc-libs-11.2.0-6 is up to date -- skipping warning: mingw-w64-i686-gdb-11.1-2 is up to date -- skipping warning: mingw-w64-i686-headers-git-9.0.0.6373.5be8fcd83-1 is up to date -- skipping warning: mingw-w64-i686-libmangle-git-9.0.0.6373.5be8fcd83-1 is up to date -- skipping warning: mingw-w64-i686-libltdl-2.4.6-21 is up to date -- skipping warning: mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1 is up to date -- skipping warning: mingw-w64-i686-make-4.3-1 is up to date -- skipping warning: mingw-w64-i686-swig-4.0.2-3 is up to date -- skipping warning: mingw-w64-i686-tools-git-9.0.0.6373.5be8fcd83-1 is up to date -- skipping warning: mingw-w64-i686-winpthreads-git-9.0.0.6373.5be8fcd83-1 is up to date -- skipping resolving dependencies... looking for conflicting packages... :: mingw-w64-i686-pkg-config and mingw-w64-i686-pkgconf are in conflict. Remove mingw-w64-i686-pkgconf? [Y/n] error: failed to prepare transaction (could not satisfy dependencies) :: removing mingw-w64-i686-pkgconf breaks dependency 'mingw-w64-i686-pkgconf' required by mingw-w64-i686-cmake Now we'll install a pre-built webkitgtk3 package we've created and placed in the GnuCash project on SourceForge. It will install several more dependencies from Mingw-w64's repository. --2022-01-17 18:49:31-- https://downloads.sourceforge.net/gnucash/Dependencies/jralls_public_signing_key.asc Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 204.68.111.105 Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://versaweb.dl.sourceforge.net/project/gnucash/Dependencies/jralls_public_signing_key.asc [following] --2022-01-17 18:49:32-- https://versaweb.dl.sourceforge.net/project/gnucash/Dependencies/jralls_public_signing_key.asc Resolving versaweb.dl.sourceforge.net (versaweb.dl.sourceforge.net)... 162.251.232.173 Connecting to versaweb.dl.sourceforge.net (versaweb.dl.sourceforge.net)|162.251.232.173|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1806 (1.8K) [application/octet-stream] Saving to: 'jralls_public_signing_key.asc' jralls_public_signing_key.asc 100%[=================================================>] 1.76K --.-KB/s in 0s 2022-01-17 18:49:33 (420 MB/s) - 'jralls_public_signing_key.asc' saved [1806/1806] ==> Updating trust database... gpg: next trustdb check due at 2022-06-26 -> Locally signed 1 keys. ==> Updating trust database... gpg: next trustdb check due at 2022-06-26 loading packages... resolving dependencies... looking for conflicting packages... Packages (1) mingw-w64-i686-webkitgtk3-2.4.11-999.4 Total Installed Size: 36.67 MiB :: Proceed with installation? [Y/n] (1/1) checking keys in keyring [#######################################] 100% (1/1) checking package integrity [#######################################] 100% (1/1) loading package files [#######################################] 100% (1/1) checking for file conflicts [#######################################] 100% (1/1) checking available disk space [#######################################] 100% :: Processing package changes... (1/1) installing mingw-w64-i686-webkitgtk3 [#######################################] 100% Now we'll install the dependencies. Accept the installation as usual. About half-way through it will stop with a message about fontconfig. Just type "Return" at it and it will resume after a minute or two (be patient!) and complete the installation. warning: mingw-w64-i686-boost-1.78.0-1 is up to date -- skipping warning: mingw-w64-i686-icu-69.1-1 is up to date -- skipping warning: mingw-w64-i686-gtk3-3.24.31+56+g7e9935e381-1 is up to date -- skipping warning: mingw-w64-i686-iso-codes-4.9.0-1 is up to date -- skipping warning: mingw-w64-i686-shared-mime-info-2.1-4 is up to date -- skipping warning: mingw-w64-i686-libmariadbclient-3.1.12-1 is up to date -- skipping warning: mingw-w64-i686-libsoup-2.74.2-1 is up to date -- skipping warning: mingw-w64-i686-libwebp-1.2.1-1 is up to date -- skipping warning: mingw-w64-i686-postgresql-14.0-1 is up to date -- skipping warning: mingw-w64-i686-ninja-1.10.2-3 is up to date -- skipping warning: mingw-w64-i686-pdcurses-4.3.1-1 is up to date -- skipping warning: mingw-w64-i686-sqlite3-3.37.2-1 is up to date -- skipping warning: mingw-w64-i686-docbook-xsl-1.79.2-7 is up to date -- skipping there is nothing to do Next we'll install the HTML Help Workshop includes and libraries into our MinGW directory. get-item : Cannot find path 'HKCU:\SOFTWARE\Microsoft\HTML Help Workshop' because it does not exist. At E:\data\GnuCash\gcdev64\setup-mingw64.ps1:300 char:18 + ... talled_hh = get-item -path "hkcu:\SOFTWARE\Microsoft\HTML Help Worksh ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (HKCU:\SOFTWARE\...L Help Workshop:String) [Get-Item], ItemNotFoundExcep tion + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand ****** ERROR **** There was an error installing HTML Help Workshop. This will prevent building the documentation. If you didn't before, run setup-mingw64.ps1 in a PowerShell instance with Administrative priviledge. If you did that already, you may need to install HTML Help Workshop by hand. **************** HTML Help Workshop isn't correctly installed. Clone the gnucash-on-windows repository into the target source directory, patch jhbuild to disable its DESTDIR dance and set up jhbuildrc with our prefixes. Your build environment is now ready to use. Open an MSys2/mingw32 shell from the start menu, cd to /e/Data/GnuCash/gcdev64, and run jhbuild -f src/gnucash-on-windows.git/jhbuildrc build Note that the build will not work with the plain MSys2 shell!