|
[Sponsors] |
[OpenFOAM.org] OpenFOAM Paraview build error QX11info missing |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 22, 2017, 01:33 |
OpenFOAM Paraview build error QX11info missing
|
#1 |
New Member
Stas Sergienko
Join Date: Aug 2017
Posts: 3
Rep Power: 9 |
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? |
|
August 23, 2017, 05:36 |
QtWebkit
|
#2 |
New Member
Norbert Vogl
Join Date: Mar 2009
Posts: 2
Rep Power: 0 |
You have also to install QtWebkit. As far as I know it is not included in the QT distribution.
Norbert |
|
August 25, 2017, 14:45 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick question @stasserg: With Linux Distribution and version are you using?
__________________
|
|
August 25, 2017, 20:36 |
|
#4 |
New Member
Stas Sergienko
Join Date: Aug 2017
Posts: 3
Rep Power: 9 |
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. |
|
September 11, 2017, 05:01 |
Same problem - but can't turn on VTK Use X
|
#5 |
Member
Wouter
Join Date: Aug 2013
Posts: 41
Rep Power: 13 |
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. |
|
October 1, 2017, 16:13 |
Solved (for now :) )
|
#6 |
Member
Wouter
Join Date: Aug 2013
Posts: 41
Rep Power: 13 |
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 - 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 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 - 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 - 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. Last edited by wyldckat; December 31, 2017 at 12:48. Reason: Added [CODE][/CODE] markers |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 07:25 |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |