[Paraview] Build errors due to missing OSMesa include directory

Burlen Loring bloring at lbl.gov
Tue Aug 6 16:29:28 EDT 2013


I wonder if you could get by setting

CMAKE_CXX_FLAGS=-I/home/paulm/software/osmesa-7.9.2/include

?

On 08/06/2013 12:58 PM, Paul Melis wrote:
> On 08/06/13 20:48, Burlen Loring wrote:
>> That's a good reason to do so, ;-) I think I've always (PV > 3.10) 
>> set opengl_gl_library pointing to os mesa library... Some of the info 
>> on those pages is out dated, my mesa configure lines look a bit 
>> different too.
>>
>> Good luck, be sure to report back what finally works for you.
>
> Setting opengl_gl_library didn't help, unfortunately, still the same 
> compile error due to GL/gl.h not being found.
>
> ...
> /home/paulm/c/ParaView-3.98.1-source/ParaViewCore/VTKExtensions/Rendering/vtkPVDefaultPass.cxx:45: 
> error: 'glMatrixMode' was not declared in this scope
> make[2]: *** 
> [ParaViewCore/VTKExtensions/Rendering/CMakeFiles/vtkPVVTKExtensionsRendering.dir/vtkPVDefaultPass.cxx.o] 
> Error 1
> make[1]: *** 
> [ParaViewCore/VTKExtensions/Rendering/CMakeFiles/vtkPVVTKExtensionsRendering.dir/all] 
> Error 2
> make: *** [all] Error 2
>
> It seems the correct path gets added in a lot of places in the 
> generated makefile stuff, just not for the ParaViewCore part:
>
> [paulm at int2 t]$ find . -name flags.make | xargs grep -l 
> software/osmesa-7.9.2/include
> ./ThirdParty/IceT/vtkicet/src/communication/CMakeFiles/IceTMPI.dir/flags.make 
>
> ./ThirdParty/IceT/vtkicet/src/gl/CMakeFiles/IceTGL.dir/flags.make
> ./ThirdParty/IceT/vtkicet/src/ice-t/CMakeFiles/IceTCore.dir/flags.make
> ./ThirdParty/IceT/vtkicet/tests/CMakeFiles/icetTests_mpi.dir/flags.make
> ./VTK/ThirdParty/gl2ps/vtkgl2ps/CMakeFiles/vtkgl2ps.dir/flags.make
> ./VTK/ThirdParty/ftgl/CMakeFiles/vtkftgl.dir/flags.make
> ./VTK/IO/Export/CMakeFiles/vtkIOExportPythonD.dir/flags.make
> ./VTK/IO/Export/CMakeFiles/vtkIOExportPython.dir/flags.make
> ./VTK/IO/Export/CMakeFiles/vtkIOExport.dir/flags.make
> ./VTK/Rendering/VolumeOpenGL/CMakeFiles/vtkRenderingVolumeOpenGL.dir/flags.make 
>
> ./VTK/Rendering/VolumeOpenGL/CMakeFiles/vtkRenderingVolumeOpenGLPython.dir/flags.make 
>
> ./VTK/Rendering/VolumeOpenGL/CMakeFiles/vtkRenderingVolumeOpenGLPythonD.dir/flags.make 
>
> ./VTK/Rendering/GL2PS/CMakeFiles/vtkRenderingGL2PS.dir/flags.make
> ./VTK/Rendering/GL2PS/CMakeFiles/vtkRenderingGL2PSPython.dir/flags.make
> ./VTK/Rendering/GL2PS/CMakeFiles/vtkRenderingGL2PSPythonD.dir/flags.make
> ./VTK/Rendering/Parallel/CMakeFiles/vtkRenderingParallel.dir/flags.make
> ./VTK/Rendering/Parallel/CMakeFiles/vtkRenderingParallelPython.dir/flags.make 
>
> ./VTK/Rendering/Parallel/CMakeFiles/vtkRenderingParallelPythonD.dir/flags.make 
>
> ./VTK/Rendering/FreeTypeOpenGL/CMakeFiles/vtkRenderingFreeTypeOpenGL.dir/flags.make 
>
> ./VTK/Rendering/FreeTypeOpenGL/CMakeFiles/vtkRenderingFreeTypeOpenGLPythonD.dir/flags.make 
>
> ./VTK/Rendering/FreeTypeOpenGL/CMakeFiles/vtkRenderingFreeTypeOpenGLPython.dir/flags.make 
>
> ./VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2DPython.dir/flags.make 
>
> ./VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2DPythonD.dir/flags.make 
>
> ./VTK/Rendering/Context2D/CMakeFiles/vtkRenderingContext2D.dir/flags.make
> ./VTK/Rendering/Label/CMakeFiles/vtkRenderingLabel.dir/flags.make
> ./VTK/Rendering/Label/CMakeFiles/vtkRenderingLabelPythonD.dir/flags.make
> ./VTK/Rendering/Label/CMakeFiles/vtkRenderingLabelPython.dir/flags.make
> ./VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGLPython.dir/flags.make
> ./VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGLPythonD.dir/flags.make 
>
> ./VTK/Rendering/OpenGL/CMakeFiles/vtkRenderingOpenGL.dir/flags.make
> ./VTK/Rendering/HybridOpenGL/CMakeFiles/vtkRenderingHybridOpenGLPython.dir/flags.make 
>
> ./VTK/Rendering/HybridOpenGL/CMakeFiles/vtkRenderingHybridOpenGLPythonD.dir/flags.make 
>
> ./VTK/Rendering/HybridOpenGL/CMakeFiles/vtkRenderingHybridOpenGL.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestKernelConvolution.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestVortexFilter.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestBOVIO.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestFieldTracer.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestPoincareMapper.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestFieldTopologyMapper.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestFTLE.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/Testing/CMakeFiles/SciberQuestToolKit-TestPlaneSource.dir/flags.make 
>
> ./Plugins/SciberQuestToolKit/CMakeFiles/SciberQuestToolKit.dir/flags.make
>
> [paulm at int2 t]$ grep osmesa 
> ParaViewCore/VTKExtensions/Rendering/CMakeFiles/vtkPVVTKExtensionsRendering.dir/flags.make
> [paulm at int2 t]$
>
> The strange thing is that I've been using the cmake config line I 
> posted earlier on a different cluster and there it works fine.
>
> Paul



More information about the ParaView mailing list