Summary: | calligra-2.8.1-1 fails to compile with "krita/ui/opengl/kis_opengl_canvas2_p.h:334:82: error: ‘GLEW_ARB_sync’ was not declared in this scope" | ||
---|---|---|---|
Product: | [Applications] calligracommon | Reporter: | Frank Krömmelbein <kroemmelbein> |
Component: | general | Assignee: | Calligra Bugs <calligra-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adaptee, aspotashev, halla, heiko.becker, jlp, johu, kroemmelbein, nuzhna_pomoshch, stupor_scurvy343 |
Priority: | NOR | ||
Version: | 2.8.1 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
URL: | https://bugs.gentoo.org/show_bug.cgi?id=503544 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Frank Krömmelbein
2014-03-30 14:28:31 UTC
Installed version of glew: eix -I glew [I] media-libs/glew Available versions: 1.9.0 ~1.10.0-r1(0/1.10) (~)1.10.0-r2(0/1.10) {doc static-libs ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_X86="32 64 x32"} Installed versions: 1.10.0-r2(20:32:25 23.03.2014)(-doc -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_X86="32 64 -x32") Homepage: http://glew.sourceforge.net/ Description: The OpenGL Extension Wrangler Library Happens for me too on Gentoo. The other problem is, when libGLEW is not installed the build system complain only at the stage of linking to "-lGLEW". It should better check for libGLEW in CMakeLists.txt. 2.8.2 has the same problem Still there in 2.8.5. :( We do check for glew in the cmake system and don't try to use it if isn't found. If that check fails on Gentoo, please provide a patch for cmake/modules/FindGLEW.cmake. As far as I can tell, the Gentoo configure system is working fine. The log file includes: -- GLEW NOT found - krita will not be able to use OpenGL. [...] ----------------------------------------------------------------------------- -- The following OPTIONAL packages could NOT be located on your system. -- Consider installing them to enable more features from this software. ----------------------------------------------------------------------------- [...] * GLEW <http://glew.sourceforge.net> The OpenGL Extension Wrangler Library Required by the Krita shader filter plugin [...] But later, we run into: In file included from /var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5/krita/ui/opengl/kis_opengl_canvas2.cpp:58:0: /var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5/krita/ui/opengl/kis_opengl_canvas2_p.h: In function ‘void Sync::init()’: /var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5/krita/ui/opengl/kis_opengl_canvas2_p.h:334:82: error: ‘GLEW_ARB_sync’ was not declared i n this scope if ((QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_Version_3_2) || GLEW_ARB_sync) { [...] [ 59%] krita/ui/CMakeFiles/kritaui.dir/build.make:2894: recipe for target 'krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_canvas2.cpp.o' failed make[2]: *** [krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_canvas2.cpp.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5_build' CMakeFiles/Makefile2:16010: recipe for target 'krita/ui/CMakeFiles/kritaui.dir/all' failed make[1]: *** [krita/ui/CMakeFiles/kritaui.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Can you try compiling it (probably just krita) on a system without glew? Or maybe check the code referenced in the build log just to make sure that it isn't asking for glew, even though it is supposed to know that it is not available? It looks like this is caused when opengl is enabled and glew is disabled. Is that a valid configuration? It looks like opengl support in krita hard-requires glew, which would make this a packaging bug. (In reply to Michael Palimaka from comment #8) > It looks like this is caused when opengl is enabled and glew is disabled. Is > that a valid configuration? Gentoo allows this configuration (not a guarantee that is is valid, of course), which was never a problem with pre 2.8 versions. Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. |