build fail on Arch Linux

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

bvk888
Just popping in
Just popping in
Posts: 4
Joined: Sun Aug 27, 2017 15:59

build fail on Arch Linux

Postby bvk888 » Sun Aug 27, 2017 16:04

During compilation of cegui against v0 branch I have faced the following problem,
here the compilation log.

I would appreciate any help.

Code: Select all

[ 52%] Building CXX object cegui/src/CMakeFiles/CEGUIBase-0.dir/falagard/WidgetComponent.cpp.o
[ 53%] Building CXX object cegui/src/CMakeFiles/CEGUIBase-0.dir/falagard/WidgetLookFeel.cpp.o
[ 53%] Building CXX object cegui/src/CMakeFiles/CEGUIBase-0.dir/falagard/WidgetLookManager.cpp.o
[ 53%] Building CXX object cegui/src/CMakeFiles/CEGUIBase-0.dir/falagard/XMLEnumHelper.cpp.o
[ 54%] Building CXX object cegui/src/CMakeFiles/CEGUIBase-0.dir/falagard/XMLHandler.cpp.o
[ 54%] Linking CXX shared library ../../lib/libCEGUIBase-0.so
[ 54%] Built target CEGUIBase-0
[ 55%] Building CXX object cegui/src/XMLParserModules/Expat/CMakeFiles/CEGUIExpatParser.dir/XMLParser.cpp.o
[ 55%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GL.cpp.o
[ 55%] Building CXX object cegui/src/RendererModules/Ogre/CMakeFiles/CEGUIOgreRenderer-0.dir/GeometryBuffer.cpp.o
[ 55%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GL3FBOTextureTarget.cpp.o
[ 55%] Building CXX object cegui/src/XMLParserModules/Expat/CMakeFiles/CEGUIExpatParser.dir/XMLParserModule.cpp.o
[ 56%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GL3GeometryBuffer.cpp.o
In file included from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/GeometryBuffer.cpp:27:0:
/home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:57:28: warning: ‘CEGUI::OgreGeometryBuffer’ declared with greater visibility than the type of its field ‘CEGUI::OgreGeometryBuffer::d_renderOp’ [-Wattributes]
 class OGRE_GUIRENDERER_API OgreGeometryBuffer : public GeometryBuffer
                            ^~~~~~~~~~~~~~~~~~
[ 56%] Linking CXX shared library ../../../../lib/libCEGUIExpatParser.so
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/GeometryBuffer.cpp: In function ‘void CEGUI::cleanupRenderOp(Ogre::RenderOperation&, Ogre::HardwareVertexBufferSharedPtr&)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/GeometryBuffer.cpp:135:16: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::HardwareVertexBuffer]’ is deprecated [-Wdeprecated-declarations]
     vb.setNull();
                ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/GeometryBuffer.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
[ 56%] Built target CEGUIExpatParser
[ 57%] Building CXX object cegui/src/XMLParserModules/Libxml2/CMakeFiles/CEGUILibXMLParser.dir/XMLParser.cpp.o
[ 57%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GL3Renderer.cpp.o
In file included from /usr/include/unicode/utypes.h:38:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp:34:
/usr/include/unicode/umachine.h:347:13: error: ‘char16_t’ does not name a type; did you mean ‘wchar_t’?
     typedef char16_t UChar;
             ^~~~~~~~
             wchar_t
In file included from /usr/include/unicode/utypes.h:39:0,
                 from /usr/include/unicode/ucnv_err.h:88,
                 from /usr/include/unicode/ucnv.h:52,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp:34:
/usr/include/unicode/uversion.h:167:55: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
                                                       ^~~~~
                                                       UChar32
In file included from /usr/include/unicode/ucnv.h:52:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp:34:
/usr/include/unicode/ucnv_err.h:198:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *source;        /**< Pointer to the source source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:199:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *sourceLimit;   /**< Pointer to the limit (end + 1) of source buffer. @stable ICU 2.0    */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:216:5: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     UChar *target;              /**< Pointer to the target buffer. @stable ICU 2.0    */
     ^~~~~
     UChar32
/usr/include/unicode/ucnv_err.h:217:11: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
     const UChar *targetLimit;   /**< Pointer to the limit (end + 1) of target buffer. @stable ICU 2.0     */
           ^~~~~
           UChar32
/usr/include/unicode/ucnv_err.h:239:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:290:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:320:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv_err.h:376:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar* codeUnits,
                         ^~~~~
                         UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp:34:
/usr/include/unicode/uenum.h:112:16: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 U_STABLE const UChar* U_EXPORT2
                ^~~~~
                UChar32
In file included from /usr/include/unicode/ucnv.h:53:0,
                 from /usr/include/libxml2/libxml/encoding.h:31,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp:34:
/usr/include/unicode/uenum.h:190:41: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 uenum_openUCharStringsEnumeration(const UChar* const strings[], int32_t count,
                                         ^~~~~
                                         UChar32
In file included from /usr/include/libxml2/libxml/encoding.h:31:0,
                 from /usr/include/libxml2/libxml/parser.h:810,
                 from /home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp:34:
/usr/include/unicode/ucnv.h:226:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar* codeUnits,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:397:18: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
 ucnv_openU(const UChar *name,
                  ^~~~~
                  UChar32
/usr/include/unicode/ucnv.h:669:27: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                     const UChar *s,
                           ^~~~~
                           UChar32
/usr/include/unicode/ucnv.h:707:23: error: ‘UChar’ has not been declared
                       UChar *errUChars,
                       ^~~~~
/usr/include/unicode/ucnv.h:846:21: error: ‘UChar’ has not been declared
                     UChar *displayName,
                     ^~~~~
/usr/include/unicode/ucnv.h:1147:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar ** source,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1148:25: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                   const UChar * sourceLimit,
                         ^~~~~
                         UChar32
/usr/include/unicode/ucnv.h:1214:16: error: ‘UChar’ has not been declared
                UChar **target,
                ^~~~~
/usr/include/unicode/ucnv.h:1215:22: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                const UChar *targetLimit,
                      ^~~~~
                      UChar32
/usr/include/unicode/ucnv.h:1252:23: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                 const UChar *src, int32_t srcLength,
                       ^~~~~
                       UChar32
/usr/include/unicode/ucnv.h:1283:15: error: ‘UChar’ has not been declared
               UChar *dest, int32_t destCapacity,
               ^~~~~
/usr/include/unicode/ucnv.h:1505:16: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                ^~~~~
/usr/include/unicode/ucnv.h:1505:35: error: ‘UChar’ has not been declared
                UChar *pivotStart, UChar **pivotSource,
                                   ^~~~~
/usr/include/unicode/ucnv.h:1506:16: error: ‘UChar’ has not been declared
                UChar **pivotTarget, const UChar *pivotLimit,
                ^~~~~
/usr/include/unicode/ucnv.h:1506:43: error: ‘UChar’ does not name a type; did you mean ‘UChar32’?
                UChar **pivotTarget, const UChar *pivotLimit,
                                           ^~~~~
                                           UChar32
/usr/include/unicode/ucnv.h:1916:46: error: ‘UChar’ has not been declared
 ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
                                              ^~~~~
make[2]: *** [cegui/src/XMLParserModules/Libxml2/CMakeFiles/CEGUILibXMLParser.dir/build.make:63: cegui/src/XMLParserModules/Libxml2/CMakeFiles/CEGUILibXMLParser.dir/XMLParser.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:383: cegui/src/XMLParserModules/Libxml2/CMakeFiles/CEGUILibXMLParser.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 57%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GLFBOTextureTarget.cpp.o
[ 58%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GLGeometryBuffer.cpp.o
[ 59%] Building CXX object cegui/src/RendererModules/Ogre/CMakeFiles/CEGUIOgreRenderer-0.dir/ImageCodec.cpp.o
[ 59%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GLRenderer.cpp.o
[ 59%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GLXPBTextureTarget.cpp.o
[ 59%] Building CXX object cegui/src/RendererModules/Ogre/CMakeFiles/CEGUIOgreRenderer-0.dir/Renderer.cpp.o
[ 60%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/GeometryBufferBase.cpp.o
In file included from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:0:
/home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:57:28: warning: ‘CEGUI::OgreGeometryBuffer’ declared with greater visibility than the type of its field ‘CEGUI::OgreGeometryBuffer::d_renderOp’ [-Wattributes]
 class OGRE_GUIRENDERER_API OgreGeometryBuffer : public GeometryBuffer
                            ^~~~~~~~~~~~~~~~~~
[ 60%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/RendererBase.cpp.o
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp: In member function ‘void CEGUI::OgreRenderer::constructor_impl(Ogre::RenderTarget&)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:788:92: warning: ‘bool Ogre::RenderSystem::getFixedPipelineEnabled() const’ is deprecated [-Wdeprecated-declarations]
             bool isFixedFunctionEnabled = d_pimpl->d_renderSystem->getFixedPipelineEnabled();
                                                                                            ^
In file included from /usr/include/OGRE/OgreSceneManager.h:48:0,
                 from /usr/include/OGRE/OgreSceneManagerEnumerator.h:33,
                 from /usr/include/OGRE/OgreRoot.h:34,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:39:
/usr/include/OGRE/OgreRenderSystem.h:427:30: note: declared here
         OGRE_DEPRECATED bool getFixedPipelineEnabled(void) const;
                              ^~~~~~~~~~~~~~~~~~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp: In member function ‘void CEGUI::OgreRenderer::initialiseShaders()’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:916:45: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::HighLevelGpuProgram]’ is deprecated [-Wdeprecated-declarations]
             d_pimpl->d_vertexShader.setNull();
                                             ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:967:45: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::HighLevelGpuProgram]’ is deprecated [-Wdeprecated-declarations]
             d_pimpl->d_vertexShader.setNull();
                                             ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:968:44: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::HighLevelGpuProgram]’ is deprecated [-Wdeprecated-declarations]
             d_pimpl->d_pixelShader.setNull();
                                            ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp: In member function ‘void CEGUI::OgreRenderer::cleanupShaders()’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:999:46: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::GpuProgramParameters]’ is deprecated [-Wdeprecated-declarations]
     d_pimpl->d_pixelShaderParameters.setNull();
                                              ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:1000:47: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::GpuProgramParameters]’ is deprecated [-Wdeprecated-declarations]
     d_pimpl->d_vertexShaderParameters.setNull();
                                               ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:1001:36: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::HighLevelGpuProgram]’ is deprecated [-Wdeprecated-declarations]
     d_pimpl->d_pixelShader.setNull();
                                    ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:1002:37: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::HighLevelGpuProgram]’ is deprecated [-Wdeprecated-declarations]
     d_pimpl->d_vertexShader.setNull();
                                     ^
In file included from /usr/include/OGRE/OgreHardwareVertexBuffer.h:34:0,
                 from /usr/include/OGRE/OgreVertexIndexData.h:32,
                 from /usr/include/OGRE/OgreRenderOperation.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:37,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Renderer.cpp:28:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
[ 60%] Building CXX object cegui/src/RendererModules/Ogre/CMakeFiles/CEGUIOgreRenderer-0.dir/ResourceProvider.cpp.o
[ 60%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/Shader.cpp.o
[ 61%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/ShaderManager.cpp.o
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/ResourceProvider.cpp: In member function ‘virtual void CEGUI::OgreResourceProvider::loadRawDataContainer(const CEGUI::String&, CEGUI::RawDataContainer&, const CEGUI::String&)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/ResourceProvider.cpp:62:22: warning: ‘bool Ogre::SharedPtr<T>::isNull() const [with T = Ogre::DataStream]’ is deprecated [-Wdeprecated-declarations]
     if (input.isNull())
                      ^
In file included from /usr/include/OGRE/OgreDataStream.h:32:0,
                 from /usr/include/OGRE/OgreResourceGroupManager.h:33,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/ResourceProvider.cpp:33:
/usr/include/OGRE/OgreSharedPtr.h:330:30: note: declared here
         OGRE_DEPRECATED bool isNull(void) const { return pRep == 0; }
                              ^~~~~~
[ 61%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/StateChangeWrapper.cpp.o
[ 62%] Building CXX object cegui/src/RendererModules/Ogre/CMakeFiles/CEGUIOgreRenderer-0.dir/Texture.cpp.o
[ 63%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/Texture.cpp.o
[ 63%] Building CXX object cegui/src/RendererModules/Ogre/CMakeFiles/CEGUIOgreRenderer-0.dir/TextureTarget.cpp.o
[ 63%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/TextureTarget.cpp.o
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp: In constructor ‘CEGUI::OgreTexture::OgreTexture(const CEGUI::String&, const Sizef&)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:109:26: warning: ‘bool Ogre::SharedPtr<T>::isNull() const [with T = Ogre::Texture]’ is deprecated [-Wdeprecated-declarations]
     if (d_texture.isNull())
                          ^
In file included from /usr/include/OGRE/OgreTexture.h:36:0,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/Texture.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:330:30: note: declared here
         OGRE_DEPRECATED bool isNull(void) const { return pRep == 0; }
                              ^~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp: In member function ‘virtual void CEGUI::OgreTexture::loadFromMemory(const void*, const Sizef&, CEGUI::Texture::PixelFormat)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:225:26: warning: ‘bool Ogre::SharedPtr<T>::isNull() const [with T = Ogre::Texture]’ is deprecated [-Wdeprecated-declarations]
     if (d_texture.isNull())
                          ^
In file included from /usr/include/OGRE/OgreTexture.h:36:0,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/Texture.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:330:30: note: declared here
         OGRE_DEPRECATED bool isNull(void) const { return pRep == 0; }
                              ^~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp: In member function ‘virtual void CEGUI::OgreTexture::blitFromMemory(const void*, const Rectf&)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:238:26: warning: ‘bool Ogre::SharedPtr<T>::isNull() const [with T = Ogre::Texture]’ is deprecated [-Wdeprecated-declarations]
     if (d_texture.isNull()) // TODO: exception?
                          ^
In file included from /usr/include/OGRE/OgreTexture.h:36:0,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/Texture.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:330:30: note: declared here
         OGRE_DEPRECATED bool isNull(void) const { return pRep == 0; }
                              ^~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp: In member function ‘virtual void CEGUI::OgreTexture::blitToMemory(void*)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:253:26: warning: ‘bool Ogre::SharedPtr<T>::isNull() const [with T = Ogre::Texture]’ is deprecated [-Wdeprecated-declarations]
     if (d_texture.isNull()) // TODO: exception?
                          ^
In file included from /usr/include/OGRE/OgreTexture.h:36:0,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/Texture.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:330:30: note: declared here
         OGRE_DEPRECATED bool isNull(void) const { return pRep == 0; }
                              ^~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp: In member function ‘void CEGUI::OgreTexture::freeOgreTexture()’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:264:27: warning: ‘bool Ogre::SharedPtr<T>::isNull() const [with T = Ogre::Texture]’ is deprecated [-Wdeprecated-declarations]
     if (!d_texture.isNull() && !d_isLinked)
                           ^
In file included from /usr/include/OGRE/OgreTexture.h:36:0,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/Texture.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:330:30: note: declared here
         OGRE_DEPRECATED bool isNull(void) const { return pRep == 0; }
                              ^~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:267:23: warning: ‘void Ogre::SharedPtr<T>::setNull() [with T = Ogre::Texture]’ is deprecated [-Wdeprecated-declarations]
     d_texture.setNull();
                       ^
In file included from /usr/include/OGRE/OgreTexture.h:36:0,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/Texture.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:333:30: note: declared here
         OGRE_DEPRECATED void setNull() { reset(); }
                              ^~~~~~~
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp: In member function ‘void CEGUI::OgreTexture::setOgreTexture(Ogre::TexturePtr, bool)’:
/home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:323:27: warning: ‘bool Ogre::SharedPtr<T>::isNull() const [with T = Ogre::Texture]’ is deprecated [-Wdeprecated-declarations]
     if (!d_texture.isNull())
                           ^
In file included from /usr/include/OGRE/OgreTexture.h:36:0,
                 from /home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/Texture.h:32,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/Texture.cpp:27:
/usr/include/OGRE/OgreSharedPtr.h:330:30: note: declared here
         OGRE_DEPRECATED bool isNull(void) const { return pRep == 0; }
                              ^~~~~~
[ 63%] Building CXX object cegui/src/RendererModules/OpenGL/CMakeFiles/CEGUIOpenGLRenderer-0.dir/ViewportTarget.cpp.o
In file included from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/./RenderTarget.inl:30:0,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/TextureTarget.cpp:160:
/home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:57:28: warning: ‘CEGUI::OgreGeometryBuffer’ declared with greater visibility than the type of its field ‘CEGUI::OgreGeometryBuffer::d_renderOp’ [-Wattributes]
 class OGRE_GUIRENDERER_API OgreGeometryBuffer : public GeometryBuffer
                            ^~~~~~~~~~~~~~~~~~
[ 63%] Building CXX object cegui/src/RendererModules/Ogre/CMakeFiles/CEGUIOgreRenderer-0.dir/WindowTarget.cpp.o
[ 64%] Linking CXX shared library ../../../../lib/libCEGUIOpenGLRenderer-0.so
[ 64%] Built target CEGUIOpenGLRenderer-0
In file included from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/./RenderTarget.inl:30:0,
                 from /home/rapid/ws/clone/cegui/cegui/src/RendererModules/Ogre/WindowTarget.cpp:91:
/home/rapid/ws/clone/cegui/cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:57:28: warning: ‘CEGUI::OgreGeometryBuffer’ declared with greater visibility than the type of its field ‘CEGUI::OgreGeometryBuffer::d_renderOp’ [-Wattributes]
 class OGRE_GUIRENDERER_API OgreGeometryBuffer : public GeometryBuffer
                            ^~~~~~~~~~~~~~~~~~
[ 65%] Linking CXX shared library ../../../../lib/libCEGUIOgreRenderer-0.so
[ 65%] Built target CEGUIOgreRenderer-0
make: *** [Makefile:152: all] Error 2

User avatar
Ident
CEGUI Team
Posts: 1821
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: build fail on Arch Linux

Postby Ident » Sun Aug 27, 2017 19:42

Seems like the dependencies create issues. Did you get the dependencies packaged or build them by yourself?
CrazyEddie: "I don't like GUIs"

bvk888
Just popping in
Just popping in
Posts: 4
Joined: Sun Aug 27, 2017 15:59

Re: build fail on Arch Linux

Postby bvk888 » Sun Aug 27, 2017 20:15

The only dependence I had to install (I have tried though aur system, but it also prints the same error) is silly.

I have installed dependencies required by aur through pacman.

Nothing else were compiled by myself.

It is weird. But compilation error seems like complaining system library by header /usr/include/unicode/umachine.h

Any ideas?

P.S. Are there anywhere list of dependencies I have to install for this library?

User avatar
Ident
CEGUI Team
Posts: 1821
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: build fail on Arch Linux

Postby Ident » Sun Aug 27, 2017 20:18

You can use CMake GUI to configure the project for your compiler/IDE.

Basically you need 1 XML parser, at least 1 renderer, 1 imagecodec. For CEGUI itself you need the base library and the windowrenderer set. I hope I didnt forget anything but it should be obvious if you are configuring the thing in CMake.

If Arch Linux has no CEGUI package then it might be best you configure your project this way.
CrazyEddie: "I don't like GUIs"

bvk888
Just popping in
Just popping in
Posts: 4
Joined: Sun Aug 27, 2017 15:59

Re: build fail on Arch Linux

Postby bvk888 » Mon Aug 28, 2017 19:10

Ident wrote:You can use CMake GUI to configure the project for your compiler/IDE.

Basically you need 1 XML parser, at least 1 renderer, 1 imagecodec. For CEGUI itself you need the base library and the windowrenderer set. I hope I didnt forget anything but it should be obvious if you are configuring the thing in CMake.

If Arch Linux has no CEGUI package then it might be best you configure your project this way.


I use pure Unix Makefiles configuration. But I will study some of those options which CEGUI provides with CMake GUI. Thanks for your input.

bvk888
Just popping in
Just popping in
Posts: 4
Joined: Sun Aug 27, 2017 15:59

Re: build fail on Arch Linux

Postby bvk888 » Sun Sep 03, 2017 16:27

Seems like setting this option to off solves the problem
CEGUI_BUILD_XMLPARSER_LIBXML2=OFF

But then you got nullptr is not defined error.
[ 65%] Building CXX object cegui/src/XMLParserModules/TinyXML/CMakeFiles/CEGUITinyXMLParser.dir/XMLParser.cpp.o
/home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/TinyXML/XMLParser.cpp:133:17: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++11-compat]
if (childNode->ToText()->Value() != nullptr)
^~
/home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/TinyXML/XMLParser.cpp: In member function ‘void CEGUI::TinyXMLDocument::processElement(const TiXmlElement*)’:
/home/rapid/ws/clone/cegui/cegui/src/XMLParserModules/TinyXML/XMLParser.cpp:133:53: error: ‘nullptr’ was not declared in this scope
if (childNode->ToText()->Value() != nullptr)


And
CMAKE_CXX_FLAGS=-std=c++11
does not solve the problem. Seems like this flag is not propagated in the project.

Setting
CEGUI_BUILD_XMLPARSER_TINYXML=OFF

Solved the problem finally.

IMHO Seems like there is not that good with XMLparsers there. Hopefully by disabling those two I will have library working.

User avatar
dermont
Quite a regular
Quite a regular
Posts: 75
Joined: Mon Aug 29, 2005 16:15

Re: build fail on Arch Linux

Postby dermont » Sun Oct 22, 2017 05:11

bvk888 wrote:And
CMAKE_CXX_FLAGS=-std=c++11
does not solve the problem. Seems like this flag is not propagated in the project.


I think the problem is that the std flags are already set in the main CMakeLists.txt, i.e:

Code: Select all

if (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
    set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03")


So you end up with with build flags such as the following where it takes the last std flag (C++03). Try changing in the CMakeLists.txt file.

Code: Select all

CXX_FLAGS = -std=c++11 -std=c++03


Your char16_t problem is related to not building with -std=c++11.

On Ubuntu the umachine header appears to return short unsigned int for UChar, so probably best to see the default settings for libicu, you can change by adding a define -DUCHAR_TYPE= .

I don't know if the V0 branch works or runs with -std=c++11.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests