I was able to get ParaView Superbuild with qt5 using the the following cmake flag
-DENABLE_qt5:BOOL=ON
Since qt5 is out of support this month, I was trying out qt6 using
-DENABLE_qt6:BOOL=ON
but end up getting a couple of qt5 binary dependencies missing. The downloadable binary has qt6 dependencies and I am wondering how that is done. Looking at https://open.cdash.org/builds/10434729
where can I get to the file
C:/glr/builds/paraview/paraview-ci/.gitlab/ci/configure_windows_vs2022_mpi.cmake
to find out what cmake arguments were used to build the windows binary?
My recommendation is to just delete any and all CMake variables in your CMakeCache.txt that start with Qt5. Then when you configure with CMake set Qt6_DIR to <qt6 path>/lib/cmake/Qt6. It should populate the remaining Qt6 variables automatically.
It’s here, but that probably isn’t helpful. The actual location where the variable is set as I described above is here.
@cory.quammen , you are right, it is not helpful. Using qt6 I compiled and with qt6 qmake on PATH, for superbuild process, I used -DENABLE_qt:BOOL=ON -DENABLE_qt6:BOOL=ON flags. For both superbuild and ParaView build process, I am getting the following error
===== begin error
– Enabled modules: VTK(170), ParaView(44 + 2)
CMake Error at CMake/ParaViewClient.cmake:609 (message):
Cannot find the xmlpatterns or xsltproc executables.
Call Stack (most recent call first):
CMake/ParaViewPlugin.cmake:1323 (paraview_client_documentation)
Plugins/AcceleratedAlgorithms/CMakeLists.txt:1 (paraview_add_plugin)
===== end error
Even with the error, in the CMakeCache.txt file, all the qt6 variables where populated with correct qt6 library files and none of the qt5 variables are found.
xmlpatterns.exe exists in the qt5 bin directory but not in the qt6 bin directory I compiled. Another issue I can think of is because it could be I may have missed a configuration with my qt6 compilation. However, when I installed qt6 from the binary, xmlpatterns.exe is also not found. If xmlpatterns.exe is qt5 specific file, why when configured ParaView with qt6, it is still looking for xmlpatterns.exe file?
Qt6 no longer comes with xmlpatterns. You can do the following to get past this in your ParaView-only build (not superbuild):
Disable help generation. This is the easiest. Set the PARAVIEW_USE_QTHELP CMake variable to OFF. Help generation on master and release branches is currently broken, so this probably your best option for now.
2). Install xsltproc on your system and point ParaViewClient_xsltproc_executable to it.
3). Point ParaViewClient_xsltproc_executable to the xmlpatterns in your Qt5 install.
Thank you Cory for the CMake variables. No worries. I was thinking I am missing some CMake variables in my setting to get ParaView to compile with qt6 now. I can wait until it is resolved to get my qt6 going.