ToshioCP / Gtk4-tutorial

GTK 4 tutorial for beginners
https://toshiocp.github.io/Gtk4-tutorial/
560 stars 49 forks source link

problems with msys2 - windows #56

Open rmantovani68 opened 1 month ago

rmantovani68 commented 1 month ago

Hello,

First of all, many thanks for your tutorial.

I have a problem executing list5 example on windows - msys2

This is the list of build commands:

rm -f list5.o resources.o list5.exe resources.c
gcc -Wall -Wno-unused-variable -Wno-format-overflow -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-format-security -Wno-unused-function -Wno-format-zero-length -g `pkg-config gtk4 --cflags`  `pkg-config gmodule-export-2.0 --cflags`  -c "list5.c" -o `basename "list5.o"`
glib-compile-resources list5.gresource.xml --target=resources.c --sourcedir=./ --generate-source
gcc -Wall -Wno-unused-variable -Wno-format-overflow -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-format-security -Wno-unused-function -Wno-format-zero-length -g `pkg-config gtk4 --cflags`  `pkg-config gmodule-export-2.0 --cflags`  -c "resources.c" -o `basename "resources.o"`
gcc list5.o resources.o -o list5.exe `pkg-config gtk4 --libs`  `pkg-config gmodule-export-2.0 --libs`

THis is the execution of list5.exe

$ ./list5.exe

(list5.exe:22052): Gtk-CRITICAL **: 08:47:05.230: Error building template for list item: .:0:0: No function named `get_icon`.
...
(list5.exe:22052): Gtk-CRITICAL **: 08:47:05.230: Error building template for list item: .:0:0: No function named `get_icon`.

I cannot use meson because it's not working on msys2

this are the system's info:

$ uname -a
MINGW64_NT-10.0-22631 YMANTOVANIR-3B 3.5.3.x86_64 2024-05-06 06:45 UTC x86_64 Msys

$ echo $PATH
/mingw64/bin:/usr/local/bin:/usr/bin:/bin:...

I'm using mingw 64 terminal and have installed mingw-w64-x86_64-gtk4 4.14.4-1

ToshioCP commented 1 month ago

Thank you for posting the issue and sorry for replying you so late. Unfortunately, this tutorial is checked only on Linux. In addition, I don't use Windows usually. You should ask it to GNOME Discourse which is a discussion website for GNOME software including GTK4.

https://discourse.gnome.org/

The GTK4 developers usually answer questions. Therefore, GNOME Discourse is the right place for you to ask questions especially for the programs on GTK4 on Windows. Regards, Toshio Sekiya