[vtkusers] Error when Building VTK

Jorge Ballesteros jballesteros at motivando.me
Tue Jul 12 04:34:54 EDT 2011


Hi Vijay,

It seems that you have not properly set the OPENGL_INCLUDE_DIR CMake
variable in the project configuration.

You should have to manually specifiy its value. Look for "glx.h" header
file in your system and set the OPENGL_INCLUDE_DIR variable to the path
to this file, i.e. /usr/include/GL/.

Jorge

On Mon, 2011-07-11 at 14:33 -0400, Vijay Baharani wrote:
> Dear anyone who can help,
> 
> I received the following lengthy error while trying to build VTK.  I'm
> not sure what to do, can anyone help?
> 
> CMake Error at CMake/vtkTestGLX.cmake:212 (file):
>    file STRINGS file
> 
> "/home/user1/src/VTK-src/VTK/Rendering/OPENGL_INCLUDE_DIR-NOTFOUND/GL/glx.h"
>    cannot be read.
>  Call Stack (most recent call first):
>    Rendering/CMakeLists.txt:482 (INCLUDE)
> 
> 
> 
>  CMake Error: The following variables are used in this project, but
> they are set to NOTFOUND.
>  Please set them or make sure they are set and tested correctly in the
> CMake files:
>  OPENGL_INCLUDE_DIR (ADVANCED)
>     used as include directory in directory /home/user1/src/VTK-src/VTK
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Wrapping
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/kwsys
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkzlib
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkjpeg
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkpng
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtktiff
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkexpat
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkfreetype
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtklibxml2
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/DICOMParser
> used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/MaterialLibrary
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtklibproj4
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/mrmpi
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/verdict
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtknetcdf
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkmetaio
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtksqlite
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkexodus2
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkalglib
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/Doxygen
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/EncodeString
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/ftgl
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/ParseOGLExt
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/mrmpi/mpistubs
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/mrmpi/src
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Common
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Filtering
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Imaging
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Graphics
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/GenericFiltering
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/IO
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Rendering
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/VolumeRendering
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Hybrid
> used as include directory in
> directory /home/user1/src/VTK-src/VTK/Widgets
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Infovis
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Geovis
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Views
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Charts
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/vtkTclTest2Py
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Common/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Common/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Filtering/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Filtering/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Graphics/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Graphics/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/GenericFiltering/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/GenericFiltering/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Imaging/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Imaging/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/IO/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/IO/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Rendering/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Rendering/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/VolumeRendering/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/VolumeRendering/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Hybrid/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Hybrid/Testing/Cxx
> used as include directory in
> directory /home/user1/src/VTK-src/VTK/Widgets/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Widgets/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Infovis/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Infovis/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Geovis/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Geovis/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Views/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Views/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Charts/Testing
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Charts/Testing/Cxx
>     used as include directory in
> directory /home/user1/src/VTK-src/VTK/Utilities/LastConfigureStep
>  OPENGL_gl_LIBRARY (ADVANCED)
>      linked by target "vtkVolumeRendering" in
> directory /home/user1/src/VTK-src/VTK/VolumeRendering
>      linked by target "vtkWidgets" in
> directory /home/user1/src/VTK-src/VTK/Widgets
>      linked by target "RenderingCxxTests" in
> directory /home/user1/src/VTK-src/VTK/Rendering/Testing/Cxx
>      linked by target "TestFBOImplementation" in
> directory /home/user1/src/VTK-src/VTK/Rendering/Testing/Cxx
>      linked by target "TimeRenderer" in
> directory /home/user1/src/VTK-src/VTK/Rendering/Testing/Cxx
>      linked by target "TimeRenderer2" in
> directory /home/user1/src/VTK-src/VTK/Rendering/Testing/Cxx
>      linked by target "VTKBenchMark" in
> directory /home/user1/src/VTK-src/VTK/Rendering/Testing/Cxx
> 
> Thanks in advance,
> Vijay Baharani
> Student Researcher at the Food and Drug Administration
> vibahara at umd.edu
> 
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list