C++error : Type redeclaration on v0-8 and OGRE renderer

Forum for support and development discussion regarding the python based unified editor tool for CEGUI, known as CEED.

Moderators: CEGUI MVP, CEGUI Team

paul424
Just popping in
Just popping in
Posts: 16
Joined: Thu Mar 28, 2013 12:33

C++error : Type redeclaration on v0-8 and OGRE renderer

Postby paul424 » Sat Dec 21, 2013 20:25

Hello , I follow this wiki , and use v0-8 branches. From the IRC channel I know OGRE renderer is not supposed to work, however such stupid mistake as type redeclaration should be fixed , this is output from my make :


Code: Select all

Linking CXX shared module ../../../../../lib/PyCEGUINullRenderer.so
[ 91%] Built target PyCEGUINullRenderer
Scanning dependencies of target PyCEGUIOgreRenderer
[ 91%] Building CXX object cegui/src/ScriptModules/Python/bindings/CMakeFiles/PyCEGUIOgreRenderer.dir/output/CEGUIOgreRenderer/OgreImageCodec.pypp.cpp.o
In file included from /home/tom/tmp_build/cegui/cegui/src/ScriptModules/Python/bindings/output/CEGUIOgreRenderer/OgreImageCodec.pypp.cpp:4:0:
/home/tom/tmp_build/cegui/cegui/src/ScriptModules/Python/bindings/generators/include/python_CEGUIOgreRenderer.h:14:11: error: using typedef-name ‘Ogre::TexturePtr’ after ‘class’
     class TexturePtr {};
           ^
In file included from /home/tom/tmp_build/cegui/cegui/src/ScriptModules/Python/bindings/generators/include/python_CEGUIOgreRenderer.h:7:0,
                 from /home/tom/tmp_build/cegui/cegui/src/ScriptModules/Python/bindings/output/CEGUIOgreRenderer/OgreImageCodec.pypp.cpp:4:
/home/tom/tmp_build/cegui/cegui/include/CEGUI/RendererModules/Ogre/Renderer.h:63:28: note: ‘Ogre::TexturePtr’ has a previous declaration here
 typedef SharedPtr<Texture> TexturePtr;
                            ^
make[2]: *** [cegui/src/ScriptModules/Python/bindings/CMakeFiles/PyCEGUIOgreRenderer.dir/output/CEGUIOgreRenderer/OgreImageCodec.pypp.cpp.o] Error 1
make[1]: *** [cegui/src/ScriptModules/Python/bindings/CMakeFiles/PyCEGUIOgreRenderer.dir/all] Error 2
make: *** [all] Error 2

User avatar
mmixLinus
Quite a regular
Quite a regular
Posts: 71
Joined: Fri May 20, 2011 08:46
Location: Lund, Sweden
Contact:

Re: C++error : Type redeclaration on v0-8 and OGRE renderer

Postby mmixLinus » Wed Jan 08, 2014 09:39

A suggested workaround in the meantime.
MMiX.Me 3D Music Player
Galaxy Navigator 3D - 2 million stars (ESA's Gaia satellite)
(YouTube|Facebook)

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: C++error : Type redeclaration on v0-8 and OGRE renderer

Postby Kulik » Wed Jan 08, 2014 13:12

paul424 wrote:however such stupid mistake as type redeclaration should be fixed


Fix it then!

You will undoubtedly discover that it is not so easy... The best solution in this case is to generate the bindings for your specific version using py++. Keeping the generated bindings compatible with all version combinations requires a lot of manual work.


Return to “Official Unified CEGUI Editor Tool (CEED)”

Who is online

Users browsing this forum: No registered users and 11 guests