Gtk| Dependency gstreamer-gl-1.0 found: YES 1.19.1.1 (overridden) Gtk| Dependency gstreamer-player-1.0 found: YES 1.19.1.1 (overridden) I started over and tried to compile gtksourceview using gst-build as a subproject. Now that you can use GTK 4 as a subproject of a real application, and build both GtkSourceView 5.0 and GTK4's GStreamer media backend, what's next? Add Windows CI to GTK 4? Stay tuned!Īnd of course, if you have any questions about GTK4 and GStreamer on Windows, please get in touch!
#Collabora code github code#
Īt the time of writing, there is still a build issue ( #152) but this can easily be worked around by deleting related code in subprojects/gst-build/meson.build. It is possible to also build GStreamer and all its dependencies, including FFmpeg, as Meson subprojects for GTK 4, or even your own application! Simply add gst-build as a subproject: subprojects/gst-build.wrap. GTK 4 has an optional dependency on GStreamer for its multimedia widgets. Run the test application: C:\src\gtksourceview>C:\gnome\bin\gtksourceview5-widget.exeīonus: Build GTK4's GStreamer media backend with Visual Studio
#Collabora code github install#
C:\src>git clone Ĭ:\src\gtksourceview>meson setup build -prefix C:/gnome -Dinstall_tests=trueĬ:\src\gtksourceview>meson compile -C buildĬ:\src\gtksourceview>meson install -C build Make sure to follow instructions from the previous blog post to set up your build environment. Note that -Dinstall_tests=true is only needed to have the test application installed, it is not needed if you're only interested in the library.
#Collabora code github how to#
Here is how to fetch and build the GtkSourceView master branch, including GTK4 and all of its dependencies, on Windows with Visual Studio. I'm happy to report that all needed fixes to make it build on Windows with GTK4 as a Meson subproject have been merged on time! Recently, Christian Hergert announced the release of GtkSourceView 5.0, the first application ported to GTK4. Build GtkSourceView 5.0 with Visual Studio It will also fetch and build any GTK4 dependencies which are not found, for example glib, which could be outdated on your system as well. This file instructs Meson on where to fetch the gtk4 dependency if it cannot be found on the system: it! When your meson.build does dependency('gtk4'), Meson will automatically configure a GTK4 subproject if GTK4 is not found on the system. To make your own application fall back to build GTK 4 as a Meson subproject in case the system does not provide it, simply add the following subprojects/gtk.wrap file. First up, GTK 4 now builds out of the box without applying any extra patches, thanks to the last remaining fix ( !3135) being merged.įurthermore, and more importantly, you can now build GTK 4 as a Meson subproject for your own application! This is not only useful for Windows builds, but also for many Linux distributions that do not yet package a recent enough version of GTK 4 and/or its dependencies. Welcome back to my blog series on GTK 4 and Visual Studio! If you're just joining us, make sure to take a look at the previous episode, where we saw how we can easily build and run GTK 4 on Windows with Visual Studio.