plasma/CMakeLists.txt fix for glapplet.cpp

Andriy Rysin arysin at gmail.com
Tue Aug 3 01:25:37 BST 2010


I was trying to compile a kdelibs from trunk on minimal set of development
packages on openSUSE and even though configuration went fine the compilation
failed with message below. At the bottom is the patch that fixes it.

Let me know if I should push it.
Thanks,
Andriy

[ 93%] Building CXX object plasma/CMakeFiles/plasma.dir/glapplet.o
In file included from
.../work/OSS/kde-qt/include/QtOpenGL/qgl.h:1:0,

                 from .../work/OSS/kde-qt/include/QtOpenGL/QGLWidget:1,
                 from .../work/OSS/KDE/kdelibs/plasma/glapplet.h:25,
                 from .../work/OSS/KDE/kdelibs/plasma/glapplet.cpp:20:
.../work/OSS/kde-qt/include/QtOpenGL/../../src/opengl/qgl.h:79:23: fatal
error: GL/glu.h: No such file or directory
compilation terminated.
make[2]: *** [plasma/CMakeFiles/plasma.dir/glapplet.o] Error 1


Index: plasma/CMakeLists.txt
===================================================================
--- plasma/CMakeLists.txt       (revision 1157391)
+++ plasma/CMakeLists.txt       (working copy)
@@ -227,12 +227,12 @@
 #   TEST_INCLUDES
 #)

-if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
+if(QT_QTOPENGL_FOUND AND OPENGL_FOUND AND OPENGL_GLU_FOUND)
     message(STATUS "Adding support for OpenGL applets to libplasma")
     set(plasma_LIB_SRCS
         ${plasma_LIB_SRCS}
         glapplet.cpp)
-endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
+endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND AND OPENGL_GLU_FOUND)

 if (PHONON_FOUND)
     message(STATUS "Adding support for Phonon to libplasma")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100802/e3b813f3/attachment.htm>


More information about the kde-core-devel mailing list