Open CristianoBarone opened 3 years ago
using make this error is returned
make
[ 9%] Built target kwin4_effect_yetanothermagiclamp_automoc [ 9%] Building CXX object src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/OffscreenRenderer.cc.o In file included from /home/cristiano/kwin-effects-yet-another-magic-lamp/src/OffscreenRenderer.h:22:0, from /home/cristiano/kwin-effects-yet-another-magic-lamp/src/OffscreenRenderer.cc:19: /usr/include/kwingltexture.h:55:45: error: ‘GLenum’ has not been declared explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D); ^ /usr/include/kwingltexture.h:56:47: error: ‘GLenum’ has not been declared explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D); ^ /usr/include/kwingltexture.h:58:22: error: expected ‘)’ before ‘internalFormat’ GLTexture(GLenum internalFormat, int width, int height, int levels = 1); ^ /usr/include/kwingltexture.h:59:31: error: expected ‘)’ before ‘internalFormat’ explicit GLTexture(GLenum internalFormat, const QSize &size, int levels = 1); ^ /usr/include/kwingltexture.h:86:21: error: ‘GLenum’ has not been declared void setSwizzle(GLenum red, GLenum green, GLenum blue, GLenum alpha); ^ /usr/include/kwingltexture.h:86:33: error: ‘GLenum’ has not been declared void setSwizzle(GLenum red, GLenum green, GLenum blue, GLenum alpha); ^ /usr/include/kwingltexture.h:86:47: error: ‘GLenum’ has not been declared void setSwizzle(GLenum red, GLenum green, GLenum blue, GLenum alpha); ^ /usr/include/kwingltexture.h:86:60: error: ‘GLenum’ has not been declared void setSwizzle(GLenum red, GLenum green, GLenum blue, GLenum alpha); ^ /usr/include/kwingltexture.h:102:5: error: ‘GLuint’ does not name a type GLuint texture() const; ^ /usr/include/kwingltexture.h:103:5: error: ‘GLenum’ does not name a type GLenum target() const; ^ /usr/include/kwingltexture.h:104:5: error: ‘GLenum’ does not name a type GLenum filter() const; ^ /usr/include/kwingltexture.h:105:5: error: ‘GLenum’ does not name a type GLenum internalFormat() const; ^ /usr/include/kwingltexture.h:113:20: error: ‘GLenum’ has not been declared void setFilter(GLenum filter); ^ /usr/include/kwingltexture.h:114:22: error: ‘GLenum’ has not been declared void setWrapMode(GLenum mode); ^ /usr/include/kwingltexture.h:55:61: error: ‘GL_TEXTURE_2D’ was not declared in this scope explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D); ^ /usr/include/kwingltexture.h:56:63: error: ‘GL_TEXTURE_2D’ was not declared in this scope explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D); ^ /home/cristiano/kwin-effects-yet-another-magic-lamp/src/OffscreenRenderer.cc: In member function ‘OffscreenRenderer::RenderResources OffscreenRenderer::allocateRenderResources(KWin::EffectWindow*)’: /home/cristiano/kwin-effects-yet-another-magic-lamp/src/OffscreenRenderer.cc:167:86: error: no matching function for call to ‘KWin::GLTexture::GLTexture(int, int, int, const int&)’ texture.reset(new GLTexture(GL_RGBA8, geometry.width(), geometry.height(), levels)); ^ In file included from /home/cristiano/kwin-effects-yet-another-magic-lamp/src/OffscreenRenderer.h:22:0, from /home/cristiano/kwin-effects-yet-another-magic-lamp/src/OffscreenRenderer.cc:19: /usr/include/kwingltexture.h:141:5: note: candidate: KWin::GLTexture::GLTexture(KWin::GLTexturePrivate&) GLTexture(GLTexturePrivate& dd); ^ /usr/include/kwingltexture.h:141:5: note: candidate expects 1 argument, 4 provided /usr/include/kwingltexture.h:57:14: note: candidate: KWin::GLTexture::GLTexture(const QString&) explicit GLTexture(const QString& fileName); ^ /usr/include/kwingltexture.h:57:14: note: candidate expects 1 argument, 4 provided /usr/include/kwingltexture.h:56:14: note: candidate: KWin::GLTexture::GLTexture(const QPixmap&, int) explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D); ^ /usr/include/kwingltexture.h:56:14: note: candidate expects 2 arguments, 4 provided /usr/include/kwingltexture.h:55:14: note: candidate: KWin::GLTexture::GLTexture(const QImage&, int) explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D); ^ /usr/include/kwingltexture.h:55:14: note: candidate expects 2 arguments, 4 provided /usr/include/kwingltexture.h:54:5: note: candidate: KWin::GLTexture::GLTexture(const KWin::GLTexture&) GLTexture(const GLTexture& tex); ^ /usr/include/kwingltexture.h:54:5: note: candidate expects 1 argument, 4 provided /usr/include/kwingltexture.h:53:5: note: candidate: KWin::GLTexture::GLTexture() GLTexture(); ^ /usr/include/kwingltexture.h:53:5: note: candidate expects 0 arguments, 4 provided src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/build.make:94: set di istruzioni per l'obiettivo "src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/OffscreenRenderer.cc.o" non riuscito make[2]: *** [src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/OffscreenRenderer.cc.o] Errore 1 CMakeFiles/Makefile2:120: set di istruzioni per l'obiettivo "src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/all" non riuscito make[1]: *** [src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/all] Errore 2 Makefile:138: set di istruzioni per l'obiettivo "all" non riuscito make: *** [all] Errore 2
Translation for the last lines is provided below:
src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/build.make:94: recipe for target "src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/OffscreenRenderer.cc.o" failed make[2]: *** [src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/OffscreenRenderer.cc.o] Error 1 CMakeFiles/Makefile2:120: recipe for target "src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/all" failed make[1]: *** [src/CMakeFiles/kwin4_effect_yetanothermagiclamp.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2
What version of libepoxy do you have installed?
None has been found
Okay, please install libepoxy-dev.
libepoxy-dev
using
make
this error is returnedTranslation for the last lines is provided below: