# Build against Qt 5.9

**URL:** https://discourse.paraview.org/t/build-against-qt-5-9/13653
**Category:** ParaView Support
**Created:** [January 9, 2024, 10:10am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653 "2024-01-09T10:10:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![slimwcq](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@slimwcq](https://discourse.paraview.org/u/slimwcq)
#### Post date: [January 9, 2024, 10:10am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/1 "2024-01-09T10:10:54Z")

</div>

Hi again, I have encountered the same issue on ubuntu 18.04. I tried to install the qt 5.12.12 instead of 5.9.5 but it is not the default version. Pls see the figures below. Could you pls tell me how can I configure to solve the problem? many thanks.

 ![Workspace 1_006](https://discourse.paraview.org/uploads/default/original/2X/2/2c6674d116d30d08fb468539657e67991b15d937.jpeg)  
 ![Workspace 1_007](https://discourse.paraview.org/uploads/default/original/2X/d/d7fceb8b1f7733accdc1c48d30991fab348b70ed.jpeg)

---

<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: [January 9, 2024, 10:12am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/2 "2024-01-09T10:12:50Z")

</div>

ParaView needs Qt 5.12. It is not compatible with Qt 5.9. Install Qt 5.12.

---

<div class="post-metadata">

### Author: ![slimwcq](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@slimwcq](https://discourse.paraview.org/u/slimwcq)
#### Post date: [January 9, 2024, 10:34am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/3 "2024-01-09T10:34:11Z")

</div>

thanks for the quick response. I have installed Qt 5.12.12 before this post. and the qtcreator shows the version is 5.12.12. However, when I open a new terminal, it seems that the default qt version is still 5.9.5. Could you specifically tell me how I can solve this?

 ![Selection_008](https://discourse.paraview.org/uploads/default/original/2X/d/d948126edfee98627951ca9dc0d972b2213a5064.jpeg)

---

<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: [January 9, 2024, 10:35am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/4 "2024-01-09T10:35:09Z")

</div>

This is a Qt question, not a ParaView question I’m afraid.

---

<div class="post-metadata">

### Author: ![slimwcq](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@slimwcq](https://discourse.paraview.org/u/slimwcq)
#### Post date: [January 10, 2024, 8:14am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/5 "2024-01-10T08:14:27Z")

</div>

thanks again. the Qt question has been fixed, but there`s a new problem. pls see the pics below. could you tell me how I can solve it?

 ![Selection_009](https://discourse.paraview.org/uploads/default/original/2X/6/6b2dece56abdd9cd953ae6c04acf2f7c1a25939a.jpeg)  
 ![Selection_010](https://discourse.paraview.org/uploads/default/original/2X/9/9f3ac9535bf407cda1e52d5ca80bb98fcb232925.jpeg)

---

<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: [January 10, 2024, 8:15am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/6 "2024-01-10T08:15:50Z")

</div>

You are building a much more recent version of Qt now, and ParaView 5.11 is likely not fully compatible. Any reason why you are building on old version of ParaView ?

---

<div class="post-metadata">

### Author: ![slimwcq](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e19adc/32.png) [@slimwcq](https://discourse.paraview.org/u/slimwcq)
#### Post date: [January 10, 2024, 8:38am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/7 "2024-01-10T08:38:00Z")

</div>

thanks for the quick response. because I am using OpenFOAM v2306, and directly compiled from the thirdparty 2306. I have installed the Qt5.12.12 to compile the paraview v5.11. So shall I back to the old version Qt5.12.0 to compile paraview 5.11 or install the latest paraview v5.12? Any suggestions? Many thanks.

---

<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: [January 10, 2024, 8:39am UTC](https://discourse.paraview.org/t/build-against-qt-5-9/13653/8 "2024-01-10T08:39:41Z")

</div>

> [@slimwcq](#):
>
> install the latest paraview v5.12

You are currently trying to **compile** ParaView yourself. do you really intend to ?

In any case, yes, building ParaView 5.12 should work with a recent Qt.
