Summary: | kwin fails to build when the GLES support is disabled | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Jekyll Wu <adaptee> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | 4.10 | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-workspace/2c1c858de6c58f7561517fe30a78c1e1c7fcec21 | Version Fixed In: | 4.10 |
Sentry Crash Report: | |||
Attachments: |
the full build log
Add missing parameter to function declaration Proposed patch |
Description
Jekyll Wu
2012-10-04 20:51:25 UTC
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(); in kwin/libkwineffects/kwinglutils_funcs.h 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 : mycmakeargs=( $(cmake-utils_use_with gles OpenGLES) $(cmake-utils_use gles KWIN_BUILD_WITH_OPENGLES) $(cmake-utils_use_with opengl OpenGL) -DWITH_X11_Xcomposite=ON ) 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]
Proposed patch
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 is changed. Sorry for the inconvenience and thanks to the early report of the issue. FIXED-IN: 4.10 M +7 -2 kwin/libkwineffects/kwinglutils_funcs.h http://commits.kde.org/kde-workspace/2c1c858de6c58f7561517fe30a78c1e1c7fcec21 |