[Paraview] Build errors due to missing OSMesa include directory

Paul Melis paul.melis at surfsara.nl
Tue Aug 6 11:33:07 EDT 2013


Hi,

I get build errors with 3.98.1 and the following config command:

$HOME/software/cmake-2.8.11.2/bin/cmake \
     -DCMAKE_C_COMPILER=/opt/intel/impi/4.1.0.024/bin64/mpicc \
     -DCMAKE_CXX_COMPILER=/opt/intel/impi/4.1.0.024/bin64/mpicxx \
     -DCMAKE_INSTALL_PREFIX=$HOME/software/paraview-osmesa-3.98.1 \
     -DCMAKE_BUILD_TYPE=Release \
     -DPARAVIEW_BUILD_QT_GUI=OFF \
     -DPARAVIEW_USE_MPI=ON \
     -DPARAVIEW_ENABLE_PYTHON=ON \
     -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON \
     -DVTK_USE_MPI=ON \
     -DVTK_USE_X=OFF \
     -DVTK_USE_OFFSCREEN=ON \
     -DVTK_OPENGL_HAS_OSMESA=ON \
     -DVTK_MPIRUN_EXE:FILEPATH=/opt/intel/impi/4.1.0.024/bin64/mpirun \
     -DOSMESA_INCLUDE_DIR=$HOME/software/osmesa-7.9.2/include \
     -DOPENGL_INCLUDE_DIR=$HOME/software/osmesa-7.9.2/include \
     -DOPENGL_gl_LIBRARY="" \
     -DOPENGL_glu_LIBRARY=$HOME/software/osmesa-7.9.2/lib/libGLU.so \
     -DOSMESA_LIBRARY=$HOME/software/osmesa-7.9.2/lib/libOSMesa.so \
     ../ParaView-3.98.1-source

Seems to be due to OPENGL_INCLUDE_DIR not being used in all the right 
places. The correct include path is present in the cache:

[paulm at int2 t]$ grep osmesa-7.9.2 CMakeCache.txt
IceTGL_LIB_DEPENDS:STATIC=general;m;general;IceTCore;general;/home/paulm/software/osmesa-7.9.2/lib/libOSMesa.so;
OPENGL_INCLUDE_DIR:PATH=/home/paulm/software/osmesa-7.9.2/include
OPENGL_glu_LIBRARY:FILEPATH=/home/paulm/software/osmesa-7.9.2/lib/libGLU.so
OSMESA_INCLUDE_DIR:UNINITIALIZED=/home/paulm/software/osmesa-7.9.2/include
OSMESA_LIBRARY:UNINITIALIZED=/home/paulm/software/osmesa-7.9.2/lib/libOSMesa.so
vtkRenderingOpenGL_LIB_DEPENDS:STATIC=general;vtkImagingHybrid;general;vtkRenderingCore;general;/home/paulm/software/osmesa-7.9.2/lib/libOSMesa.so;
vtkftgl_LIB_DEPENDS:STATIC=general;/home/paulm/software/osmesa-7.9.2/lib/libOSMesa.so;general;vtkfreetype;
vtkgl2ps_LIB_DEPENDS:STATIC=general;/home/paulm/software/osmesa-7.9.2/lib/libOSMesa.so;general;m;general;vtkzlib;general;vtkpng;general;m;
FIND_PACKAGE_MESSAGE_DETAILS_OSMesa:INTERNAL=[/home/paulm/software/osmesa-7.9.2/lib/libOSMesa.so][/home/paulm/software/osmesa-7.9.2/include][v()]

But apparently the correct include path isn't added:

[ 48%] Built target IceTGL
[ 48%] Built target icetTests_mpi
[ 48%] Building CXX object 
ParaViewCore/VTKExtensions/Rendering/CMakeFiles/vtkPVVTKExtensionsRendering.dir/vtkPVDefaultPass.cxx.o
In file included from /home/paulm/c/t/VTK/Rendering/OpenGL/vtkgl.h:22,
                  from 
/home/paulm/c/ParaView-3.98.1-source/ParaViewCore/VTKExtensions/Rendering/vtkPVDefaultPass.cxx:21:
/home/paulm/c/ParaView-3.98.1-source/VTK/Rendering/OpenGL/vtkOpenGL.h:27:43: 
error: GL/gl.h: No such file or directory
In file included from 
/home/paulm/c/ParaView-3.98.1-source/ParaViewCore/VTKExtensions/Rendering/vtkPVDefaultPass.cxx:21:
/home/paulm/c/t/VTK/Rendering/OpenGL/vtkgl.h:11277: error: 'GLenum' does 
not name a type
/home/paulm/c/t/VTK/Rendering/OpenGL/vtkgl.h:11278: error: 'GLenum' does 
not name a type
/home/paulm/c/t/VTK/Rendering/OpenGL/vtkgl.h:11279: error: 'GLenum' does 
not name a type
/home/paulm/c/t/VTK/Rendering/OpenGL/vtkgl.h:11280: error: 'GLenum' does 
not name a type
/home/paulm/c/t/VTK/Rendering/OpenGL/vtkgl.h:11281: error: 'GLenum' does 
not name a type


[paulm at int2 t]$ make VERBOSE=1 >out 2>&1
[paulm at int2 t]$ grep mpicxx out
cd /home/paulm/c/t/ParaViewCore/VTKExtensions/Rendering && 
/opt/intel/impi/4.1.0.024/bin64/mpicxx   -DMPICH_IGNORE_CXX_SEEK 
-DVTK_IN_VTK -DvtkPVVTKExtensionsRendering_EXPORTS -O3 -DNDEBUG -fPIC 
-I/home/paulm/c/t -I/home/paulm/c/t/VTK/Charts/Core 
-I/home/paulm/c/ParaView-3.98.1-source/VTK/Charts/Core 
-I/home/paulm/c/t/VTK/Common/Color 
-I/home/paulm/c/ParaView-3.98.1-source/VTK/Common/Color 
-I/home/paulm/c/t/VTK/Common/DataModel 
-I/home/paulm/c/ParaView-3.98.1-source/VTK/Common/DataModel 
-I/home/paulm/c/t/VTK/Common/Math 
-I/home/paulm/c/ParaView-3.98.1-source/VTK/Common/Math 
-I/home/paulm/c/t/VTK/Common/Core 
-I/home/paulm/c/ParaView-3.98.1-source/VTK/Common/Core 
-I/home/paulm/c/t/VTK/Utilities/KWSys 
-I/home/paulm/c/ParaView-3.98.1-source/VTK/Utilities/KWSys 
-I/home/paulm/c/t/VTK/Common/Misc -I/home/paulm....
[paulm at int2 t]$ grep mpicxx out | grep osmesa-7.9.2
[paulm at int2 t]$

Any clues which CMake variables to check to get this compile working?

Thanks,
Paul

PS I can't try the 4.x version as we want to do a comparison against 
benchmarks done on a different system with 3.98.1



-- 
** SURFsara heeft een nieuw algemeen telefoonnummer: 020 800 1300 **

Paul Melis
| Groepsleider & Adviseur Visualisatie | SURFsara |
| Science Park 140 | 1098 XG Amsterdam |
| T 020 592 30 59 | paul.melis at surfsara.nl | www.surfsara.nl |

Afwezig op donderdag


More information about the ParaView mailing list