Bug 250073 - kdebase-workspace 4.5 compile problem
Summary: kdebase-workspace 4.5 compile problem
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 20:29 UTC by Cliffy
Modified: 2012-04-08 20:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cliffy 2010-09-03 20:29:16 UTC
Version:           unspecified (using KDE 1.2) 
OS:                Linux

This error appears when compiling kdebase-workspace both 4.5 and 4.5.1
 
[ 14%] Built target krandom.kss 
[ 14%] Built target kwinnvidiahack_automoc 
[ 14%] Built target kwinnvidiahack 
[ 14%] Built target kdecorations_automoc 
[ 15%] Built target kdecorations 
[ 15%] Built target kwineffects_automoc 
[ 16%] Building CXX object kwin/lib/CMakeFiles/kwineffects.dir/kwinglutils.o 
/home/sources/kdebase-workspace-4.5.0/kwin/lib/kwinglutils.cpp: In function 'QString KWin::formatFramebufferStatus(GLenum)': 
/home/sources/kdebase-workspace-4.5.0/kwin/lib/kwinglutils.cpp:1068: error: 'GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT' was not declared in this scope 
make[2]: *** [kwin/lib/CMakeFiles/kwineffects.dir/kwinglutils.o] Error 1 
make[1]: *** [kwin/lib/CMakeFiles/kwineffects.dir/all] Error 2 
make: *** [all] Error 2 



Reproducible: Always

Steps to Reproduce:
Working from a 'build' dir. with:


Compiling with cmake -DCMAKE_INSTALL_PREFIX=/opt/kde -Wno-dev ../kdebase-workspace-4.5.1

Actual Results:  
[ 14%] Built target krandom.kss 
[ 14%] Built target kwinnvidiahack_automoc 
[ 14%] Built target kwinnvidiahack 
[ 14%] Built target kdecorations_automoc 
[ 15%] Built target kdecorations 
[ 15%] Built target kwineffects_automoc 
[ 16%] Building CXX object kwin/lib/CMakeFiles/kwineffects.dir/kwinglutils.o 
/home/sources/kdebase-workspace-4.5.0/kwin/lib/kwinglutils.cpp: In function 'QString KWin::formatFramebufferStatus(GLenum)': 
/home/sources/kdebase-workspace-4.5.0/kwin/lib/kwinglutils.cpp:1068: error: 'GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT' was not declared in this scope 
make[2]: *** [kwin/lib/CMakeFiles/kwineffects.dir/kwinglutils.o] Error 1 
make[1]: *** [kwin/lib/CMakeFiles/kwineffects.dir/all] Error 2 
make: *** [all] Error 2 



GCC 4.2.3
Comment 1 Thomas Lübking 2010-09-04 12:20:05 UTC
can you please

grep GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT /usr/include/GL/glext.h

since either your glext is quite outdated (ought to be there since iirc at least 2007) or there's an issue in the include chain (kwinglutils apparently don't explicitly include glext)
Comment 2 Cliffy 2010-09-04 18:49:30 UTC
________________________________
From: Thomas Lübking  <thomas.luebking@web.de>
To: cliffmcdiarmid@yahoo.co.uk
Sent: Sat, 4 September, 2010 11:20:06
Subject: [Bug 250073] kdebase-workspace 4.5 compile problem


>--- Comment #1 from Thomas Lübking <thomas luebking web de>  2010-09-04 12:20:05 
>---
>can you please

>grep GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT /usr/include/GL/glext.h

>since either your glext is quite outdated (ought to be there since iirc at
>least 2007) or there's an issue in the include chain (kwinglutils apparently
>don't explicitly include glext)

Thanks for getting back Thomas.   I have already tracked this missing symbol to 
glext.h and it's present.

e.g.  grep GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT /usr/include/GL/glext.h    
gives:

#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56

I have tried to include glext.h at the beginning of kwinglutils.cpp, e.g. 
#include "glext.h", but this makes no difference.

MAC
Comment 3 Thomas Lübking 2010-09-04 19:16:46 UTC
presumingly sth.s defining GL_ARB_framebuffer_object before then...

you could try to inject "#undef GL_ARB_framebuffer_object" before calling the include, but there's either sth. messed up on your side or kwin/KDE/Qt has a problem... =\
Comment 4 Cliffy 2010-09-07 22:10:49 UTC
________________________________
From: Thomas Lübking  <thomas.luebking@web.de>
To: cliffmcdiarmid@yahoo.co.uk
Sent: Sat, 4 September, 2010 18:16:46
Subject: [Bug 250073] kdebase-workspace 4.5 compile problem




>--- Comment #3 from Thomas Lübking <thomas luebking web de>  2010-09-04 19:16:46 
>---
>presumingly sth.s defining GL_ARB_framebuffer_object before then...

>you could try to inject "#undef GL_ARB_framebuffer_object" before calling the
>include, but there's either sth. messed up on your side or kwin/KDE/Qt has a
>problem... =\

Thanks Thomas.  In the end I added #define 
GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT   0x8D56
to kwinglutils.cpp like so:

#ifdef KWIN_HAVE_OPENGL

#include "kwinglobals.h"
#include "kwineffects.h"

#include "kdebug.h"
#include <kstandarddirs.h>

#include <QPixmap>
#include <QImage>
#include <QHash>
#include <QFile>


#define DEBUG_GLRENDERTARGET 0

#define MAKE_GL_VERSION(major, minor, release)  ( ((major) << 16) | ((minor) << 
8) | (release) )
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT   0x8D56

and it worked, very odd, but then I'm no programmer.

MAC
Comment 5 Martin Flöser 2012-04-08 20:41:29 UTC
4.5 is already quite some time ago and the complete stack has moved since then. I assume this issue to be resolved by now and set the bug report to UNMAINTAINED due to the old version.