Skip to content

problems with msys2 - windows #56

@rmantovani68

Description

@rmantovani68

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions