[GNC-dev] Building on Windows

Sumit Bhardwaj bhardwajs at outlook.com
Tue Aug 27 00:28:13 EDT 2019

WSL would provide a Linux binary, not a Windows binary. Is that what you are thinking of building? I am also not sure how to get GUI running for WSL. (WSL is really good tool.)

MSVC clang support is improving fast. When I downloaded GnuCash source code, the challenge was missing dependencies. I haven't tried it after that, but I can try and report back.

-----Original Message-----
From: gnucash-devel <gnucash-devel-bounces+bhardwajs=outlook.com at gnucash.org> On Behalf Of John Ralls
Sent: Monday, August 26, 2019 09:33
To: Geert Janssens <geert.gnucash at kobaltwit.be>
Cc: gnucash-devel at gnucash.org; Matthew Forbis <mdforbis at forbii.com>
Subject: Re: [GNC-dev] Building on Windows

> On Aug 26, 2019, at 1:49 AM, Geert Janssens <geert.gnucash at kobaltwit.be> wrote:
> Op zaterdag 24 augustus 2019 19:40:06 CEST schreef Matthew Forbis:
>> I was running gnucash directly from the inst directory and not 
>> creating an installer first.  This explanation makes sense.
> There you go.
> It would be nice though to be able to run directly from the inst 
> directory while debugging as it saves time not having to recreate a 
> bundle for each iteration.
> Frankly I believe this shows how little actual development really 
> happens on Windows. Because of that the development experience is not 
> really optimized on that platform. With you actively doing so, it may 
> be helpful to share your experiences so we may make it more attractive 
> for other Windows oriented contributors.

Has anyone tried Windows Subsystem for Linux (https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fwsl%2Finstall-win10&data=02%7C01%7C%7C88908dd0227a45a5aae608d72a430bf7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637024339755320942&sdata=TSQl1pt%2B1XoY%2BP7MU%2BDFoneh4xUiiHZjypyf6YPJw%2Bk%3D&reserved=0)? That might be a less painful development environment for Windows users at least in the short term.

Longer term I think we need to figure out how to make GnuCash buildable in Visual Studio. Recent releases provide for a Clang toolchain as well as the standard MSVC++ one. We might be able to create a build environment combined with vcpkg (https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvcpkg&data=02%7C01%7C%7C88908dd0227a45a5aae608d72a430bf7%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637024339755320942&sdata=jnvhX6%2FizBe%2Fn5ERFcKGvs6WSjT1oZushJ%2BhHwhlQZY%3D&reserved=0) that would be more stable, offer a lower barrier to entry, and generate windows-understandable debug info.

John Ralls
gnucash-devel mailing list
gnucash-devel at gnucash.org

More information about the gnucash-devel mailing list