[GNC-dev] Windows Build VM
Manfred Usselmann
manfred at usselmann.de
Mon Nov 6 19:12:29 EST 2023
Hi John,
Am 2023-11-06 19:31, schrieb john:
>> On Nov 6, 2023, at 05:11, Manfred Usselmann <manfred at usselmann.de>
>> wrote:
>>
>> Hi,
>>
>> Am 2023-10-01 17:47, schrieb john:
>>>> On Oct 1, 2023, at 06:00, Derek Atkins <derek at ihtfp.com> wrote:
>>>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>>>> John wrote:
>>>>>> we don't have a Windows CI action, the nightly builds are done
>>>>>> with the
>>>>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts
>>>>>> on a
>>>>>> Windows VM in Derek's basement.
>>
>> The nightly builds are those on
>> https://code.gnucash.org/builds/win32/stable/, right?
>>
>> Would it be possible to additonally provide a version there which
>> includes the Python bindings?
>
> No, there's no way to make that work with an installed package.
>
>>
>> Since there already exists a working build environment, I would hope
>> that it's not too much work?
>
> That depends on what you want to use for your Python. If you can use
> the MSYS2 environment from Powershell (some MSYS2 things work directly
> in Powershell, others need a Bash shell) then you can simply add
> -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run
> the installer, just add
> c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to
> PYTHONPATH and run your scripts.
>
> If the MSYS2 python doesn't work for you then you'll need to fiddle
> with paths and such so that CMake finds the python libraries that you
> want it to. You must make sure that everything Python is linked to the
> same Python installation.
Thanks, this sounds promising.
Results so far:
- I had to set-executionpolicy Unrestricted.
- I had to add libgcrypt to setup-mngw54.ps1
- How do I add -DWITH_PYTHON=ON to jhbuildrc?
append_autogenargs("gnucash", "-DWITH_PYTHON=ON") ?
- configure OpenSP fails:
checking build system type... Invalid configuration
`x86_64-w64-mingw64': system `mingw64' not recognized
configure: error: /bin/sh
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/config.sub
x86_64-w64-mingw64 failed
*** Error during phase configure of OpenSP: ########## Error running
/bin/bash -c "pushd
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2
&& ./autoinit.sh && popd &&
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/OpenSP-1.5.2/configure
--prefix /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst
--disable-Werror --disable-static --enable-shared --disable-doc-build
--disable-nls --build=x86_64-w64-mingw64" *** [1/14]
Regards,
Manfred
More information about the gnucash-devel
mailing list