Well, I’m progressing. I managed to build GTK4 on Windows using Collabora’s blog note. Now with the help of their other blog note “build your own application with GTK4 as a Meson subproject” I’m trying to compile my code which is only a main.c file and has gtk4 as dependency. I don’t understand how to use the GTK4 that I build on c:\gnome as that dependency. So I tried the wrap-git method that the blog note gives but git cannot clone from it (fatal : “could not find remote branch master to clone”).
- What I did is create a directory
- put my main.c (and its main.h) into it
- create a meson.build with
project('deplieur', 'c')
executable('deplieur', 'main.c',
dependency('gtk4'))
- create the file gtk.wrap into the sub-dir subprojects into my project directory
- run “meson setup build --prefix C:\gnome” (on VS x64 native tools console)
Is there something that I did wrong ? Did someone build a GTK4 application on Windows using that method ? I see that on the GTK4 build there are examples applications that were built, maybe I add mine there and use the meson.build of the examples directory to build it ?
I finally solve that building problem by using MSVC that I configured manually as I’m not at ease with Meson.