CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM Paraview build error QX11info missing (https://www.cfd-online.com/Forums/openfoam-installation/191852-openfoam-paraview-build-error-qx11info-missing.html)

stasserg August 22, 2017 00:33

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?

novog August 23, 2017 04:36

QtWebkit
 
You have also to install QtWebkit. As far as I know it is not included in the QT distribution.

Norbert

wyldckat August 25, 2017 13:45

Quick question @stasserg: With Linux Distribution and version are you using?

stasserg August 25, 2017 19:36

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.

wouterremmerie September 11, 2017 04:01

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.

wouterremmerie October 1, 2017 15:13

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

sudo apt-get build-dep mesa

*Install LLVM*
- download source files (I used 3.9.1)
- build with:
Code:

cmake                                          \
 -DCMAKE_BUILD_TYPE=Release                    \
 -DCMAKE_INSTALL_PREFIX=/usr                  \
 -DLLVM_BUILD_LLVM_DYLIB=ON                    \
 -DLLVM_ENABLE_RTTI=ON                        \
 -DLLVM_INSTALL_UTILS=ON                      \
 -DLLVM_TARGETS_TO_BUILD:STRING=X86            \
 ../llvm-3.9.1.src

*Install OS Mesa*
Configure as follows:
Code:

./configure                                        \
 --prefix=/usr                                    \
 --libdir=/usr/lib                                \
 --enable-opengl --disable-gles1 --disable-gles2  \
 --disable-va --disable-xvmc --disable-vdpau      \
 --enable-shared-glapi                            \
 --disable-texture-float                          \
 --enable-gallium-llvm --enable-llvm-shared-libs  \
 --with-llvm-prefix=/usr                          \
 --with-gallium-drivers=swrast,swr                \
 --disable-dri --with-dri-drivers=                \
 --disable-egl --with-egl-platforms= --disable-gbm \
 --disable-glx                                    \
 --disable-osmesa --enable-gallium-osmesa

*Install QT*
- download source file (I used 5.9.1)
- configure as follows
Code:

./configure                    \
-prefix /opt/Qt5.9              \
-nomake tests                  \
-nomake examples                \
-opensource                    \
-confirm-license                \
-release                        \
-opengl

*Build paraview*
- 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/                                        \
 -DCMAKE_INSTALL_PREFIX="$WM_THIRD_PARTY_DIR/platforms/linux64Gcc/ParaView-5.4.0"\
 -DQt5_DIR="/opt/Qt5.9/lib/cmake/Qt5"                            \
 -DPARAVIEW_QT_VERSION:STRING=5                                  \
 -DQT_QMAKE_EXECUTABLE:PATH="/opt/Qt5.9/bin/qmake"              \
 -DPARAVIEW_BUILD_QT_GUI=OFF                                    \
 -DVTK_USE_X=OFF                                                \
 -DOPENGL_INCLUDE_DIR=IGNORE                                    \
 -DOPENGL_xmesa_INCLUDE_DIR=IGNORE                              \
 -DOPENGL_gl_LIBRARY=IGNORE                                      \
 -DOSMESA_INCLUDE_DIR="/usr/include/GL"                          \
 -DOSMESA_LIBRARY="/usr/lib/libOSMesa.so"                  \
 -DVTK_OPENGL_HAS_OSMESA=ON                                      \
 -DVTK_USE_OFFSCREEN=OFF                                        \
 -DPARAVIEW_ENABLE_PYTHON=ON                                    \
 -DPYTHON_INCLUDE_PATH="/usr/include/python2.7"                  \
 -DPYTHON_LIBRARY="/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0"\
 -DBUILD_SHARED_LIBS:BOOL=ON                                    \
 -DVTK_USE_RPATH:BOOL=OFF                                        \
 -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON                    \
 -DBUILD_TESTING:BOOL=OFF



Hope this helps for others!

Cheers

Wouter.


All times are GMT -4. The time now is 18:44.