I created a new Python GTK application using gnome-Builder (let’s call it
gtk-test). After creation, building and running it using Gnome-builder works just fine,
gtk-test starts and shows the HelloWorld-window.
After that, I wanted to play around to around a bit with meson itself, so I tried to build the application by hand using meson directly. According to the meson documentation, the following steps should work
meson build ninja -C build ./build/src/gtk-test
Unfortunately, the last command always results in
Traceback (most recent call last): File "./build/src/gtk-test", line 37, in <module> resource = Gio.Resource.load(os.path.join(pkgdatadir, 'gtk-test.gresource')) gi.repository.GLib.Error: g-file-error-quark: Failed to open file “/usr/local/share/gtk-test/gtk-test.gresource”: open() failed: No such file or directory (4)
What am I missing here?
Thanks in advance,