Ninja fails with missing dependency after Meson is successful
When attempting to build from master, meson build
finds all dependencies and exits normally. When attempting to build with ninja -C build
, the process fails, saying that the packages javascriptcoregtk-6.0
and webkitgtk-6.0
cannot be found. Reinstalling the relevant packages (libjavascriptcoregtk-6.0-dev
and libwebkitgtk-6.0-dev
on Ubuntu 22.04) resulted in no change.
Output from meson build
:
meson build
:The Meson build system
Version: 1.0.99
Source dir: /home/iharding/shotwell
Build dir: /home/iharding/shotwell/build
Build type: native build
Project name: shotwell
Project version: 33.alpha
C compiler for the host machine: ccache cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
Vala compiler for the host machine: valac (valac 0.56.0)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Configuring config.h using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency gtk4 found: YES 4.6.9
Run-time dependency gio-2.0 found: YES 2.72.4
Run-time dependency gmodule-2.0 found: YES 2.72.4
Run-time dependency gee-0.8 found: YES 0.20.5
Run-time dependency webkitgtk-6.0 found: YES 2.42.3
Run-time dependency javascriptcoregtk-6.0 found: YES 2.42.3
Run-time dependency libsoup-3.0 found: YES 3.0.7
Run-time dependency json-glib-1.0 found: YES 1.6.6
Run-time dependency libxml-2.0 found: YES 2.9.13
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.8
Run-time dependency sqlite3 found: YES 3.37.2
Run-time dependency gstreamer-1.0 found: YES 1.20.3
Run-time dependency gstreamer-pbutils-1.0 found: YES 1.20.1
Run-time dependency libgphoto2 found: YES 2.5.27
Run-time dependency gudev-1.0 found: YES 237
Run-time dependency gexiv2 found: YES 0.14.0
Run-time dependency libraw found: YES 0.20.2
Run-time dependency libexif found: YES 0.6.24
Run-time dependency libsecret-1 found: YES 0.20.5
Run-time dependency libportal found: YES 0.6
Run-time dependency libportal-gtk4 found: YES 0.6
Library m found: YES
Run-time dependency pangocairo found: YES 1.50.6
Run-time dependency libwebpdemux found: YES 1.2.2
Run-time dependency libwebp found: YES 1.2.2
Dependency json-glib-1.0 found: YES 1.6.6 (cached)
Run-time dependency gcr-4 found: YES 4.1.0
Run-time dependency cairo found: YES 1.16.0
Library posix found: YES
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program msgfmt found: YES (/usr/bin/msgfmt)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Library m found: YES
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Program itstool found: YES (/usr/bin/itstool)
Program itstool found: YES (/usr/bin/itstool)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program msgfmt found: YES (/usr/bin/msgfmt)
Dependency gio-2.0 found: YES 2.72.4 (cached)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program gtk4-update-icon-cache found: YES (/usr/bin/gtk4-update-icon-cache)
Program update-desktop-database found: YES (/usr/bin/update-desktop-database)
Build targets in project: 142
NOTICE: Future-deprecated features used:
* 1.1.0: {'"boolean option" keyword argument "value" value "true"', '"boolean option" keyword argument "value" value "true"', '"boolean option" keyword argument "value" value "true"', '"boolean option" keyword argument "value" value "true"'}
Found ninja-1.10.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
Output from ninja -C build
:
ninja -C build
:ninja: Entering directory `build'
[1/453] Generating data/gsettings/gsettings-compile-data_gsettings with a custom command
[2/453] Generating version.h with a custom command
[3/453] Generating data/shotwell-resources_h with a custom command
[4/453] Generating data/shotwell-resources_c with a custom command
[5/453] Compiling Vala source ../src/plugins/DataImportsInterfaces.vala ../src/plugins/PublishingInterfaces.vala ../src/plugins/SpitInterfaces.vala ../src/plugins/TransitionsInterfaces.vala
[6/453] Compiling Vala source ../src/metadata/MediaMetadata.vala ../src/metadata/MetadataDateTime.vala ../src/metadata/MetadataRational.vala
[7/453] Compiling Vala source ../src/ColorTransformation.vala ../src/util/KeyValueMap.vala
[8/453] Compiling C object src/plugins/libshotwell-plugin-dev-1.0.so.0.33.p/meson-generated_DataImportsInterfaces.c.o
[9/453] Compiling C object src/plugins/libshotwell-plugin-dev-1.0.so.0.33.p/meson-generated_PublishingInterfaces.c.o
[10/453] Compiling C object src/plugins/libshotwell-plugin-dev-1.0.so.0.33.p/meson-generated_SpitInterfaces.c.o
[11/453] Generating data/org.gnome.Shotwell-Viewer.desktop with a custom command
[12/453] Compiling C object src/plugins/libshotwell-plugin-dev-1.0.so.0.33.p/meson-generated_TransitionsInterfaces.c.o
[13/453] Compiling C object src/libshotwell-graphics-processor.a.p/_transformation.c.o
[14/453] Compiling C object src/libshotwell-graphics-processor.a.p/meson-generated_ColorTransformation.c.o
[15/453] Generating data/org.gnome.Shotwell.appdata.xml with a custom command
[16/453] Compiling C object src/libshotwell-graphics-processor.a.p/meson-generated_util_KeyValueMap.c.o
[17/453] Linking target src/plugins/libshotwell-plugin-dev-1.0.so.0.33
[18/453] Linking static target src/libshotwell-graphics-processor.a
[19/453] Compiling C object src/metadata/libmetadata.a.p/meson-generated_MediaMetadata.c.o
[20/453] Compiling C object src/metadata/libmetadata.a.p/meson-generated_MetadataRational.c.o
[21/453] Compiling C object src/metadata/libmetadata.a.p/meson-generated_MetadataDateTime.c.o
[22/453] Linking static target src/metadata/libmetadata.a
[23/453] Generating symbol file src/plugins/libshotwell-plugin-dev-1.0.so.0.33.p/libshotwell-plugin-dev-1.0.so.0.33.symbols
[24/453] Generating data/org.gnome.Shotwell.desktop with a custom command
[25/453] Generating po/uk/LC_MESSAGES/shotwell-uk.mo with a custom command
[26/453] Compiling Vala source ../src/graphics-processor.vala src/shotwell-graphics-processor.vapi
[27/453] Generating po/vi/LC_MESSAGES/shotwell-vi.mo with a custom command
[28/453] Generating po/zh_CN/LC_MESSAGES/shotwell-zh_CN.mo with a custom command
[29/453] Generating po/zh_HK/LC_MESSAGES/shotwell-zh_HK.mo with a custom command
[30/453] Generating po/zh_TW/LC_MESSAGES/shotwell-zh_TW.mo with a custom command
[31/453] Generating plugins/authenticator/shotwell/authenticator-resource_c with a custom command
[32/453] Generating plugins/authenticator/shotwell/authenticator-resource_h with a custom command
[33/453] Generating plugins/shotwell-publishing/publishing-resource_h with a custom command
[34/453] Compiling Vala source ../plugins/common/RESTSupport.vala ../plugins/common/Resources.vala ../plugins/common/WebAuthenticationPane.vala ../plugins/common/BuilderPane.vala ../plugins/common/OAuth1Support.vala src/plugins/shotwell-plugin-dev-1.0.vapi
FAILED: plugins/libshotwell-plugin-common.so.0.33.p/common/RESTSupport.c plugins/libshotwell-plugin-common.so.0.33.p/common/Resources.c plugins/libshotwell-plugin-common.so.0.33.p/common/WebAuthenticationPane.c plugins/libshotwell-plugin-common.so.0.33.p/common/BuilderPane.c plugins/libshotwell-plugin-common.so.0.33.p/common/OAuth1Support.c plugins/shotwell-plugin-common.h plugins/shotwell-plugin-common.vapi
valac -C --debug --debug --target-glib=2.40 --vapidir=/home/iharding/shotwell/vapi --enable-checking --enable-experimental --enable-deprecated --define=HAVE_FLICKR --define=HAVE_GOOGLEPHOTOS --define=HAVE_PIWIGO --define=HAVE_YOUTUBE --define=HAVE_GALLERY3 --define=HAVE_TUMBLR --define=HAVE_UDEV --pkg javascriptcoregtk-6.0 --pkg webkitgtk-6.0 --pkg libxml-2.0 --pkg libsoup-3.0 --pkg gee-0.8 --pkg gtk4 --color=always --directory plugins/libshotwell-plugin-common.so.0.33.p --basedir ../plugins --library shotwell-plugin-common --header plugins/shotwell-plugin-common.h --vapi ../shotwell-plugin-common.vapi ../plugins/common/RESTSupport.vala ../plugins/common/Resources.vala ../plugins/common/WebAuthenticationPane.vala ../plugins/common/BuilderPane.vala ../plugins/common/OAuth1Support.vala src/plugins/shotwell-plugin-dev-1.0.vapi
error: Package `javascriptcoregtk-6.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `webkitgtk-6.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 2 error(s), 0 warning(s)
[35/453] Compiling C object src/shotwell-graphics-processor.p/meson-generated_graphics-processor.c.o
[36/453] Compiling Vala source ../src/video-support/AVIChunk.vala ../src/video-support/AVIMetadataLoader.vala ../src/video-support/QuickTimeAtom.vala ../src/video-support/QuicktimeMetdataLoader.vala ../src/video-support/util.vala src/metadata/metadata.vapi
[37/453] Compiling Vala source ../src/video-support/VideoMetadataReaderProcess.vala
[38/453] Compiling Vala source ../src/publishing/StaticMessagePaneWidget.vala ../src/publishing/ProgressPaneWidget.vala ../src/publishing/SuccessPaneWidget.vala ../src/publishing/LoginWelcomePaneWidget.vala src/plugins/shotwell-plugin-dev-1.0.vapi
[39/453] Compiling Vala source ../src/widgets/lib.vala ../src/widgets/FolderButton.vala
FAILED: src/widgets/libwidgets.a.p/lib.c src/widgets/libwidgets.a.p/FolderButton.c src/widgets/shotwell-internal-widgets.h src/widgets/shotwell-internal-widgets.vapi
valac -C --debug --debug --target-glib=2.40 --vapidir=/home/iharding/shotwell/vapi --enable-checking --enable-experimental --enable-deprecated --define=HAVE_FLICKR --define=HAVE_GOOGLEPHOTOS --define=HAVE_PIWIGO --define=HAVE_YOUTUBE --define=HAVE_GALLERY3 --define=HAVE_TUMBLR --define=HAVE_UDEV --pkg gio-2.0 --pkg gtk4 --color=always --directory src/widgets/libwidgets.a.p --basedir ../src/widgets --library widgets --header src/widgets/shotwell-internal-widgets.h --vapi ../shotwell-internal-widgets.vapi ../src/widgets/lib.vala ../src/widgets/FolderButton.vala
../src/widgets/FolderButton.vala:16.30-16.43: error: The name `FileDialog' does not exist in the context of `Gtk' (gtk4)
16 | var dialog = new Gtk.FileDialog();
| ^~~~~~~~~~~~~~
Compilation failed: 1 error(s), 0 warning(s)
ninja: build stopped: subcommand failed.
Is this a problem with my system setup, or is there another package required that Meson isn't checking for?