WrapEarnPass left a comment (geany/geany#4620)
I tore down, and rebuilt my environment to match
https://wiki.geany.org/howtos/win32/msys2
```
#!/bin/bash
_DEST=/home/build/geany-windows/ _SYSROOT="/usr/windows/ucrt64"
export PKG_CONFIG="/usr/bin/pkg-config --define-prefix --env-only"
export PKG_CONFIG_PATH="${_SYSROOT}/lib/pkgconfig:${_SYSROOT}/share/pkgconfig"
export ARCH="x86_64"
export MINGW_ARCH="mingw32ucrt"
export HOST="x86_64-w64-mingw32ucrt"
export WINEPREFIX="$HOME/.wine/win64"
export lt_cv_deplibs_check_method='pass_all'
cd ~/Projects/geany/geany
git clean -f -X
./autogen.sh --prefix="${_DEST}" --build x86_64-pc-linux-gnu --host
x86_64-w64-mingw32ucrt
make clean && make install
mkdir -p ~/gtk-package
mkdir -p ~/msyscache
cd ~/gtk-package/buildroot
bash ~/Projects/geany/geany/scripts/gtk-bundle-from-msys2.sh -3 -x ~/msyscache
```
I can tell here that I am clearly building against the system ucrt libs, and
probably should be building against the gtk-bundle, except
gtk-bundle-from-msys2.sh fails to create a gtk bundle, so I can't change my
build setup to point to it.
- I specifically did not use the gtk-bundle-from-msys2.sh -c flag, so it would
download everything to the local cache, but it still uses pacman's system
caches.
- ```Execute delayed post install tasks``` then throws an error because of an
issue with libintl-8.dll and pixbufloader_svg.dll
- gtk-bundle-from-msys2.sh has not been updated to prefer ucrt, or check for
any flags to set mingw64 or ucrt64.
- I also do not have both wget and curl, so I had to create a local edit to the
```Download and unpack 'sort'``` and ```Archive: geany_osx.zip``` calls to use
curl instead.
- mingw-w64-x86_64-wine doesn't exist, so I had to edit
gtk-bundle-from-msys2.sh to set ```EXE_WRAPPER_32="wine"
EXE_WRAPPER_64="wine"``` for my system.
```
build@debian:/home/build/gtk-package# bash
/home/build/Projects/geany/geany/scripts/gtk-bundle-from-msys2.sh -x -3
/home/build/gtk-package/cache/
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-adwaita-icon-theme-50.0-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-adwaita-icon-theme-legacy-46.2-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-atk-2.60.5-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-brotli-1.2.0-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-bzip2-1.0.8-3-any.pkg.tar.zst
using curl
Download
https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-cairo-1.18.4-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-expat-2.8.2-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-fontconfig-2.18.2-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-freetype-2.14.3-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-fribidi-1.0.16-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-gcc-libs-16.1.0-5-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-gdk-pixbuf2-2.44.7-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-gettext-runtime-1.0-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-glib2-2.88.2-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-graphite2-1.3.15-1-any.pkg.tar.zst
using curl
Download
https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-grep-3.12-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-gtk-update-icon-cache-3.24.52-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-harfbuzz-14.2.1-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-hicolor-icon-theme-0.18-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-jbigkit-2.1-5-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-lerc-4.1.1-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libdatrie-0.2.14-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libdeflate-1.25-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libepoxy-1.5.10-7-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libffi-3.7.1-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libiconv-1.19-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libjpeg-turbo-3.2.0-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libpng-1.6.58-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-librsvg-2.62.3-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libthai-0.1.30-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libtiff-4.7.2-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libwebp-1.6.0-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libwinpthread-14.0.0.r179.g24aaa6147-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-libxml2-2.15.3-1-any.pkg.tar.zst
using curl
Download
https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-pango-1.56.3-2-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-pcre2-10.47-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-pixman-0.46.4-3-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-shared-mime-info-2.5.1-1-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-xz-5.8.3-1-any.pkg.tar.zst using
curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-zlib-1.3.2-2-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-zstd-1.5.7-2-any.pkg.tar.zst
using curl
Download
file:///var/cache/pacman/pkg/mingw-w64-x86_64-gtk3-3.24.52-1-any.pkg.tar.zst
using curl
Move extracted data to destination directory
Execute delayed post install tasks
wine: Call from 00006FFFFFC85FA8 to unimplemented function
libintl-8.dll.DllMain, aborting
wine: Call from 00006FFFFFC85FA8 to unimplemented function
libintl-8.dll.DllMain, aborting
g_module_open() failed for
Z:\home\build\gtk-package\lib\gdk-pixbuf-2.0\2.10.0\loaders\pixbufloader_svg.dll:
'Z:\home\build\gtk-package\lib\gdk-pixbuf-2.0\2.10.0\loaders\pixbufloader_svg.dll':
Message 0x
%1 not found in file %2.
Cleanup unnecessary files
Download and unpack 'sort'
curl -L -o unxutilsupdates.zip https://download.geany.org/contrib/UnxUpdates.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 858k 100 858k 0 0 688k 0 0:00:01 0:00:01 --:--:-- 688k
Archive: unxutilsupdates.zip
inflating: bin/sort.exe
Download and unpack GTK theme 'Prof-Gnome'
curl -L -o geany_osx.zip
https://github.com/geany/geany-osx/archive/refs/heads/master.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6039k 100 6039k 0 0 6139k 0 --:--:-- --:--:-- --:--:-- 1026k
Archive: geany_osx.zip
586147f56f4fcf5ce9aa84659a925fff154d0490
creating: geany-osx-master/Prof-Gnome/gtk-3.0/
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/COPYING
creating: geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/Null.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/after-horizontal.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/bullet-disabled.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/bullet-symbolic.svg
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/bullet.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/list-remove-symbolic.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/object-select-symbolic.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/[email protected]
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/scale-slider-active.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/[email protected]
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/scale-slider-disabled.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/[email protected]
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/scale-slider-hover.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/[email protected]
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/scale-slider.svg
inflating:
geany-osx-master/Prof-Gnome/gtk-3.0/global-graphics/[email protected]
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/gtk-dark.css
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/gtk.css
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/main-dark.css
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/main-light.css
creating: geany-osx-master/Prof-Gnome/gtk-3.0/theme-colors/
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/theme-colors/colors-dark.css
inflating: geany-osx-master/Prof-Gnome/gtk-3.0/theme-colors/colors-light.css
inflating: geany-osx-master/prof_gnome_windows_changes.patch
patching file gtk-3.0/main-dark.css
Hunk #1 succeeded at 5838 (offset -52 lines).
Hunk #2 succeeded at 6475 (offset -52 lines).
patching file gtk-3.0/main-light.css
Hunk #1 succeeded at 5831 (offset -52 lines).
Hunk #2 succeeded at 6461 (offset -52 lines).
patching file gtk-3.0/theme-colors/colors-dark.css
patching file gtk-3.0/theme-colors/colors-light.css
```
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/4620#issuecomment-4959615417
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/issues/4620/[email protected]>