Score:2

xmlpatterns: could not find a Qt installation of ''

us flag

As part of compiling some external packages like paraview from their sources, I installed the following Qt related packages using aptitude:

sudo apt install libqt5x11extras5-dev libqt5help5 qttools5-dev qtxmlpatterns5-dev-tools libqt5svg5-dev cmake-qt-gui qt5-qmake qtbase5-dev qtbase5-dev-tools qt5-style-plugins

However, the compilation of paraview runs into issues with xmlpatterns. Upon having a closer look, it seems like the aptitude installation of xmlpatterns gives this error:

xmlpatterns: could not find a Qt installation of ''

which is the same error paraview compilation runs into. Can someone please clarify/correct what went wrong with aptitude packages?

P.S. I am using Ubuntu 22.04

Edit: Just now, I noticed that /usr/bin/xmlpatterns points to /usr/bin/qtchooser, which seems odd to me.

Score:0
pl flag

I suspect you're just missing libqt5xmlpatterns5-dev.

sudo apt install libqt5xmlpatterns5-dev
kksagar avatar
us flag
I installed this package, still have the same error. Also, `xmlpatterns` still points to `qtchooser` as mentioned before.
pl flag
Do you have `qt5-default` installed? It being missing can cause that error too.
kksagar avatar
us flag
`qt5-default` is not available on Ubuntu 22.04. I tried to add the old repositories of Ubuntu 20.04 (focal-security), but `apt` couldn't install it because of version conflicts in dependencies
pl flag
Sorry, my mistake.
pl flag
Stab in the dark, but how about `qtbase5-private-dev`? Do you have that too?
kksagar avatar
us flag
No, I don't have that installed. However, I solved my problem by finding another `xmlpatterns` binary and then link it to the one in path. i.e. by applying `sudo ln -s /usr/lib/qt5/bin/xmlpatterns /usr/bin/xmlpatterns`
kksagar avatar
us flag
Not sure if this is the right way to do things, but paraview compilation worked flawlessly
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.