[Paraview] 3.12.0-RC3: could not open source file "GL/gl.h" compiling vtkIceTSynchronizedRenderers.cxx

Takuya OSHIMA oshima at eng.niigata-u.ac.jp
Mon Nov 7 08:23:03 EST 2011


Yes /nfs/v14/v14006/opt/Mesa-7.11/include/GL contains gl.h:

ls -al /nfs/v14/v14006/opt/Mesa-7.11/include/GL
total 1088
drwxr-xr-x 2 v14006 v14   4096 Oct 25 20:33 .
drwxr-xr-x 3 v14006 v14   4096 Oct 25 17:15 ..
-rw-r--r-- 1 v14006 v14 639607 Oct 25 20:33 glext.h
-rw-r--r-- 1 v14006 v14   4376 Oct 25 20:33 glfbdev.h
-rw-r--r-- 1 v14006 v14  84670 Oct 25 20:33 gl.h
-rw-r--r-- 1 v14006 v14 128943 Oct 25 20:33 gl_mangle.h
-rw-r--r-- 1 v14006 v14  17255 Oct 25 20:33 glu.h
-rw-r--r-- 1 v14006 v14   3315 Oct 25 20:33 glu_mangle.h
-rw-r--r-- 1 v14006 v14  43887 Oct 25 20:33 glxext.h
-rw-r--r-- 1 v14006 v14  17170 Oct 25 20:33 glx.h
-rw-r--r-- 1 v14006 v14   3463 Oct 25 20:33 glx_mangle.h
-rw-r--r-- 1 v14006 v14   4770 Oct 25 20:33 mesa_wgl.h
-rw-r--r-- 1 v14006 v14   8595 Oct 25 20:33 osmesa.h
-rw-r--r-- 1 v14006 v14  51274 Oct 25 20:33 vms_x_fix.h
-rw-r--r-- 1 v14006 v14  41377 Oct 25 20:33 wglext.h
-rw-r--r-- 1 v14006 v14   4468 Oct 25 20:33 wmesa.h

Indeed, if I copy lines from PV 3.10.1 CMakeLists.txt

IF(APPLE)
  IF(VTK_USE_X OR VTK_OPENGL_HAS_OSMESA)
    INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
  ENDIF(VTK_USE_X OR VTK_OPENGL_HAS_OSMESA)
ELSE(APPLE)
  INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
ENDIF(APPLE)

and paste it to inside IF (PARAVIEW_USE_ICE_T AND VTK_USE_MPI)... of
ParaViewCore/ClientServerCore/CMakeLists.txt the error is fixed and
the produced pvserver runs fine (but I am unsure about
IF(APPLE)... since I only tested on Linux).

Takuya OSHIMA, Ph.D.
Faculty of Engineering, Niigata University
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN

From: David Partyka <david.partyka at kitware.com>
Subject: Re: [Paraview] 3.12.0-RC3: could not open source file "GL/gl.h" compiling vtkIceTSynchronizedRenderers.cxx
Date: Mon, 7 Nov 2011 07:10:49 -0500

