CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Paraview - CentOS (https://www.cfd-online.com/Forums/openfoam-installation/125767-paraview-centos.html)

Aurelien Thinat October 30, 2013 11: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 :

Code:

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 03: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 06: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 :
Code:

[  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/libvtkCommon.so
[  6%] Built target vtkCommon
make: *** [all] Error 2

Error 2 :
Code:

Linking CXX shared library ../../../bin/libCosmo.so
[ 12%] Built target Cosmo
make[2]: *** No rule to make target `/usr/lib64/libGL.so', needed by `bin/libvtkftgl.so.pv3.12'.  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 17:59

Greetings Aurelien,

According to this blog post: http://techtidings.blogspot.pt/2012/...it-ubuntu.html - the problem might be because the file "/usr/lib64/libGL.so" is pointing to a dead link.
Try running this command to check to which file it's pointing:
Code:

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

By the way, are you following the installation instructions from this page: http://openfoamwiki.net/index.php/In...CentOS_SL_RHEL ?

Best regards,
Bruno


All times are GMT -4. The time now is 13:28.