kpovmodeler cmake opengl problem

Brad King brad.king at kitware.com
Tue Jul 25 21:38:06 CEST 2006


Clarence Dang wrote:
> No, there doesn't seem to be a -devel package.
> 
> rpm -q xorg-x11-Mesa-libGLU --list
> /usr/X11R6/lib/libGLU.so.1
> /usr/X11R6/lib/libGLU.so.1.3
> /usr/lib/libGLU.so.1
> 
> cmake people, could you please shed light on what the OpenGL test does and/or 
> what files/packages I need?

CMake uses this script to search for OpenGL:

http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/FindOpenGL.cmake?root=CMake&view=markup

It needs to locate the GL/gl.h header file, and a copy of the GL library
that can be loaded by the linker.  On Linux this is typically a symlink
called "libGL.so" that points at "libGL.so.<version>".  Both the header
and the symlink are usually installed by a mesagl-dev package or
something like that (the actual name depends on your linux distro).

This is not a CMake-specific problem.  There is no way you can build an
opengl application on your system without this package no matter what
build tool it uses.

-Brad


More information about the Kde-buildsystem mailing list