[solved]revision 3843 compile error under Linux with Ogre

Questions, problems and discussion about compiling FreeOrion.

Moderators: Oberlus, Oberlus

Post Reply
Message
Author
User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

[solved]revision 3843 compile error under Linux with Ogre

#1 Post by OndrejR » Mon Nov 22, 2010 9:36 am

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.
Last edited by OndrejR on Mon Nov 22, 2010 10:14 pm, edited 2 times in total.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12459
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: revision 3843 compile error under Linux with Ogre 1.6.4

#2 Post by Geoff the Medio » Mon Nov 22, 2010 10:08 am

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.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: revision 3843 compile error under Linux with Ogre 1.6.4

#3 Post by OndrejR » Mon Nov 22, 2010 12:06 pm

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.
Attachments

[The extension patch has been deactivated and can no longer be displayed.]


User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 12459
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: revision 3843 compile error under Linux with Ogre 1.6.4

#4 Post by Geoff the Medio » Mon Nov 22, 2010 8:07 pm

Mostly committed.

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

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: revision 3843 compile error under Linux with Ogre 1.6.4

#5 Post by OndrejR » Mon Nov 22, 2010 10:12 pm

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.

Post Reply