I’m trying to build a little toy GUI app depending on gi-gtk
. I’m on Fedora 39. AFAICT I have all the required dependencies installed but I can’t get it to compile. I always get
cabal build
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: gtk-intro-0.1.0.0 (user goal)
[__1] next goal: gi-gtk (dependency of gtk-intro)
[__1] rejecting: gi-gtk-4.0.8, gi-gtk-4.0.6, gi-gtk-4.0.5, gi-gtk-4.0.4,
gi-gtk-4.0.3, gi-gtk-4.0.2, gi-gtk-4.0.1 (conflict: pkg-config package
gtk4-any, not found in the pkg-config database)
[__1] rejecting: gi-gtk-3.0.41, gi-gtk-3.0.39, gi-gtk-3.0.38, gi-gtk-3.0.37,
gi-gtk-3.0.36, gi-gtk-3.0.35, gi-gtk-3.0.34, gi-gtk-3.0.33, gi-gtk-3.0.32,
gi-gtk-3.0.31, gi-gtk-3.0.30, gi-gtk-3.0.29, gi-gtk-3.0.28, gi-gtk-3.0.27,
gi-gtk-3.0.26, gi-gtk-3.0.25, gi-gtk-3.0.24, gi-gtk-3.0.23, gi-gtk-3.0.22,
gi-gtk-3.0.21, gi-gtk-3.0.20, gi-gtk-3.0.19, gi-gtk-3.0.18, gi-gtk-3.0.17,
gi-gtk-3.0.16, gi-gtk-3.0.15, gi-gtk-3.0.14, gi-gtk-3.0.13, gi-gtk-3.0.12,
gi-gtk-3.0.11, gi-gtk-3.0.10, gi-gtk-3.0.9, gi-gtk-3.0.8, gi-gtk-3.0.7,
gi-gtk-3.0.6, gi-gtk-3.0.5, gi-gtk-3.0.4, gi-gtk-3.0.3, gi-gtk-3.0.2,
gi-gtk-3.0.1 (conflict: pkg-config package gtk+-3.0-any, not found in the
pkg-config database)
[__1] rejecting: gi-gtk-0.3.18.15, gi-gtk-0.3.18.14, gi-gtk-0.3.18.13,
gi-gtk-0.3.18.12 (conflict: pkg-config package gtk+-3.0>=3.18, not found in
the pkg-config database)
[__1] rejecting: gi-gtk-0.3.16.12 (conflict: pkg-config package
gtk+-3.0>=3.16, not found in the pkg-config database)
[__1] rejecting: gi-gtk-0.3.18.10 (conflict: pkg-config package
gtk+-3.0>=3.18, not found in the pkg-config database)
[__1] rejecting: gi-gtk-0.3.16.11, gi-gtk-0.3.16.10, gi-gtk-0.3.16.9,
gi-gtk-0.3.16.8 (conflict: pkg-config package gtk+-3.0>=3.16, not found in the
pkg-config database)
[__1] fail (backjumping, conflict set: gi-gtk, gtk-intro)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: gi-gtk, base, gtk-intro
pkg-config
seems to indicate that I have those dependencies installed:
pkg-config --list-all | grep gtk
javascriptcoregtk-4.0 JavaScriptCoreGTK+ - GTK+ version of the JavaScriptCore engine
gtk+-3.0 GTK+ - GTK+ Graphical UI Library
gtk+-broadway-3.0 GTK+ - GTK+ Graphical UI Library
gtk+-unix-print-3.0 GTK+ - GTK+ Unix print support
gtk+-wayland-3.0 GTK+ - GTK+ Graphical UI Library
gtk+-x11-3.0 GTK+ - GTK+ Graphical UI Library
gtksourceview-3.0 gtksourceview - Source code editing widget
webkit2gtk-4.0 WebKitGTK - Web content engine for GTK
webkit2gtk-web-extension-4.0 WebKitGTK web process extensions - Web content engine for GTK - web process extensions
gtk+ GTK+ - GIMP Tool Kit
gtk4-broadway GTK - GTK Graphical UI Library
gtk4-unix-print GTK - GTK Unix print support
gtk4-wayland GTK - GTK Graphical UI Library
gtk4-x11 GTK - GTK Graphical UI Library
gtk4 GTK - GTK Graphical UI Library
Any suggestions?