'Why does building a Rust/GTK3 app with yocto fail?
I have a working Rust/GTK3 app. When trying to compile it with yocto I'm getting the following errors:
warning: Could not run
"pkg-config" "--libs" "--cflags" "gobject-2.0" "gobject-2.0 >= 2.48"error: failed to run custom build command forgobject-sys v0.15.10
How can I fix it? Perhaps somebody has an example that uses Rust/GTK3 and successfully builds with the yocto?
The problem is only with the Rust app. I am able to build a C++/GTK3 app with yocto.
Solution 1:[1]
If I run that command on my setup, then I get the following output:
$ "pkg-config" "--libs" "--cflags" "gobject-2.0" "gobject-2.0 >= 2.48"
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -lgobject-2.0 -lglib-2.0
So, you either do not have pkg-config or you don't have gobject or you have an unsuitable version of gobject.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | hkBst |
