Bug 357708

Summary: krita fails to build against qt built with OpenGLES support
Product: [Applications] krita Reporter: Heiko Becker <heiko.becker>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED LATER    
Severity: normal CC: acidrums4+stuff, halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Heiko Becker 2016-01-08 20:32:52 UTC
My qt is built with -opengl es2 and it's causing krita to fail during build probably due to missing some include dirs for that case:

"var/tmp/paludis/build/media-gfx-krita-scm/work/krita-scm/krita/ui/opengl/kis_opengl_image_textures.cpp: In member function 'void KisOpenGLImageTextures::updateTextureFormat()':
/var/tmp/paludis/build/media-gfx-krita-scm/work/krita-scm/krita/ui/opengl/kis_opengl_image_textures.cpp:511:49: error: 'GL_RGBA16F_ARB' was not declared in this scope
                 m_texturesInfo.internalFormat = GL_RGBA16F_ARB;
                                                 ^
/var/tmp/paludis/build/media-gfx-krita-scm/work/krita-scm/krita/ui/opengl/kis_opengl_image_textures.cpp:515:49: error: 'GL_RGBA_FLOAT16_ATI' was not declared in this scope
                 m_texturesInfo.internalFormat = GL_RGBA_FLOAT16_ATI;
..."

Full log uploaded here (too big to attach):
https://gist.github.com/raw/df51984619a907d7f03c

If I compile qt with -opengl desktop krita compiles fine.
Comment 1 Halla Rempt 2016-01-08 20:52:51 UTC
Hi Heiko,

Krita requires desktop opengl, I'm afraid, so what you're trying isn't going to work. Patches are welcome, it's something we'll need to do when we want to port to Android, but it's more a todo than a bug...
Comment 2 acidrums4 2016-06-08 15:47:22 UTC
I'm facing this same issue with the stable Krita 3.0 on Gentoo/GNU Linux, with both GLES and OpenGL USE flags enabled. Compilation fails because it finds using Qt with GLES.

As far as Krita 2.9, GLES was supported. Don't get why now on 3.0 it isn't.
Comment 3 Halla Rempt 2016-06-08 19:11:21 UTC
Well, it wasn't supported. Did it work? You surprise me, it wasn't supposed to. Unless you provide sensible patches that make it work and clearly intend to maintain them, it won't be supported until we start thinking of porting to Android.