[gluon] Build conflicts with KOffice

[ Thread Index | Date Index | More lists.tuxfamily.org/gluon Archives ]


Both Gluon libraries and Krita use Cmake and GLEW. But Gluon installs a 
FindGLEW.cmake module that breaks Krita build on the same system. See attached 
koffice.build.log. Once the cmake module is removed Krita builds sucessfully. A 
solution could be to dialoge with KOffice devs and develop a common Find module. 
IMO this is not future proof (as there many other projects using GLEW). I 
think the best would be to Gluon not install this file (and others outside of 
the project). That is, only install FindGluon.cmake, FindGluonCommon.cmake 
FindKAL.cmake, FindKCL.cmake, FindKGL.cmake.

I might be wrong and there could be better solutions.
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/widgets/squeezedcombobox.o                                                                    
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o                                                                    
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_fragment_shader.o                                                           
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_vertex_shader.o                                                             
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o                                                                   
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_hdr_exposure_program.o                                                      
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_gradient_program.o                                                          
[ 50%] Building CXX object krita/ui/CMakeFiles/kritaui.dir/kis_3d_object_model.o                                                                         
Linking CXX shared library ../../lib/libkritaui.so                                                                                                       
CMakeFiles/kritaui.dir/opengl/kis_opengl.o: In function `KisOpenGL::initGlew()':                                                                         
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl.cpp:70: undefined reference to `glewInit'                                                           
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl.cpp:74: undefined reference to `glewGetString'                                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl.cpp:72: undefined reference to `glewGetErrorString'                                                 
CMakeFiles/kritaui.dir/opengl/kis_opengl_canvas2.o: In function `KisOpenGLCanvas2::restoreGLState()':                                                    
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_canvas2.cpp:344: undefined reference to `__glewUseProgram'                                          
CMakeFiles/kritaui.dir/opengl/kis_opengl_canvas2.o: In function `KisOpenGLCanvas2::saveGLState()':                                                       
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_canvas2.cpp:321: undefined reference to `__glewUseProgram'                                          
CMakeFiles/kritaui.dir/opengl/kis_opengl_image_textures.o: In function `KisOpenGLImageTextures::haveHDRTextureFormat(KoColorSpace const*)':              
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:472: undefined reference to `__GLEW_ARB_texture_float'                           
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:475: undefined reference to `__GLEW_ATI_texture_float'                           
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:480: undefined reference to `__GLEW_ARB_texture_float'                           
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:483: undefined reference to `__GLEW_ATI_texture_float'                           
CMakeFiles/kritaui.dir/opengl/kis_opengl_image_textures.o: In function `KisOpenGLImageTextures::setImageTextureFormat()':                                
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:507: undefined reference to `__GLEW_ARB_texture_float'                           
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:516: undefined reference to `__GLEW_ARB_half_float_pixel'                        
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_image_textures.cpp:528: undefined reference to `__GLEW_ARB_texture_float'                           
CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `~KisOpenGLShader':                                                                       
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:50: undefined reference to `__glewDeleteShader'                                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:50: undefined reference to `__glewDeleteShader'                                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:50: undefined reference to `__glewDeleteShader'                                          
CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `KisOpenGLShader::getInfoLog()':                                                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:146: undefined reference to `__glewGetShaderiv'                                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:153: undefined reference to `__glewGetShaderInfoLog'                                     
CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `KisOpenGLShader':                                                                        
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:38: undefined reference to `__glewCreateShader'                                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:38: undefined reference to `__glewCreateShader'                                          
CMakeFiles/kritaui.dir/opengl/kis_opengl_shader.o: In function `KisOpenGLShader::loadSourceCodeFromCStrings(int, char const**, int const*)':             
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:59: undefined reference to `__glewShaderSource'                                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:62: undefined reference to `__glewCompileShader'                                         
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_shader.cpp:67: undefined reference to `__glewGetShaderiv'                                           
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::active() const':                                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:213: undefined reference to `__glewGetHandleARB'                                        
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::deactivate()':                                                        
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:204: undefined reference to `__glewUseProgramObjectARB'                                 
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::activate()':                                                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:196: undefined reference to `__glewUseProgramObjectARB'                                 
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `~KisOpenGLProgram':                                                                     
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:43: undefined reference to `__glewDeleteObjectARB'                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:43: undefined reference to `__glewDeleteObjectARB'                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:43: undefined reference to `__glewDeleteObjectARB'                                      
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::detachShader(KisOpenGLShader&)':                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:140: undefined reference to `__glewDetachObjectARB'                                     
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::attachShader(KisOpenGLShader&)':                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:131: undefined reference to `__glewAttachObjectARB'                                     
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::uniformVariableLocation(char const*) const':                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:59: undefined reference to `__glewGetUniformLocationARB'                                
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, int) const':                          
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:121: undefined reference to `__glewUniform1iARB'                                        
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, float) const':                        
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:108: undefined reference to `__glewUniform1fARB'                                        
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, float, float) const':                 
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:90: undefined reference to `__glewUniform2fARB'                                         
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::setUniformVariable(char const*, float, float, float, float) const':   
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:77: undefined reference to `__glewUniform4fARB'                                         
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram':                                                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:31: undefined reference to `__glewCreateProgramObjectARB'                               
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:31: undefined reference to `__glewCreateProgramObjectARB'                               
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::getInfoLog() const':                                                  
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:175: undefined reference to `__glewGetObjectParameterivARB'                             
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:182: undefined reference to `__glewGetInfoLogARB'                                       
CMakeFiles/kritaui.dir/opengl/kis_opengl_program.o: In function `KisOpenGLProgram::link()':                                                              
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:149: undefined reference to `__glewLinkProgramARB'                                      
/home/kde/src/KDE/koffice/krita/ui/opengl/kis_opengl_program.cpp:154: undefined reference to `__glewGetObjectParameterivARB'                             
collect2: ld returned 1 exit status                                                                                                                      
make[2]: *** [lib/libkritaui.so.6.0.0] Error 1                                                                                                           
make[1]: *** [krita/ui/CMakeFiles/kritaui.dir/all] Error 2                                                                                               
make: *** [all] Error 2                                                                                                                                  

Attachment: signature.asc
Description: This is a digitally signed message part.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/