# Building error regarding Qt verison

**URL:** https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208
**Category:** ParaView Support
**Created:** [January 12, 2021, 10:06am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208 "2021-01-12T10:06:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![30Kaz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/30kaz/32/5686_2.png) [@30Kaz](https://discourse.paraview.org/u/30Kaz)
#### Post date: [January 12, 2021, 10:06am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/1 "2021-01-12T10:06:22Z")

</div>

■I was trying to build ParaView on Ubuntsu 18.04, foloowing

[https://gitlab.kitware.com/paraview/paraview/blob/master/Documentation/dev/build.md](https://gitlab.kitware.com/paraview/paraview/blob/master/Documentation/dev/build.md)

■And when I executed the following,

cmake -GNinja -DPARAVIEW\_USE\_PYTHON=ON -DPARAVIEW\_USE\_MPI=ON -DVTK\_SMP\_IMPLEMENTATION\_TYPE=TBB -DCMAKE\_BUILD\_TYPE=Release …/paraview

■I get warnings and errors like

CMake Warning at VTK/CMake/vtkModule.cmake:4222 (find\_package):  
Could not find a configuration file for package “Qt5” that is compatible  
with requested version “5.12”.

The following configuration files were considered but not accepted:

```
/usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.9.5

```

Call Stack (most recent call first):  
Qt/Core/CMakeLists.txt:166 (vtk\_module\_find\_package)

CMake Error at VTK/CMake/vtkModule.cmake:4228 (message):  
Could not find the Qt5 external dependency.  
Call Stack (most recent call first):  
Qt/Core/CMakeLists.txt:166 (vtk\_module\_find\_package)

– Configuring incomplete, errors occurred!  
See also “/home/kazuya/paraview\_build/CMakeFiles/CMakeOutput.log”.  
See also “/home/kazuya/paraview\_build/CMakeFiles/CMakeError.log”.

■As the warning says, I thought that this is due to Qt version, so installed Qt 5.12. And this is apparently okay as below.

kazuya@en005031:~/Qt5.12.0/5.12.0/gcc\_64/lib$ qmake --version  
QMake version 3.1  
Using Qt version 5.12.0 in /home/kazuya/Qt5.12.0/5.12.0/gcc\_64/lib

■I’ve got no idea how to solve this, so I’d be really grateful someone could help me.  
Thanks in advance. Kazuya.

---

<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 12, 2021, 10:07am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/2 "2021-01-12T10:07:42Z")

</div>

Clearly, you should configure CMake to find Qt 5.12 instead of 5.9.5

---

<div class="post-metadata">

### Author: ![30Kaz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/30kaz/32/5686_2.png) [@30Kaz](https://discourse.paraview.org/u/30Kaz)
#### Post date: [January 12, 2021, 10:15am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/3 "2021-01-12T10:15:07Z")

</div>

Thank you for your response. Could you specifically tell me how I can do this?

---

<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 12, 2021, 10:19am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/4 "2021-01-12T10:19:40Z")

</div>

First clean your build dir, then, something like:

`cmake -DQt5_DIR=~/Qt5.12.0/5.12.0/lib/cmake/Qt5 ../paraview`

---

<div class="post-metadata">

### Author: ![30Kaz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/30kaz/32/5686_2.png) [@30Kaz](https://discourse.paraview.org/u/30Kaz)
#### Post date: [January 12, 2021, 10:53am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/5 "2021-01-12T10:53:06Z")

</div>

■Now, the error regarding Qt has hopefully gone, but the next step ninja doesn’t work. In /paraview\_build/bin, I only find  
paraview.conf  
paraview-config

After cmake, there were some suspicious “Failed”, “not found” as below, which might be related?

