I’m following the gtk-rs gir tutorial to create bindings for Tracker 3 and I am getting an error after following the step.
> rm Cargo.* # we remove Cargo files
> gir -m sys -d ../../gir-files/
> cargo build
I had to add <package name=“tracker-sparql-3.0”/> to the Tracker-3.0.gir file.
When I run the commands above it cannot find the pkg-config because it is using the wrong name. It should be tracker-sparql-3.0 but the error messages says Package tracker_sparql_3_0 was not found in the pkg-config search path.
Looking at the generated file /tests/abi.rs
The PACKAGES is written correctly, so I don’t know why, when the pkg_config_cflags is run it is replacing the punctuation with _
Does someone know more why this is happening?
p.s. I got the tracker gir file from /usr/share/gir-1.0/ on Fedora 33 and the other girs from the gtk-rs/gir-files.
Hi, IIRC the Tracker library is mostly just a wrapper around the D-Bus interface. If that is (still) the case and you can’t make this work, you might also want to consider talking to D-Bus directly. You can use our crate, zbus for that.