Score:0

Which packages install Qt5 pkg-config files?

ve flag

I need Qt5 .pc pkg-config file in order to compile this application. Of course I can install the whole Qt5 dev environment using the official Qt online installer.

But I wonder if I can install some Ubuntu packages for the requires modules only (core, widget and gui) that include the *.pc files as well.

I tried installing libqt5widget5 but it seems it does not provide the pc file. I also searched with apt-cache search but I found nothing relevant.

Score:2
pl flag

If the compiler is complaining of a specific missing file, you can search inside all packages at https://packages.ubuntu.com/ - scroll down to "Search the contents of packages"

picture of packages.ubuntu.com

Type in the exact file name, pick the release and it will tell you which package(s) you might find the file in.

Alternatively use apt-file (which isn't installed by default).

sudo apt install apt-file
sudo apt-file update
apt-file search Qt5XmlPatterns.pc
libqt5xmlpatterns5-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5XmlPatterns.pc
ve flag
Great! I wasn't aware of this tool, thanks!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.