kazuya@en005031:~/paraview\_build$ cmake -DQt5\_DIR=/home/kazuya/Qt5.12.0/5.12.0/gcc\_64/lib/cmake/Qt5 …/paraview  
– Performing Test CMAKE\_HAVE\_LIBC\_PTHREAD  
– Performing Test CMAKE\_HAVE\_LIBC\_PTHREAD - Failed  
– Looking for pthread\_create in pthreads  
– Looking for pthread\_create in pthreads - not found  
– Looking for pthread\_create in pthread  
– Looking for pthread\_create in pthread - found  
– Found Threads: TRUE

– Looking for getsockname in socket  
– Looking for getsockname in socket - not found  
– Performing Test COMPILER\_SUPPORT\_Wshorten64to32  
– Performing Test COMPILER\_SUPPORT\_Wshorten64to32 - Failed  
– Performing Test COMPILER\_SUPPORT\_Wenumconversion  
– Performing Test COMPILER\_SUPPORT\_Wenumconversion - Failed  
– Performing Test COMPILER\_SUPPORT\_Wcpp11extensions  
– Performing Test COMPILER\_SUPPORT\_Wcpp11extensions - Failed  
– Performing Test COMPILER\_SUPPORT\_Wdoublepromotion  
– Performing Test COMPILER\_SUPPORT\_wd981  
– Performing Test COMPILER\_SUPPORT\_wd981 - Failed  
– Performing Test COMPILER\_SUPPORT\_wd2304  
– Performing Test COMPILER\_SUPPORT\_wd2304 - Failed  
– Performing Test COMPILER\_SUPPORT\_STRICTANSI  
– Performing Test COMPILER\_SUPPORT\_STRICTANSI - Failed  
– Performing Test COMPILER\_SUPPORT\_Qunusedarguments  
– Performing Test COMPILER\_SUPPORT\_Qunusedarguments - Failed  
– Looking for sys/endian.h  
– Looking for sys/endian.h - not found  
– Looking for HAVE\_BSWAP\_16  
– Looking for HAVE\_BSWAP\_16 - not found  
– Looking for HAVE\_BSWAP\_32  
– Looking for HAVE\_BSWAP\_32 - not found  
– Looking for HAVE\_BSWAP\_64  
– Looking for HAVE\_BSWAP\_64 - not found  
– Check size of \_\_int64  
– Check size of \_\_int64 - failed  
– Check size of unsigned \_\_int64  
– Check size of unsigned \_\_int64 - failed  
– Looking for arc4random\_buf  
– Looking for arc4random\_buf - not found  
– Looking for arc4random  
– Looking for arc4random - not found  
– Looking for off\_t  
– Looking for off\_t - not found  
CMake Warning at VTK/Rendering/OpenGL2/CMakeLists.txt:359 (message):  
X11::Xcursor not found; custom cursors will be ignored.

– Looking for shl\_load in dld;  
– Looking for shl\_load in dld; - not found  
– Looking for 16 include files sys/types.h, …, ansidecl.h  
– Looking for 16 include files sys/types.h, …, ansidecl.h - not found  
– Looking for 17 include files sys/types.h, …, dl.h  
– Looking for 17 include files sys/types.h, …, dl.h - not found  
– Looking for 17 include files sys/types.h, …, float.h  
– Looking for \_stat  
– Looking for \_stat - not found  
– Looking for 13 include files sys/file.h, …, mach/mach\_time.h  
– Looking for 13 include files sys/file.h, …, mach/mach\_time.h - not found  
– Looking for 13 include files sys/file.h, …, io.h  
– Looking for 13 include files sys/file.h, …, io.h - not found  
– Looking for 13 include files sys/file.h, …, winsock2.h  
– Looking for 13 include files sys/file.h, …, winsock2.h - not found  
– Check size of \_\_int64  
– Check size of \_\_int64 - failed

