<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Russ,<div><br></div><div>Yeah, open a MinGW32 shell and start a jhbuild shell from the gnucash-on-windows directory:</div><div>  TARGET=gnucash-stable jhbuild -f jhbuildrc shell</div><div>That sets up the environment for building directly. Then you can</div><div>   cd $PREFIX/../build/gnucash-git</div><div>And work as you normally would. There’s one catch: We don’t routinely run the test suite in Windows and I have no idea whether all of the tests work. If they don’t that will lead to some frustration because you’ll have to rely on Github’s CI to do the testing for you.</div><div><br></div><div>Note that the MinGW shell is Bash, not CMD or Powershell. C: turns into /c, the path separator is / not \, and line editing is GNU Readline.</div><div><br></div><div>Regards,</div><div>John Ralls</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Apr 2, 2025, at 07:12, <russ.gorby@gmail.com> <russ.gorby@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta charset="UTF-8"><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">So, after jhbuild completes successfully, is there a trick to getting cmake to build the gnucash.git module directly?<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I’m thinking that would be better way to build for the change/build/test cycle.<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I’m trying to run the cmake Ninja generator and have grabbed the cmakeargs specified from gnucash.modules for gnucash-git but that is not sufficient because it can’t find the guild/guile executables.<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">Discovered that the $ENV{PATH} did not contain the …/stable/inst/bin location where they live but even fixing that did not resolve the problem of find_program() not finding them, so there must be something more meta going on.<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;">I’d like to run the cmake generator, and build phases directly<o:p></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></span></div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(225, 225, 225) currentcolor currentcolor; border-image: none; padding: 3pt 0in 0in;"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><b><span style="font-size: 11pt; font-family: Calibri, sans-serif;">From:</span></b><span style="font-size: 11pt; font-family: Calibri, sans-serif;"><span class="Apple-converted-space"> </span>gnucash-devel <gnucash-devel-bounces+russ.gorby=gmail.com@gnucash.org><span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Robert Fewell<br><b>Sent:</b><span class="Apple-converted-space"> </span>Wednesday, March 26, 2025 6:03 AM<br><b>To:</b><span class="Apple-converted-space"> </span>gnucash-devel <gnucash-devel@gnucash.org><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: GnuCash Windows Build Help<o:p></o:p></span></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">I have fixed the two issues I had and have updated my changes here...<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><a href="https://github.com/Bob-IT/gnucash-on-windows/tree/changes" target="_blank" style="color: blue; text-decoration: underline;">https://github.com/Bob-IT/gnucash-on-windows/tree/changes</a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">If you want to try it before it is possibly uploaded then do the following...<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Grab setup-mingw64.ps1 from my changes branch and add a 'pause' statement between lines 392 and 393<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Run the script and when you get to the pause, get the other files I have updated and replace the ones installed in 'gnucash-on-windows.git'<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Press enter to continue the script and when finished you should have a valid Msys2 build environment.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Now just follow the rest of the instructions on building Gnucash and hopefully it will work.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">This environment is set up to work with 'webkitgtk3-2.4.11-999.51' version and when tested, reports could be opened along with charts.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">I did try the 'webkitgtk3-2.4.11-999.6' version which seemed to work in this environment but charts fail so maybe I have missed a dependency.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">There is one more version, 'webkitgtk3-2.4.11-999.7' but the file size is way bigger than previous versions so not sure if it is correct.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Regards,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Robert<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">On Mon, 24 Mar 2025 at 10:32, Robert Fewell <<a href="mailto:14ubobit@gmail.com" style="color: blue; text-decoration: underline;">14ubobit@gmail.com</a>> wrote:<o:p></o:p></div></div><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(204, 204, 204); border-image: none; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" type="cite"><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">I have managed to get a build and install for a current version of the Msys2 install but have two problems to fix.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">The first is "OpenSP" does not build, fails on the PO directory I think.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">The second is that a patch for "bdw-gc" is not automatically being applied, to get round this I have deliberately misspelt the file name in gnucash.modules which allows me to drop to a shell and apply it manually and then continue.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">To get round the "OpenSP" build failure for testing I copied a working "OpenSP" "src" and "build" directory when the build failed and then just rerun the build phase.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">My changes are here,<span class="Apple-converted-space"> </span><a href="https://github.com/Bob-IT/gnucash-on-windows/tree/changes" target="_blank" style="color: blue; text-decoration: underline;">https://github.com/Bob-IT/gnucash-on-windows/tree/changes</a><o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">For the "OpenSP" build failure, there must be an updated Msys2 file/environment change but at the moment I can not see it, the following is the failure.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Making all in generic<br>make[2]: Entering directory '/c/gcdev64/gnucash/stable/build/OpenSP-1.5.2/generic'<br>make[2]: Nothing to be done for 'all'.<br>make[2]: Leaving directory '/c/gcdev64/gnucash/stable/build/OpenSP-1.5.2/generic'<br>Making all in po<br>make[2]: Entering directory '/c/gcdev64/gnucash/stable/build/OpenSP-1.5.2/po'<br>make[2]: *** No rule to make target '/config.status', needed by 'Makefile'.  Stop.<br>make[2]: Leaving directory '/c/gcdev64/gnucash/stable/build/OpenSP-1.5.2/po'<br>make[1]: *** [Makefile:544: all-recursive] Error 1<br>make[1]: Leaving directory '/c/gcdev64/gnucash/stable/build/OpenSP-1.5.2'<br>make: *** [Makefile:428: all] Error 2<br>*** Error during phase build of OpenSP: ########## Error running make -j 13  *** [1/12]<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">For information, I tried doing the complete build on my September 2024 Msys2 setup and it all worked and that was with an updated gnucash-on-windows and jhbuild directory.<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Regards,<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Robert<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">On Thu, 20 Mar 2025 at 21:41, flywire <<a href="mailto:flywire0@gmail.com" target="_blank" style="color: blue; text-decoration: underline;">flywire0@gmail.com</a>> wrote:<o:p></o:p></div></div><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(204, 204, 204); border-image: none; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" type="cite"><div><div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><a href="https://www.gnucash.org/docs/v5/C/gnucash-guide/ch_python_bindings.html" target="_blank" style="color: blue; text-decoration: underline;">https://www.gnucash.org/docs/v5/C/gnucash-guide/ch_python_bindings.html</a> <o:p></o:p></div></div><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(204, 204, 204); border-image: none; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" type="cite"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Starting with GnuCash version 2.4 you can write Python scripts to manipulate your financial data.<o:p></o:p></div></blockquote><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(204, 204, 204); border-image: none; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" type="cite"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> <o:p></o:p></div></blockquote><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(204, 204, 204); border-image: none; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" type="cite"><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"> Important<br>The Python extensions are an optional feature which creates additional dependencies. To be able to use Python scripts, GnuCash must have been built with the cmake -DWITH_PYTHON=ON … option enabled, otherwise all what follows won’t work. At present this option is not enabled by default, so if you need this, you may have to compile GnuCash from source yourself. But some distributions offer it also as a separate package with a name like python[version]-GnuCash<o:p></o:p></div></blockquote><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">There are GnuCash Windows users who want to use the Python bindings which hasn't really been possible since you removed them from the distribution. Most users just want access to the binaries and don't care how they are created though some (including myself) would like to build them if the process was reasonable. (A GitHub workflow would be terrific.)<o:p></o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div></div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Regards<o:p></o:p></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">On Wed, 19 Mar 2025 at 14:00, John Ralls <<a href="mailto:jralls@ceridwen.us" target="_blank" style="color: blue; text-decoration: underline;">jralls@ceridwen.us</a>> wrote:<o:p></o:p></div></div><blockquote style="border-width: medium medium medium 1pt; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(204, 204, 204); border-image: none; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" type="cite"><div><div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">Have you considered setting up a Linux build environment instead? You can install your distro of choice in the Windows Subsystem for Linux (aka WSL). Many of them have a package manager target similar to Debian/Ubuntu’s `apt build-dep gnucash` that sets up everything you need except a code editor. It’s much less frustrating than the MinGW64 environment.<o:p></o:p></div></div></div></blockquote></div></div></div></div><div style="margin: 0in; font-size: 12pt; font-family: Aptos, sans-serif;">_______________________________________________<br>gnucash-devel mailing list<br><a href="mailto:gnucash-devel@gnucash.org" target="_blank" style="color: blue; text-decoration: underline;">gnucash-devel@gnucash.org</a><br><a href="https://lists.gnucash.org/mailman/listinfo/gnucash-devel" target="_blank" style="color: blue; text-decoration: underline;">https://lists.gnucash.org/mailman/listinfo/gnucash-devel</a><o:p></o:p></div></blockquote></div></blockquote></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">gnucash-devel mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">gnucash-devel@gnucash.org</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">https://lists.gnucash.org/mailman/listinfo/gnucash-devel</span></div></blockquote></div><br></div></div></body></html>