> Can you verify /nfs/v14/v14006/opt/Mesa-7.11/include contains "GL/gl.h"? It
> should if mesa built and installed correctly.
> 
> On Mon, Nov 7, 2011 at 6:22 AM, Takuya OSHIMA <oshima at eng.niigata-u.ac.jp>wrote:
> 
>> Hi Kevin,
>>
>> Thaks for your comment. Here is my full CMake configuration. On thing
>> that may be noticed is that our cluster does not have GL/gl.h under
>> /usr/include (unlike some of modern Linux systems).
>>
>> cmake ../ParaView-3.12.0-RC3 \
>>    -DCMAKE_CXX_COMPILER=/opt/intel/Compiler/11.0/074/bin/intel64/icpc \
>>    -DCMAKE_C_COMPILER=/opt/intel/Compiler/11.0/074/bin/intel64/icc \
>>    -DCMAKE_INSTALL_PREFIX=/nfs/v14/v14006/opt/ParaView-3.12.0-RC3 \
>>    -DCMAKE_BUILD_TYPE=Release \
>>    -DBUILD_SHARED_LIBS=ON \
>>    -DBUILD_TESTING=OFF \
>>    -DPARAVIEW_BUILD_QT_GUI=OFF \
>>    -DPARAVIEW_ENABLE_PYTHON=ON \
>>    -DPARAVIEW_USE_MPI=ON \
>>    -DMPI_CXX_INCLUDE_PATH=/opt/itc/mpi/mpich-mx-intel11-shared/include \
>>    -DENABLE_MPI4PY=OFF \
>>    -DPARAVIEW_ENABLE_COPROCESSING=ON \
>>    -DVTK_OPENGL_HAS_OSMESA=ON \
>>    -DVTK_USE_X=OFF \
>>    -DOPENGL_gl_LIBRARY= \
>>    -DOPENGL_glu_LIBRARY=/nfs/v14/v14006/opt/Mesa-7.11/lib/libGLU.so \
>>    -DOPENGL_INCLUDE_DIR=/nfs/v14/v14006/opt/Mesa-7.11/include \
>>    -DOSMESA_INCLUDE_DIR=/nfs/v14/v14006/opt/Mesa-7.11/include \
>>    -DOSMESA_LIBRARY=/nfs/v14/v14006/opt/Mesa-7.11/lib/libOSMesa32.so \
>>    -DVTK_USE_OFFSCREEN=ON
>>
>> Takuya OSHIMA, Ph.D.
>> Faculty of Engineering, Niigata University
>> 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
>>
>> From: "Kevin H. Hobbs" <hobbsk at ohio.edu>
>> Subject: Re: [Paraview] 3.12.0-RC3: could not open source file "GL/gl.h"
>> compiling vtkIceTSynchronizedRenderers.cxx
>> Date: Mon, 07 Nov 2011 05:36:07 -0500
>>
>> > On 11/05/2011 06:13 AM, Takuya OSHIMA wrote:
>> >> Hi,
>> >>
>> >> I tried to build the 3.12.0 RC3 with MesaLib-7.11 (OSMesa) on a RHEL
>> >> 5.1 headless cluster and got an error:
>> >>
>> >>
>> /nfs/work2/v14/v14006/src/ParaView-3.12.0-RC3/VTK/Rendering/vtkOpenGL.h(26):
>> catastrophic error: could not open source file "GL/gl.h"
>> >>   # include <GL/gl.h> // Include OpenGL API.
>> >>                                             ^
>> >>
>> >> compilation aborted for
>> /nfs/work2/v14/v14006/src/ParaView-3.12.0-RC3/ParaViewCore/ClientServerCore/vtkIceTSynchronizedRenderers.cxx
>> (code 4)
>> >> make[2]: ***
>> [ParaViewCore/ClientServerCore/CMakeFiles/vtkPVClientServerCore.dir/vtkIceTSynchronizedRenderers.cxx.o]
>> Error 4
>> >>
>> >> Looking into ParaViewCore/ClientServerCore/CMakeLists.txt I found
>> >> nothing that specifies ${OPENGL_INCLUDE_DIR} as opposed to the old
>> >> ParaView-3.10.1/Servers/Filters/CMakeLists.txt (where
>> >> vtkIceTSynchronizedRenderers.cxx had been in) having
>> >>
>> >
>> >
>> >  I build PareView with OSMesa from their git repositories every
>> > night.
>> >
>> > Could you please post your CMakeCache.txt to a public server or
>> > tell us the CMake variables you set?
>> >
>> > The OSMesa related variables I set are :
>> >
>> > OPENGL_INCLUDE_DIR:PATH=/home/kevin/mesa_osmesa/include
>> > OPENGL_gl_LIBRARY:FILEPATH=
>> > OPENGL_glu_LIBRARY:FILEPATH=/home/kevin/mesa_osmesa/lib/libGLU.so
>> > VTK_OPENGL_HAS_OSMESA:BOOL=ON
>> > OSMESA_INCLUDE_DIR:PATH=/home/kevin/mesa_osmesa/include
>> > OSMESA_LIBRARY:FILEPATH=/home/kevin/mesa_osmesa/lib/libOSMesa.so
>> > VTK_USE_OFFSCREEN:BOOL=ON
>> > VTK_USE_X:BOOL=OFF
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>


More information about the ParaView mailing list