– Performing Other Test HAVE\_\_\_TM\_GMTOFF - Failed  
– Performing Other Test HAVE\_TM\_ZONE - Failed  
– Performing Other Test HAVE\_STRUCT\_TM\_TM\_ZONE - Failed  
– Performing Other Test HAVE\_STRUCT\_VIDEOCONFIG - Failed  
– Performing Other Test HAVE\_STRUCT\_TEXT\_INFO - Failed  
– Looking for \_getvideoconfig  
– Looking for \_getvideoconfig - not found  
– Looking for gettextinfo  
– Looking for gettextinfo - not found  
– Looking for \_scrsize  
– Looking for \_scrsize - not found  
– Looking for GetConsoleScreenBufferInfo  
– Looking for GetConsoleScreenBufferInfo - not found  
– Looking for setsysinfo  
– Looking for setsysinfo - not found  
– Checking IF your system converts long double to (unsigned) long values with special algorithm… no  
– Checking IF your system can convert (unsigned) long to long double values with special algorithm… no  
– Checking IF the cpu is power9 and cannot correctly converting long double values… no  
– Check if the system is big endian  
– Searching 16 bit integer

– Looking for \_filelengthi64  
– Looking for \_filelengthi64 - not found  
– Looking for strlcat  
– Looking for strlcat - not found  
– Looking for st\_blocksize  
– Looking for st\_blocksize - not found  
– Check size of longlong  
– Check size of longlong - failed

– Check size of uchar  
– Check size of uchar - failed

– Check size of schar  
– Check size of schar - failed  
– Performing Test have\_flag\_logical-op-parentheses  
– Performing Test have\_flag\_logical-op-parentheses - Failed  
– Performing Test have\_flag\_shift-op-parentheses  
– Performing Test have\_flag\_shift-op-parentheses - Failed  
– Performing Test have\_flag\_tautological-compare  
– Testing HDF5 Multi\_Dataset - NOT FOUND  
– Testing HDF5 Collective\_metadata - NOT FOUND  
– Testing HDF5 H5Pset\_file\_space\_strategy - NOT FOUND  
– Performing Test CHECK\_HAVE\_STAT64\_STRUCT  
– Performing Test CHECK\_HAVE\_STAT64\_STRUCT - Failed  
– Found Git: /usr/bin/git (found version “2.17.1”)  
– Check size of long float  
– Check size of long float - failed  
– Check size of long double  
– Check size of long double - done  
– Check size of void \*  
– Check size of void \* - done  
– Bitwidth Mapping: preferring `long` over `long long` for c++11 compatibility  
– Bitwidth Mapping Results:  
– conduit::int8 native type: signed char  
– conduit::int16 native type: signed short  
– conduit::int32 native type: signed int  
– conduit::int64 native type: signed long  
– conduit::uint8 native type: unsigned char  
– conduit::uint16 native type: unsigned short  
– conduit::uint32 native type: unsigned int  
– conduit::uint64 native type: unsigned long  
– conduit::float32 native type: float  
– conduit::float64 native type: double  
– Enabled modules: VTK(140), ParaView(39 + 2)  
– Configuring done  
– Generating done  
– Build files have been written to: /home/kazuya/paraview\_build  
kazuya@en005031:~/paraview\_build$ ninja  
ninja: error: loading ‘build.ninja’: No such file or directory

---

<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 12, 2021, 10:57am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/6 "2021-01-12T10:57:07Z")

</div>

If you want to use ninja, you should configure for it.

First clean your build dir, then, something like:

`cmake -GNinja -DQt5_DIR=~/Qt5.12.0/5.12.0/lib/cmake/Qt5 ../paraview`

---

<div class="post-metadata">

### Author: ![30Kaz](https://discourse.paraview.org/user_avatar/discourse.paraview.org/30kaz/32/5686_2.png) [@30Kaz](https://discourse.paraview.org/u/30Kaz)
#### Post date: [January 12, 2021, 11:26am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/7 "2021-01-12T11:26:45Z")

</div>

Now I have successfully completed build and was able to run ParaView.  
Thank you very much for your kind 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: [January 9, 2024, 10:12am UTC](https://discourse.paraview.org/t/building-error-regarding-qt-verison/6208/9 "2024-01-09T10:12:20Z")

</div>

A post was split to a new topic: [Build against Qt 5.9](https://discourse.paraview.org/t/build-against-qt-5-9/13653)
