View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000397CMakepublic2003-11-24 11:122004-01-11 14:22
ReporterFred Wheeler 
Assigned ToBill Hoffman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000397: FindOpenGL.cmake does not look to /usr/include/w32api/GL
DescriptionHere is a section of FindOpenGL.cmake:

  IF (CYGWIN)

    FIND_PATH(OPENGL_INCLUDE_DIR GL/gl.h
      /usr/include
      /usr/X11R6/include
    )

    FIND_LIBRARY(OPENGL_gl_LIBRARY opengl32
      /usr/lib
      /usr/lib/w32api
    )

    FIND_LIBRARY(OPENGL_glu_LIBRARY glu32
      /usr/lib
      /usr/lib/w32api
    )

  ELSE (CYGWIN)

I think this should be changed to:

  IF (CYGWIN)

    FIND_PATH(OPENGL_INCLUDE_DIR GL/gl.h
      /usr/include
      /usr/include/w32api
      /usr/X11R6/include
    )

    FIND_LIBRARY(OPENGL_gl_LIBRARY opengl32
      /usr/lib
      /usr/lib/w32api
    )

    FIND_LIBRARY(OPENGL_glu_LIBRARY glu32
      /usr/lib
      /usr/lib/w32api
    )

  ELSE (CYGWIN)

If you install cygwin package w32api-2.4-1 (or any w32api package I assume) but not the X11R6 packages, then the above change is needed to find the opengl files.

A simple workaround is this manual setting

OPENGL_INCLUDE_DIR:PATH=/usr/include/w32api

I have tested the workaround, but not the change to OpenGL.cmake, though it seems to be a simple matter.

Fred Wheeler
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0000466)
Fred Wheeler (reporter)
2004-01-11 14:22

I see that this is fixed in 1.8.3. Thanks!

I'm changing the status to closed/fixed.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team