CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] OpenFOAM Paraview build error QX11info missing

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By stasserg

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2017, 01:33
Default OpenFOAM Paraview build error QX11info missing
  #1
New Member
 
Stas Sergienko
Join Date: Aug 2017
Posts: 3
Rep Power: 9
stasserg is on a distinguished road
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?
stasserg is offline   Reply With Quote

Old   August 23, 2017, 05:36
Default QtWebkit
  #2
New Member
 
Norbert Vogl
Join Date: Mar 2009
Posts: 2
Rep Power: 0
novog is on a distinguished road
You have also to install QtWebkit. As far as I know it is not included in the QT distribution.

Norbert
novog is offline   Reply With Quote

Old   August 25, 2017, 14:45
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question @stasserg: With Linux Distribution and version are you using?
__________________
wyldckat is offline   Reply With Quote

Old   August 25, 2017, 20:36
Default
  #4
New Member
 
Stas Sergienko
Join Date: Aug 2017
Posts: 3
Rep Power: 9
stasserg is on a distinguished road
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.
wyldckat likes this.
stasserg is offline   Reply With Quote

Old   September 11, 2017, 05:01
Default Same problem - but can't turn on VTK Use X
  #5
Member
 
Wouter
Join Date: Aug 2013
Posts: 41
Rep Power: 13
wouterremmerie is on a distinguished road
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 is offline   Reply With Quote

Old   October 1, 2017, 16:13
Default Solved (for now :) )
  #6
Member
 
Wouter
Join Date: Aug 2013
Posts: 41
Rep Power: 13
wouterremmerie is on a distinguished road
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.

Last edited by wyldckat; December 31, 2017 at 12:48. Reason: Added [CODE][/CODE] markers
wouterremmerie is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:38.