# Paraview build: xmlpatterns could not find a Qt

**URL:** https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389
**Category:** ParaView Support
**Created:** [February 13, 2023, 10:30am UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389 "2023-02-13T10:30:31Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![kskollepara](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kskollepara/32/10718_2.png) [@kskollepara](https://discourse.paraview.org/u/kskollepara)
#### Post date: [February 13, 2023, 10:30am UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/1 "2023-02-13T10:30:31Z")

</div>

I am trying to build para view from sources on Ubuntu 22.04.

`cmake -GNinja -DPARAVIEW_USE_PYTHON=ON -DPARAVIEW_USE_MPI=ON -DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DCMAKE_BUILD_TYPE=Release ../paraview`

However, I receive the following error:

> [30/21172] Generating documentation for SLACTools\_doc  
> FAILED: Plugins/SLACTools/paraview\_help/SLACTools\_doc.xslt /home/user/appimages/paraview\_build/Plugins/SLACTools/paraview\_help/SLACTools\_doc.xslt  
> cd /home/user/appimages/paraview\_build/Plugins/SLACTools/paraview\_help && /usr/bin/cmake -Dxmlpatterns=/usr/bin/xmlpatterns -Doutput\_dir=/home/user/appimages/paraview\_build/Plugins/SLACTools/paraview\_help -Doutput\_file=/home/user/appimages/paraview\_build/Plugins/SLACTools/paraview\_help/SLACTools\_doc.xslt -Dxmls\_file=/home/user/appimages/paraview\_build/Plugins/SLACTools/CMakeFiles/SLACTools\_doc-xmls.txt -D\_paraview\_generate\_proxy\_documentation\_run=ON -P /home/user/appimages/paraview/CMake/ParaViewClient.cmake  
> CMake Error at /home/user/appimages/paraview/CMake/ParaViewClient.cmake:592 (message):  
> Failed to convert servermanager XML: xmlpatterns: could not find a Qt  
> installation of ‘’
> 
> [39/21172] Building CXX object VTK/Filters/Sources/CMakeFiles/FiltersSources.dir/vtkPartitionedDataSetCollectionSource.cxx.o  
> ninja: build stopped: subcommand failed.

As the system installation of Qt5 didn’t work, I installed Qt5 from sources. Then I add a flag to `cmake` to specify the new installation of Qt5: `-DQt5_DIR=/home/user/appimages/qt5_build/5.11.3/gcc_64/lib/cmake/Qt5`.

However, a quick look at the `cmake-gui` (screenshot below) shows that some Qt5 flags point to the new path, but the `Qt5_DIR` and `Qt5Svg_DIR` still point to the system installation.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/99f6fe3e940fecccdd0b24f685eeadaf72967a7c.png)

I found this weird, but I proceed to compile using `ninja` and still receive the same error message.  
Kindly help

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 13, 2023, 10:34am UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/2 "2023-02-13T10:34:34Z")

</div>

Looks like your are missing xmlpatterns in your Qt installation. You can disabled the SLACTools plugin to work around the issue if needed.

---

<div class="post-metadata">

### Author: ![kskollepara](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kskollepara/32/10718_2.png) [@kskollepara](https://discourse.paraview.org/u/kskollepara)
#### Post date: [February 13, 2023, 12:03pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/3 "2023-02-13T12:03:34Z")

</div>

Thank you for your response. I included the flag `-DPARAVIEW_PLUGIN_ENABLE_SLACTools=0`, but I still receive the same error. Are there any other plugins that I should disable?

> [16788/21140] Generating documentation for AcceleratedAlgorithms\_doc  
> FAILED: Plugins/AcceleratedAlgorithms/paraview\_help/AcceleratedAlgorithms\_doc.xslt /home/kiran/appimages/paraview\_build/Plugins/AcceleratedAlgorithms/paraview\_help/AcceleratedAlgorithms\_doc.xslt  
> cd /home/kiran/appimages/paraview\_build/Plugins/AcceleratedAlgorithms/paraview\_help && /usr/bin/cmake -Dxmlpatterns=/usr/bin/xmlpatterns -Doutput\_dir=/home/kiran/appimages/paraview\_build/Plugins/AcceleratedAlgorithms/paraview\_help -Doutput\_file=/home/kiran/appimages/paraview\_build/Plugins/AcceleratedAlgorithms/paraview\_help/AcceleratedAlgorithms\_doc.xslt -Dxmls\_file=/home/kiran/appimages/paraview\_build/Plugins/AcceleratedAlgorithms/CMakeFiles/AcceleratedAlgorithms\_doc-xmls.txt -D\_paraview\_generate\_proxy\_documentation\_run=ON -P /home/kiran/appimages/paraview/CMake/ParaViewClient.cmake  
> CMake Error at /home/kiran/appimages/paraview/CMake/ParaViewClient.cmake:592 (message):  
> Failed to convert servermanager XML: xmlpatterns: could not find a Qt  
> installation of ‘’
> 
> [16789/21140] Generating documentation for AnalyzeNIfTIReaderWriter\_doc  
> FAILED: Plugins/AnalyzeNIfTIReaderWriter/paraview\_help/AnalyzeNIfTIReaderWriter\_doc.xslt /home/kiran/appimages/paraview\_build/Plugins/AnalyzeNIfTIReaderWriter/paraview\_help/AnalyzeNIfTIReaderWriter\_doc.xslt  
> cd /home/kiran/appimages/paraview\_build/Plugins/AnalyzeNIfTIReaderWriter/paraview\_help && /usr/bin/cmake -Dxmlpatterns=/usr/bin/xmlpatterns -Doutput\_dir=/home/kiran/appimages/paraview\_build/Plugins/AnalyzeNIfTIReaderWriter/paraview\_help -Doutput\_file=/home/kiran/appimages/paraview\_build/Plugins/AnalyzeNIfTIReaderWriter/paraview\_help/AnalyzeNIfTIReaderWriter\_doc.xslt -Dxmls\_file=/home/kiran/appimages/paraview\_build/Plugins/AnalyzeNIfTIReaderWriter/CMakeFiles/AnalyzeNIfTIReaderWriter\_doc-xmls.txt -D\_paraview\_generate\_proxy\_documentation\_run=ON -P /home/kiran/appimages/paraview/CMake/ParaViewClient.cmake  
> CMake Error at /home/kiran/appimages/paraview/CMake/ParaViewClient.cmake:592 (message):  
> Failed to convert servermanager XML: xmlpatterns: could not find a Qt  
> installation of ‘’
> 
> [16797/21140] Building CXX object VTK/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/filter/contour/CMakeFiles/vtkm\_filter\_contour.dir/Contour.cxx.o  
> ninja: build stopped: subcommand failed.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 13, 2023, 12:07pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/4 "2023-02-13T12:07:53Z")

</div>

Then you want to install xmlpatterns

---

<div class="post-metadata">

### Author: ![kskollepara](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kskollepara/32/10718_2.png) [@kskollepara](https://discourse.paraview.org/u/kskollepara)
#### Post date: [February 13, 2023, 12:11pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/5 "2023-02-13T12:11:22Z")

</div>

They are already installed using the system package manager. Is there any test I can perform to check if it works correctly?  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/0/0d79d096df229b4a3c807dfe28d5fcfdbd9363e3.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 13, 2023, 12:12pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/6 "2023-02-13T12:12:34Z")

</div>

Looking at your CMake gui image, it looks like you have multiple version of Qt installed that conflicts with each other.

---

<div class="post-metadata">

### Author: ![kskollepara](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kskollepara/32/10718_2.png) [@kskollepara](https://discourse.paraview.org/u/kskollepara)
#### Post date: [February 13, 2023, 12:18pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/7 "2023-02-13T12:18:25Z")

</div>

That’s because I was trying a Qt built from sources in order to remove this error (as I mentioned in my question). Since, it didn’t work, I am now using the system Qt entirely, but still have the error

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3d34524b1a93408a6d47d157068c89e90b8ef26e.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 13, 2023, 12:23pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/8 "2023-02-13T12:23:23Z")

</div>

Is `xmlpatterns` in your path ?

---

<div class="post-metadata">

### Author: ![kskollepara](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kskollepara/32/10718_2.png) [@kskollepara](https://discourse.paraview.org/u/kskollepara)
#### Post date: [February 13, 2023, 12:23pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/9 "2023-02-13T12:23:47Z")

</div>

yes

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 13, 2023, 12:25pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/10 "2023-02-13T12:25:21Z")

</div>

At this point, it is needed to try and debug what is happing in the cmake code trying to use xmlpatterns.

---

<div class="post-metadata">

### Author: ![kskollepara](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kskollepara/32/10718_2.png) [@kskollepara](https://discourse.paraview.org/u/kskollepara)
#### Post date: [February 13, 2023, 12:28pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/11 "2023-02-13T12:28:27Z")

</div>

How can I proceed to do that? I am not familiar with cmake.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 13, 2023, 12:35pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/12 "2023-02-13T12:35:04Z")

</div>

Definitely not trivial for anyone not familiar with CMake. Do not hesitate to reach out to Kitware for professional support if needed. [https://www.kitware.eu/get-support/](https://www.kitware.eu/get-support/)

---

<div class="post-metadata">

### Author: ![kskollepara](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kskollepara/32/10718_2.png) [@kskollepara](https://discourse.paraview.org/u/kskollepara)
#### Post date: [February 13, 2023, 12:35pm UTC](https://discourse.paraview.org/t/paraview-build-xmlpatterns-could-not-find-a-qt/11389/13 "2023-02-13T12:35:47Z")

</div>

Okay, thank you
