Re: [GNC-dev] Windows Build VM

2023-11-11 Thread john



> On Nov 11, 2023, at 17:47, Manfred Usselmann  wrote:
> 
> Am 2023-11-11 18:46, schrieb john:
>>> On Nov 11, 2023, at 04:18, Manfred Usselmann  wrote:
>>> # Next issue:
>>> # 
>>> ---
>>> *** Checking out gnucash-git *** [12/14]
>>> [...]
>>> CMake Error at CMakeLists.txt:345 (message):
>>> Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't run
>>> without one of them.  Ensure that one is installed and can be found with
>>> pkg-config.
>>> -- Configuring incomplete, errors occurred!
>>> *** Error during phase configure of gnucash-git: ## Error running 
>>> cmake 
>>> -DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst
>>>  -DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
>>> -DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
>>> -DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
>>> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git *** 
>>> [12/14]
>>> # 
>>> ---
>>> Not sure what this one is. I believe there was already a long running build 
>>> of guile2.
>>> *** Checking out guile2 *** [10/14]
>>> *** Skipping guile2 (package and dependencies not updated) *** [10/14]
>>> Any hint for me?
>> You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. 
>> WebKit is a long-running sore point. MSYS2 periodically updates one of the 
>> webkit dependencies and I have to build another one, a process that can take 
>> several days. Another wrinkle is that Derek's windows VM and my windows VM 
>> sometimes diverge. Getting them back is another manual process that I have 
>> to make time to do carefully so as not to break the nightly builds; keeping 
>> those working is the top priority for gnucash-on-windows.
> 
> Completely understandable.
> 
>> With a new installation you're likely out of sync with both of those 
>> reference MSYS2 installations. Having a mismatch will cause link errors with 
>> libgnc-html.dll.
> 
> We'll see...
> 
> 
>> For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if it 
>> does make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.
> 
> It does.
> 
> $ pkg-config --list-all
> aqbanking  AqBanking - A library for online banking 
> functions and financial data import/export
> atomic_ops The atomic_ops library - Atomic memory update 
> operations portable implementation
> bdw-gc Boehm-Demers-Weiser Conservative Garbage 
> Collector - A garbage collector for C and C++
> guile-2.2  GNU Guile - GNU's Ubiquitous Intelligent 
> Language for Extension
> [...]0
> 
> But for cmake / pkg_check_modules only the packages from 
> gcdev64/msys2/mingw32/lib/pkgconfig are visible.
> 
> Strange...

Dunno if it's strange. jhbuildrc should add $PREFIX/lib/pkgconfig/ to 
PKG_CONFIG_PATH. Maybe that's gotten messed up?

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-11 Thread john



