The related error message:
Scanning dependencies of target kcm_kwindecoration
Scanning dependencies of target kcm_kwin4_effect_builtins
/tmp/portage/kde-base/kwin-9999/work/kwin-9999/kwin/libkwineffects/kwinglutils.cpp: In function ‘void KWin::initGL(KWin::OpenGLPlatformInterface)’:
/tmp/portage/kde-base/kwin-9999/work/kwin-9999/kwin/libkwineffects/kwinglutils.cpp:111:41: error: too many arguments to function ‘void KWin::glResolveFunctions()’
/tmp/portage/kde-base/kwin-9999/work/kwin-9999/kwin/libkwineffects/kwinglutils_funcs.h:78:18: note: declared here
make: *** [kwin/libkwineffects/CMakeFiles/kwinglutils.dir/kwinglutils.o] Error 1
make: *** [kwin/libkwineffects/CMakeFiles/kwinglutils.dir/all] Error 2
make: *** Waiting for unfinished jobs....
I'm building kwin from commit 1f468d60f0f79a9ba00347b46abaa765757aa62d
Created attachment 74341 [details]
the full build log
try copying line 360
void KWIN_EXPORT glResolveFunctions(OpenGLPlatformInterface platformInterface);
to line 78
void KWIN_EXPORT glResolveFunctions();
Actually it looks (but it's late) like the GLX path should not compile at all (i compile both) but for some reason does *shrug*
how did you disable GLES support? Looking at the build log GLES is found and KWin now uses EGL also for OpenGL.
I'm using Gentoo now, so I disable it through USE flag like "opengl -gles" . Its related ebuild part is :
$(cmake-utils_use_with gles OpenGLES)
$(cmake-utils_use gles KWIN_BUILD_WITH_OPENGLES)
$(cmake-utils_use_with opengl OpenGL)
That should translate to
-DWITH_OpenGLES=OFF -DKWIN_BUILD_WITH_OPENGLES=OFF -DWITH_OpenGL=ON -DWITH_X11_Xcomposite=ON
, as recorded in the build log.
seems like it finds the EGL libs although OpenGLES is disabled. My CMake knowledge is too limited to know whether this is the expected behavior.
But anyway: that ebuild part needs to be reworked. It's outdated. E.g. KWIN_BUILD_WITH_OPENGLES does not exist anymore. The currently supported build options are documented in http://techbase.kde.org/Projects/KWin/Build_Options
Created attachment 74361 [details]
Add missing parameter to function declaration
This fixes the build here, though I'm not on gentoo like the original reporter.
the patch from comment#6 unfortunately would result in a compile error if GLES is available. I'm just testing a patch which hopefully works for both :-)
Created attachment 74372 [details]
Please test this patch. I have tested it only with GLES available, so I need the feedback for the other case :-)
I can build kwin fine with or without GLES support after applying that patch.
Git commit 2c1c858de6c58f7561517fe30a78c1e1c7fcec21 by Martin Gräßlin.
Committed on 06/10/2012 at 13:44.
Pushed by graesslin into branch 'master'.
Fix build error when GLES is not available
Note to me: always rebuild with all possible build options if something
Sorry for the inconvenience and thanks to the early report of the issue.
M +7 -2 kwin/libkwineffects/kwinglutils_funcs.h