ParaView cannot be configured with `-DPARAVIEW_QT_VERSION=5` if Qt6 installed on the system
ParaView cannot be configured with -DPARAVIEW_QT_VERSION=5
if Qt6 installed on the system
Steps to reproduce:
- Archlinux
- install both Qt5 and Qt6 package
- configure ParaView with
cmake -DPARAVIEW_QT_VERSION=5 ../src/
- fails to generate:
[...]
-- Configuring done (92.9s)
CMake Error: The INTERFACE_QT_MAJOR_VERSION property of "Qt5::Core" does
not agree with the value of QT_MAJOR_VERSION already determined
for "pqWidgets".
[...]
CMake Error: The INTERFACE_QT_MAJOR_VERSION property of "Qt5::Core" does
not agree with the value of QT_MAJOR_VERSION already determined
for "StreamLinesRepresentation".
CMake Error: The INTERFACE_QT_MAJOR_VERSION property of "Qt5::Core" does
not agree with the value of QT_MAJOR_VERSION already determined
for "paraview".
-- Generating done (2.4s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Edit:
a simple fix: cmake -DPARAVIEW_QT_VERSION=5 -DVTK_QT_VERSION=5 ../src/
Edited by Mathieu Westphal (Kitware)