Can't build with meson, dependency "qt5" not found
Hello,
I would like to build epiphany to contribute to it if possible, but can't get it to build due to an error when using Builder:
flatpak-builder --arch=x86_64 --ccache --force-clean --state-dir /home/aunetx/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder --download-only --disable-updates --stop-at=epiphany /home/aunetx/.var/app/org.gnome.Builder/cache/gnome-builder/projects/epiphany/flatpak/staging/x86_64-master /home/aunetx/Projets/epiphany/org.gnome.Epiphany.json
Emptying app dir '/home/aunetx/.var/app/org.gnome.Builder/cache/gnome-builder/projects/epiphany/flatpak/staging/x86_64-master'
Downloading sources
Stopping at module epiphany
flatpak-builder --arch=x86_64 --ccache --force-clean --disable-updates --disable-download --state-dir /home/aunetx/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder --stop-at=epiphany /home/aunetx/.var/app/org.gnome.Builder/cache/gnome-builder/projects/epiphany/flatpak/staging/x86_64-master /home/aunetx/Projets/epiphany/org.gnome.Epiphany.json
Starting build of org.gnome.Epiphany.Devel
Cache hit for xcursorgen, skipping build
Cache hit for elementary-icons, skipping build
Cache hit for libsass, skipping build
Cache hit for sassc, skipping build
Cache hit for elementary-stylesheet, skipping build
Cache hit for libdazzle, skipping build
Cache miss, checking out last cache hit
(flatpak-builder:108): flatpak-builder-WARNING **: 20:12:37.231: rofiles-fuse not available, doing without
========================================================================
Building module libportal in /home/aunetx/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder/build/libportal-3
========================================================================
Already on 'master'
The Meson build system
Version: 0.59.2
Source dir: /run/build/libportal
Build dir: /run/build/libportal/_flatpak_build
Build type: native build
Project name: libportal
Project version: 0.4
C compiler for the host machine: ccache cc (gcc 11.2.0 "cc (GCC) 11.2.0")
C linker for the host machine: cc ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -fvisibility=hidden: YES
Configuring config.h using configuration
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency gio-2.0 found: YES 2.71.0
Run-time dependency gio-unix-2.0 found: YES 2.71.0
Run-time dependency gobject-introspection-1.0 found: YES 1.70.1
Dependency gobject-introspection-1.0 found: YES 1.70.1 (cached)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.70.1 (cached)
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
Run-time dependency gtk+-3.0 found: YES 3.24.30
Run-time dependency gtk4 found: YES 4.5.0
C++ compiler for the host machine: ccache c++ (gcc 11.2.0 "c++ (GCC) 11.2.0")
C++ linker for the host machine: c++ ld.bfd 2.37
qmake found: NO need ['>= 5', '< 6']
Run-time dependency qt5 (modules: Core, Gui, Widgets, X11Extras) found: NO (tried pkgconfig and config-tool)
../libportal/meson.build:197:2: ERROR: Dependency "qt5" not found, tried pkgconfig and config-tool
A full log can be found at /run/build/libportal/_flatpak_build/meson-logs/meson-log.txt
This seems to be due to libportal, but I don't know if this is caused by a problem in the flatpak build config in this project, or directly in libportal.
If needed, here is the full logs provided by meson.
Should I contact the libportal developers, or should this issue be resolved here?
Using Fedora 35, ask me if you need other informations.
Thanks a lot, Aurélien Hamy