Hi
I’m on Windows 10 and MingW64 installed with Msys64.
I downloaded the GTK4 source from GNOME / gtk · GitLab
I followed the “Building and installing” section and downloaded required lib to build the GTK4 with Meson/Ninja.
When I run the 2nd command “meson compile -C_build”, I have the following errors:
D:\Coding\Cpp\gtk>meson compile -C_build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: D:\Computing\msys64\mingw64\bin\ninja.EXE -C D:/Coding/Cpp/gtk/_build
ninja: Entering directory `D:/Coding/Cpp/gtk/_build’
[1/1719] Generating gdk/gdkmarshalers_h with a custom command
FAILED: gdk/gdkmarshalers.h
“D:/Computing/msys64/mingw64/bin/…/bin/glib-genmarshal” “–prefix” “_gdk_marshal” “–valist-marshallers” “–output” “gdk/gdkmarshalers.h” “–header” “…/gdk/gdkmarshalers.list” “–pragma-once”
Cannot open -script.py
[6/1719] Generating gtk/css/gtkcssenumtypes.h with a custom command (wrapped by meson to capture output)
FAILED: gtk/css/gtkcssenumtypes.h
“D:\Program Files\Python3\Scripts\meson” “–internal” “exe” “–capture” “gtk/css\gtkcssenumtypes.h” “–” “D:/Computing/msys64/mingw64/bin/…/bin/glib-mkenums” “–template” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcssenumtypes.h.template” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcssenums.h” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsserror.h” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsslocation.h” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsssection.h”
— stderr —
Cannot open -script.py
etc…
I don’t know why I have the “cannot open -script.py” error. When I look in the “MingW64/bin” folder I have these files:
- glib-genmarshal.exe
- glib-genmarshal-script.py
- glib-mkenums.exe
- glib-mkenums-script.py
In the “build.ninja” file I find:
build gdk/gdkmarshalers.h: CUSTOM_COMMAND …/gdk/gdkmarshalers.list | D$:/Computing/msys64/mingw64/bin/…/bin/glib-genmarshal
COMMAND = “D:/Computing/msys64/mingw64/bin/…/bin/glib-genmarshal” “–prefix” “_gdk_marshal” “–valist-marshallers” “–output” “gdk/gdkmarshalers.h” “–header” “…/gdk/gdkmarshalers.list” “–pragma-once”
description = Generating$ gdk/gdkmarshalers_h$ with$ a$ custom$ command
and
build gtk/css/gtkcssenumtypes.h: CUSTOM_COMMAND D$:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcssenumtypes.h.template D$:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcssenums.h D$:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsserror.h D$:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsslocation.h D$:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsssection.h | D$:/Computing/msys64/mingw64/bin/…/bin/glib-mkenums
COMMAND = “D:\Program$ Files\Python3\Scripts\meson” “–internal” “exe” “–capture” “gtk/css\gtkcssenumtypes.h” “–” “D:/Computing/msys64/mingw64/bin/…/bin/glib-mkenums” “–template” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcssenumtypes.h.template” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcssenums.h” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsserror.h” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsslocation.h” “D:/Coding/Cpp/gtk/_build/…/gtk/css/gtkcsssection.h”
description = Generating$ gtk/css/gtkcssenumtypes.h$ with$ a$ custom$ command$ (wrapped$ by$ meson$ to$ capture$ output)
I don’t know why he tries to open “-script.py” file…
Any ideas ?
I would like to compile the GTK4 demo in this process.
Thanks