CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   Paraview - CentOS (

Aurelien Thinat October 30, 2013 12:52

Paraview - CentOS
Hi everyone,

I'm trying to compile OpenFOAM/Paraview from the source files on CENTOS.
For OpenFOAM : everything is fine.

For Paraview :
I compiled qt and cmake in the ThirdParty directory. I modify the path in the makeParaview script.

Then during the configure part, I get this error :


Performing Test GLX_DEFINES_MACRO_GLX_VERSION_1_1 - failed
CMake Error at VTK/CMake/vtkTestGLX.cmake:212 (file):
file STRINGS file
"/home/trap/OpenFOAM/ThirdParty-2.2.2/Paraview-3.12.0/VTK/Rendering/OPENGL_INCLUDE_DIR-NOTFOUND/GL/glx.h" cannt be read.
Call Stack (most recent call first):
VTK/Rendering/CMakeLists.txt:506 (INCLUDE)

I reinstalled NVIDIA drivers. I checked the mesa library installation and the opengl installation with "yum". Everything seems up to date.

Does anyone know where it comes from ?

Thank you.

Aurelien Thinat October 31, 2013 04:31

Few more information :

- glx.h is in the folder "/usr/include/xcb/glx.h"
- I opened the file vtkTestGLX.cmake : it says that OPENGL_INCLUDE_DIR is defined within the function/file "FindOpenGL.cmake"which I don't understand how it works.

Aurelien Thinat October 31, 2013 07:46

1 Attachment(s)
Well, I updated the system but the compilation is still bugging.
If someone has any idea, I'd take it.

Error 1 :

[  6%] [  6%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkArrayExtents.cxx.o
Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkArrayExtentsList.cxx.o
[  6%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkArrayRange.cxx.o
[  6%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkArraySort.cxx.o
[  6%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkArrayWeights.cxx.o
[  6%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkCommonInstantiator.cxx.o
Linking CXX shared library ../../bin/
[  6%] Built target vtkCommon
make: *** [all] Error 2

Error 2 :

Linking CXX shared library ../../../bin/
[ 12%] Built target Cosmo
make[2]: *** No rule to make target `/usr/lib64/', needed by `bin/'.  Stop.
make[1]: *** [VTK/Utilities/ftgl/CMakeFiles/vtkftgl.dir/all] Error 2
make: *** [all] Error 2

The full log is enclosed.

wyldckat November 2, 2013 18:59

Greetings Aurelien,

According to this blog post: - the problem might be because the file "/usr/lib64/" is pointing to a dead link.
Try running this command to check to which file it's pointing:

ls -l /usr/lib64/
Then check that file it is pointing to. In the blog page, it was pointing to something like "/usr/lib64/", which was pointing to a non-existent file.

By the way, are you following the installation instructions from this page: ?

Best regards,

All times are GMT -4. The time now is 08:50.