Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

75%
+4 −0
Q&A Cargo can't find installed Gtk libraries

It turns out that jmb's comment was correct; my version of gio was too old. After being led by Virgil through the nine circles of dependency hell, I eventually just upgraded to Ubuntu 25. Unfortun...

posted 1y ago by Sylvester‭

Answer
#1: Initial revision by user avatar Sylvester‭ · 2025-09-03T17:09:51Z (about 1 year ago)
It turns out that [jmb's comment](https://software.codidact.com/comments/thread/11033#comment-27410) was correct; my version of `gio` was too old.

After being led by Virgil through the nine circles of dependency hell, I eventually just upgraded to Ubuntu 25. Unfortunately I don't remember whether I then had to manually install the newer version of `gio` or not, since there were lots of things I had to fix to get the new Ubuntu version working, and even then the upgrade is still a tiny bit broken in places.

The latest versions of the `gtk4` Rust library require a `gio` version of 2.82 or newer, so you can use this command (as suggested in [jmb's comment](https://software.codidact.com/comments/thread/11033#comment-27410)) to check whether you have the correct version:

```bash
pkg-config --libs --cflags gio-2.0 'gio-2.0 >= 2.82'
```

If you don't have the right version, you'll get a message something like this:

```text
Package dependency requirement 'gio-2.0 >= 2.82' could not be satisfied.
Package 'gio-2.0' has version '2.53.1', required version is '>= 2.82'
```