Page 1 of 1

[solved]revision 3843 compile error under Linux with Ogre

Posted: Mon Nov 22, 2010 9:36 am
by OndrejR

Code: Select all

[ 59%] Building CXX object client/human/CMakeFiles/freeorion.dir/HumanClientApp.cpp.o                                                                                                            
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp: In static member function ‘static std::pair<int, int> HumanClientApp::GetWindowWidthHeight(Ogre::RenderSystem*)’:                
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:558: error: ‘ConfigOptionMap’ is not a member of ‘Ogre’
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:558: error: ‘renderer_options’ was not declared in this scope
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:558: error: invalid use of incomplete type ‘struct Ogre::RenderSystem’
/usr/include/OGRE/OgrePrerequisites.h:337: error: forward declaration of ‘struct Ogre::RenderSystem’
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:559: error: ‘Ogre::ConfigOptionMap’ has not been declared
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:559: error: expected ‘;’ before ‘it’
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:559: error: ‘it’ was not declared in this scope
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp: In member function ‘void HumanClientApp::Reinitialize()’:
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:600: warning: comparison between signed and unsigned integer expressions
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:600: warning: comparison between signed and unsigned integer expressions
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp: At global scope:
/opt/games/freeorion/FreeOrion/client/human/HumanClientApp.cpp:96: warning: ‘<unnamed>::temp_bool’ defined but not used
make[2]: *** [client/human/CMakeFiles/freeorion.dir/HumanClientApp.cpp.o] Error 1
make[1]: *** [client/human/CMakeFiles/freeorion.dir/all] Error 2
Ogre 1.6.4 is in Ubuntu and Debian.

EDIT: I installed libceguiogre-dev which may help, but apparently not.

Re: revision 3843 compile error under Linux with Ogre 1.6.4

Posted: Mon Nov 22, 2010 10:08 am
by Geoff the Medio
OndrejR wrote:HumanClientApp.cpp:558: error: ‘ConfigOptionMap’ is not a member of ‘Ogre’
Try adding #include <OgreConfigOptionMap.h> with the other Ogre includes at the top of the file.

Re: revision 3843 compile error under Linux with Ogre 1.6.4

Posted: Mon Nov 22, 2010 12:06 pm
by OndrejR
Didn't helped. I had to add OgreRenderSystem.h.

In patch there are fixed other various compilation warnings under gcc, python mapping, and grammar fixes. Needs commit.

Re: revision 3843 compile error under Linux with Ogre 1.6.4

Posted: Mon Nov 22, 2010 8:07 pm
by Geoff the Medio
Mostly committed.

Edit: After those changes, does the Apply button and fullscreen toggle on the Video tab of the Options screen work for you?

Re: revision 3843 compile error under Linux with Ogre 1.6.4

Posted: Mon Nov 22, 2010 10:12 pm
by OndrejR
Yes, it works. But I guess, that on linux there is need to support ARandR(technology to change resolution) by graphic driver, which my driver supports.