OpenFOAM Paraview build error QX11info missing
I am trying to build ParaView 5.4.0 with PARAVIEW_BUILD_QT_GUI=ON as a part of OpenFOAM 5.0. And I am getting an error:
/home/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/VTK/GUISupport/Qt/QVTKWidget.cxx:50:11: fatal error: QX11Info: No such file or directory # include <QX11Info> ^~~~~~~~~~ compilation terminated. I think my QT 5.6.2 built is correctly and I can see QX11Info there: $ ls Qt5/include/QtX11Extras/ QX11Info QtX11Extras QtX11ExtrasDepends QtX11ExtrasVersion qtx11extrasglobal.h qtx11extrasversion.h qx11info_x11.h So how do I point ParaView to QT headers? |
QtWebkit
You have also to install QtWebkit. As far as I know it is not included in the QT distribution.
Norbert |
Quick question @stasserg: With Linux Distribution and version are you using?
|
Thanks for the answers.
I actually found a solution my problem, after talking to ParaView developers. My VTK_USE_X was set to OFF. I also was missing libGL.so (I build latest mesa from source) so my Qt5.6.2 was not building properly. After addressing these 2 I was able to build ParaView, and PVReaders afterwards. |
Same problem - but can't turn on VTK Use X
Dear Stas,
I have the exact same problem: /home/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/VTK/GUISupport/Qt/QVTKWidget.cxx:50:11: fatal error: QX11Info: No such file or directory And indeed, the files are actually present, like in your case. Are you perhaps following this procedure as well, to install Paraview for OS Mesa?: https://www.paraview.org/Wiki/ParaVi...ew_And_Mesa_3D I need it to run post processing scripts on a server without screen. So I too would like to include the header files of QtExtras in the paraview installation. However, I don't have the option to turn on VTK USE X, as I actually need it. Did you perhaps find a way to solve it using a reference to the header file? Thanks a lot! Wouter. |
Solved (for now :) )
Hi Stas, and anyone alse facing similar issues,
finally it worked, in part thanks to the suggestions Stas mailed me! Here is a short overview of the install options I used (for installation on an amazon server): *Packages to be installed* Code:
sudo apt-get install build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses5-dev libxt-dev freeglut3-dev pkg-config autoconf python-pip gcc dos2unix - download source files (I used 3.9.1) - build with: Code:
cmake \ Configure as follows: Code:
./configure \ - download source file (I used 5.9.1) - configure as follows Code:
./configure \ - Set the enviroment if needed (OpenFOAM variables etc) - download paraview source files (I used 5.4) - build as follows: Code:
cmake ../ParaView-v5.4.0/ \ Hope this helps for others! Cheers Wouter. |
All times are GMT -4. The time now is 18:44. |