> On Nov 11, 2023, at 04:18, Manfred Usselmann  wrote:
> 
> Am 2023-11-10 10:26, schrieb Manfred Usselmann:
>> Am 2023-11-10 08:40, schrieb Manfred Usselmann:
>>> I have opened a ticket since this looks like a jhbuild issue for me:
>>> https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290
>> It's just a simple typo, see 
>> https://gitlab.gnome.org/GNOME/jhbuild/-/merge_requests/137
> 
> Still not finished with the build, fixing one issue after the other.
> 
> --   Package 'webkitgtk-3.0', required by 'virtual:world', not found
> 
> Reason: The provided webkitgtk3 package does not get installed:
> 
> # First run of setup-wingw64.ps1:
> # 
> ---
> :: Retrieving packages...
> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any8.1 MiB   475 KiB/s 00:17 
> [###] 100%
> error: failed retrieving file 
> 'mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.sig' from 
> master.dl.sourceforge.net : Maximum file size exceeded
> warning: failed to retrieve some files
> # 
> ---
> 
> # Second run:
> # 
> ---
> loading packages...
> error: 
> '/var/cache/pacman/pkg/mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst':
>  package missing required signature
> # 
> ---
> 
> I fixed this by manually downloading 
> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.
> 
> I noticed there is also a -999.5 package. Should that be used instead of the 
> -999.4 one?
> 
> # Next issue:
> # 
> ---
> *** Checking out gnucash-git *** [12/14]
> 
> [...]
> 
> CMake Error at CMakeLists.txt:345 (message):
>  Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't run
>  without one of them.  Ensure that one is installed and can be found with
>  pkg-config.
> 
> 
> -- Configuring incomplete, errors occurred!
> *** Error during phase configure of gnucash-git: ## Error running 
> cmake 
> -DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst
>  -DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
> -DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
> -DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git *** 
> [12/14]
> # 
> ---
> 
> Not sure what this one is. I believe there was already a long running build 
> of guile2.
> 
> *** Checking out guile2 *** [10/14]
> *** Skipping guile2 (package and dependencies not updated) *** [10/14]
> 
> Any hint for me?

You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. WebKit 
is a long-running sore point. MSYS2 periodically updates one of the webkit 
dependencies and I have to build another one, a process that can take several 
days. Another wrinkle is that Derek's windows VM and my windows VM sometimes 
diverge. Getting them back is another manual process that I have to make time 
to do carefully so as not to break the nightly builds; keeping those working is 
the top priority for gnucash-on-windows. With a new installation you're likely 
out of sync with both of those reference MSYS2 installations. Having a mismatch 
will cause link errors with libgnc-html.dll.

For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if it does 
make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.

Regards,
John Ralls



___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-11 Thread Sherlock
On Nov 11, 2023, at 12:46, John  wrote:
> 
>> 
>> On Nov 11, 2023, at 04:18, Manfred Usselmann  wrote:
>> 
>> Am 2023-11-10 10:26, schrieb Manfred Usselmann:
>>> Am 2023-11-10 08:40, schrieb Manfred Usselmann:
 I have opened a ticket since this looks like a jhbuild issue for me:
 https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290
>>> It's just a simple typo, see 
>>> https://gitlab.gnome.org/GNOME/jhbuild/-/merge_requests/137
>> 
>> Still not finished with the build, fixing one issue after the other.
>> 
>> -- Package 'webkitgtk-3.0', required by 'virtual:world', not found
>> 
>> Reason: The provided webkitgtk3 package does not get installed:
>> 
>> # First run of setup-wingw64.ps1:
>> # 
>> ---
>> :: Retrieving packages...
>> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any 8.1 MiB 475 KiB/s 00:17 
>> [###] 100%
>> error: failed retrieving file 
>> 'mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.sig' from 
>> master.dl.sourceforge.net : Maximum file size exceeded
>> warning: failed to retrieve some files
>> # 
>> ---
>> 
>> # Second run:
>> # 
>> ---
>> loading packages...
>> error: 
>> '/var/cache/pacman/pkg/mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst':
>>  package missing required signature
>> # 
>> ---
>> 
>> I fixed this by manually downloading 
>> mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.
>> 
>> I noticed there is also a -999.5 package. Should that be used instead of the 
>> -999.4 one?
>> 
>> # Next issue:
>> # 
>> ---
>> *** Checking out gnucash-git *** [12/14]
>> 
>> [...]
>> 
>> CMake Error at CMakeLists.txt:345 (message):
>> Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't run
>> without one of them. Ensure that one is installed and can be found with
>> pkg-config.
>> 
>> 
>> -- Configuring incomplete, errors occurred!
>> *** Error during phase configure of gnucash-git: ## Error running 
>> cmake 
>> -DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst
>>  -DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
>> -DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
>> -DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug 
>> /C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git *** 
>> [12/14]
>> # 
>> ---
>> 
>> Not sure what this one is. I believe there was already a long running build 
>> of guile2.
>> 
>> *** Checking out guile2 *** [10/14]
>> *** Skipping guile2 (package and dependencies not updated) *** [10/14]
>> 
>> Any hint for me?
> 
> You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. WebKit 
> is a long-running sore point. MSYS2 periodically updates one of the webkit 
> dependencies and I have to build another one, a process that can take several 
> days. Another wrinkle is that Derek's windows VM and my windows VM sometimes 
> diverge. Getting them back is another manual process that I have to make time 
> to do carefully so as not to break the nightly builds; keeping those working 
> is the top priority for gnucash-on-windows. With a new installation you're 
> likely out of sync with both of those reference MSYS2 installations. Having a 
> mismatch will cause link errors with libgnc-html.dll.
> 
> For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if it 
> does make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.
> 
> Regards,
> John Ralls


For what it may be worth, I have been successful building and packaging GnuCash 
5.4 on Windows 10 with mingw-w64-i686-webkitgtk3-2.4.11-999.5-any in a recent 
(2023-07-18) MSYS2 MINGW32 environment. 

1. Missing gcrypt

pacman -S mingw-w64-i686-libgcrypt --noconfirm --needed


2. Missing xmlsec1

pacman -S mingw-w64-i686-xmlsec --noconfirm --needed


3. Install the latest mingw-w64-i686-webkitgtk3 and the versions of it's 
dependencies:

cd /c/gcdev64/msys2/var/cache/pacman/pkg/
wget 
https://downloads.sourceforge.net/gnucash/Dependencies/jralls_public_signing_key.asc
pacman-key --add jralls_public_signing_key.asc
pacman-key --lsign C1F4DE993CF5835F
wget 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
wget 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst.sig
pacman -U 
https://sourceforge.net/projects/gnucash/files/Dependencies/mingw-w64-i686-webkitgtk3-2.4.11-999.5-any.pkg.tar.zst
 --noconfirm --needed
wget 

Re: [GNC-dev] Windows Build VM

2023-11-11 Thread Manfred Usselmann

Am 2023-11-11 18:46, schrieb john:
On Nov 11, 2023, at 04:18, Manfred Usselmann  
wrote:


# Next issue:
# 
---

*** Checking out gnucash-git *** [12/14]

[...]

CMake Error at CMakeLists.txt:345 (message):
 Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't 
run
 without one of them.  Ensure that one is installed and can be found 
with

 pkg-config.


-- Configuring incomplete, errors occurred!
*** Error during phase configure of gnucash-git: ## Error 
running cmake 
-DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst 
-DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
-DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
-DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git 
*** [12/14]
# 
---


Not sure what this one is. I believe there was already a long running 
build of guile2.


*** Checking out guile2 *** [10/14]
*** Skipping guile2 (package and dependencies not updated) *** [10/14]

Any hint for me?


You probably need at least mingw-w64-i686-webkitgtk3-2.4.11-999.5-any. 
WebKit is a long-running sore point. MSYS2 periodically updates one of 
the webkit dependencies and I have to build another one, a process that 
can take several days. Another wrinkle is that Derek's windows VM and 
my windows VM sometimes diverge. Getting them back is another manual 
process that I have to make time to do carefully so as not to break the 
nightly builds; keeping those working is the top priority for 
gnucash-on-windows.


Completely understandable.

With a new installation you're likely out of sync with both of those 
reference MSYS2 installations. Having a mismatch will cause link errors 
with libgnc-html.dll.


We'll see...




For guile, make sure that $PREFIX/lib/pkgconfig/guile-2.2.pc exists; if 
it does make sure that PKG_CONFIG_PATH contains $PREFIX/lib/pkgconfig.


It does.

$ pkg-config --list-all
aqbanking  AqBanking - A library for online banking 
functions and financial data import/export
atomic_ops The atomic_ops library - Atomic memory 
update operations portable implementation
bdw-gc Boehm-Demers-Weiser Conservative Garbage 
Collector - A garbage collector for C and C++
guile-2.2  GNU Guile - GNU's Ubiquitous Intelligent 
Language for Extension

[...]0

But for cmake / pkg_check_modules only the packages from 
gcdev64/msys2/mingw32/lib/pkgconfig are visible.


Strange...

Regards,
Manfred
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: [GNC-dev] Windows Build VM

2023-11-11 Thread Manfred Usselmann

Am 2023-11-10 10:26, schrieb Manfred Usselmann:

Am 2023-11-10 08:40, schrieb Manfred Usselmann:


I have opened a ticket since this looks like a jhbuild issue for me:

https://gitlab.gnome.org/GNOME/jhbuild/-/issues/290



It's just a simple typo, see 
https://gitlab.gnome.org/GNOME/jhbuild/-/merge_requests/137




Still not finished with the build, fixing one issue after the other.

--   Package 'webkitgtk-3.0', required by 'virtual:world', not found

Reason: The provided webkitgtk3 package does not get installed:

# First run of setup-wingw64.ps1:
# 
---

:: Retrieving packages...
 mingw-w64-i686-webkitgtk3-2.4.11-999.4-any8.1 MiB   475 KiB/s 00:17 
[###] 100%
error: failed retrieving file 
'mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.sig' from 
master.dl.sourceforge.net : Maximum file size exceeded

warning: failed to retrieve some files
# 
---


# Second run:
# 
---

loading packages...
error: 
'/var/cache/pacman/pkg/mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst': 
package missing required signature
# 
---


I fixed this by manually downloading 
mingw-w64-i686-webkitgtk3-2.4.11-999.4-any.pkg.tar.zst.


I noticed there is also a -999.5 package. Should that be used instead of 
the -999.4 one?


# Next issue:
# 
---

*** Checking out gnucash-git *** [12/14]

[...]

CMake Error at CMakeLists.txt:345 (message):
  Neither guile 3.0, guile 2.2, nor guile 2.0 were found GnuCash can't 
run
  without one of them.  Ensure that one is installed and can be found 
with

  pkg-config.


-- Configuring incomplete, errors occurred!
*** Error during phase configure of gnucash-git: ## Error 
running cmake 
-DCMAKE_INSTALL_PREFIX=/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/inst 
-DCMAKE_INSTALL_LIBDIR=lib -G Ninja -DCMAKE_PREFIX_PATH=$MSYS2ROOT 
-DPERL_EXECUTABLE=/usr/bin/perl -DGNC_DBD_DIR=$PREFIX/lib/dbd 
-DGTEST_ROOT=$SRCROOT/googletest/ -DCMAKE_BUILD_TYPE=Debug  
/C/users/mu/Entwicklung/GnuCash/gcdev64/gnucash/stable/src/gnucash-git 
*** [12/14]
# 
---


Not sure what this one is. I believe there was already a long running 
build of guile2.


*** Checking out guile2 *** [10/14]
*** Skipping guile2 (package and dependencies not updated) *** [10/14]

Any hint for me?

Regards,
Manfred












___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel