[5799] compiling problem.

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

[5799] compiling problem.

#1 Post by AndrewW »

Well, this used to compile (at least through [5771].

Linking CXX executable ../../freeorionca
[ 69%] Built target freeorionca
[ 70%] Building CXX object client/human/CMakeFiles/freeorion.dir/__/ClientApp.cpp.o
[ 70%] Building CXX object client/human/CMakeFiles/freeorion.dir/__/ClientFSMEvents.cpp.o
[ 71%] Building CXX object client/human/CMakeFiles/freeorion.dir/HumanClientFSM.cpp.o
[ 71%] Building CXX object client/human/CMakeFiles/freeorion.dir/HumanClientApp.cpp.o
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp: In constructor 'HumanClientApp::HumanClientApp(Ogre::Root*, Ogre::RenderWindow*, Ogre::SceneManager*, Ogre::Camera*, Ogre::Viewport*, const boost::filesystem3::path&)':
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:237:17: error: 'WindowMovedSignal' was not declared in this scope
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:239:17: error: 'WindowClosingSignal' was not declared in this scope
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:241:17: error: 'FocusChangedSignal' was not declared in this scope
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp: In static member function 'static std::pair<int, int> HumanClientApp::GetWindowLeftTop()':
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:600:10: warning: unused variable 'fullscreen' [-Wunused-variable]
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp: In member function 'void HumanClientApp::Reinitialize()':
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:679:40: error: 'class HumanClientApp' has no member named 'GetRenderWindow'
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp: In member function 'virtual void HumanClientApp::Enter2DMode()':
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:720:40: error: 'class HumanClientApp' has no member named 'GetRenderWindow'
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp: In member function 'void HumanClientApp::HandleWindowResize(GG::X, GG::Y)':
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:869:40: error: 'class HumanClientApp' has no member named 'GetRenderWindow'
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp: At global scope:
/home/andrew/freeorion/FreeOrion/client/human/HumanClientApp.cpp:101:10: warning: '{anonymous}::temp_bool' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/asio/error.hpp:244:45: warning: 'boost::asio::error::system_category' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/asio/error.hpp:246:45: warning: 'boost::asio::error::netdb_category' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/asio/error.hpp:248:45: warning: 'boost::asio::error::addrinfo_category' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/asio/error.hpp:250:45: warning: 'boost::asio::error::misc_category' defined but not used [-Wunused-variable]
make[2]: *** [client/human/CMakeFiles/freeorion.dir/HumanClientApp.cpp.o] Error 1
make[1]: *** [client/human/CMakeFiles/freeorion.dir/all] Error 2
make: *** [all] Error 2

Gigi: 0.8_pre20121225
Boost: 1.49.0-r2
Bullet: 2.80
Ogre: 1.8.1

All the links are in place.

Any ideas on where to look?

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

Re: [5799] compiling problem.

#2 Post by Geoff the Medio »

You probably need to rebuild and reinstall GiGi. Some headers changed, which added those signals to OgreGUI.

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: [5799] compiling problem.

#3 Post by AndrewW »

Geoff the Medio wrote:You probably need to rebuild and reinstall GiGi. Some headers changed, which added those signals to OgreGUI.
I removed the GiGi from the system package manager and built the GiGi that comes with the FreeOrion, alas didn't help...

Now with [5802]:

Code: Select all

[  5%] Building CXX object CMakeFiles/core_static.dir/Empire/Empire.cpp.o
/home/andrew/freeorion/FreeOrion/Empire/Empire.cpp: In member function 'const std::map<int, std::set<int> > Empire::VisibleStarlanes() const':
/home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1802:22: warning: unused variable 'objects' [-Wunused-variable]
In file included from /home/andrew/freeorion/FreeOrion/Empire/../universe/Universe.h:8:0,
                 from /home/andrew/freeorion/FreeOrion/Empire/../universe/UniverseObject.h:5,
                 from /home/andrew/freeorion/FreeOrion/Empire/Empire.h:8,
                 from /home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1:
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = System]':
/home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1776:90:   instantiated from here
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:306:25: error: could not convert '(& ObjectMap::Map [with T = System]())->std::map<_Key, _Tp, _Compare, _Alloc>::begin [with _Key = int, _Tp = System*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, System*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, System*> >]()' from 'std::map<int, System*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, System*> >}' to 'ObjectMap::value_iterator<System>'
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = System]':
/home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1777:49:   instantiated from here
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:310:23: error: could not convert '(& ObjectMap::Map [with T = System]())->std::map<_Key, _Tp, _Compare, _Alloc>::end [with _Key = int, _Tp = System*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, System*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, System*> >]()' from 'std::map<int, System*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, System*> >}' to 'ObjectMap::value_iterator<System>'
In file included from /home/andrew/freeorion/FreeOrion/Empire/../universe/Universe.h:8:0,
                 from /home/andrew/freeorion/FreeOrion/Empire/../universe/UniverseObject.h:5,
                 from /home/andrew/freeorion/FreeOrion/Empire/Empire.h:8,
                 from /home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1:
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'const std::pair<int, const T*>* ObjectMap::const_iterator<T>::operator->() [with T = System]':
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:352:9:   instantiated from 'std::vector<int> ObjectMap::FindObjectIDs() const [with T = System]'
/home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1460:101:   instantiated from here
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:52:23: error: taking address of temporary [-fpermissive]
In file included from /home/andrew/freeorion/FreeOrion/Empire/../universe/Universe.h:8:0,
                 from /home/andrew/freeorion/FreeOrion/Empire/../universe/UniverseObject.h:5,
                 from /home/andrew/freeorion/FreeOrion/Empire/Empire.h:8,
                 from /home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1:
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = Fleet]':
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:343:49:   instantiated from 'std::vector<T*> ObjectMap::FindObjects() [with T = Fleet]'
/home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1484:83:   instantiated from here
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:306:25: error: could not convert '(& ObjectMap::Map [with T = Fleet]())->std::map<_Key, _Tp, _Compare, _Alloc>::begin [with _Key = int, _Tp = Fleet*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, Fleet*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, Fleet*> >]()' from 'std::map<int, Fleet*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, Fleet*> >}' to 'ObjectMap::value_iterator<Fleet>'
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = Fleet]':
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:343:49:   instantiated from 'std::vector<T*> ObjectMap::FindObjects() [with T = Fleet]'
/home/andrew/freeorion/FreeOrion/Empire/Empire.cpp:1484:83:   instantiated from here
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:310:23: error: could not convert '(& ObjectMap::Map [with T = Fleet]())->std::map<_Key, _Tp, _Compare, _Alloc>::end [with _Key = int, _Tp = Fleet*, _Compare = std::less<int>, _Alloc = std::allocator<std::pair<const int, Fleet*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const int, Fleet*> >]()' from 'std::map<int, Fleet*>::iterator {aka std::_Rb_tree_iterator<std::pair<const int, Fleet*> >}' to 'ObjectMap::value_iterator<Fleet>'
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = System]':
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:306:28: warning: control reaches end of non-void function [-Wreturn-type]
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = System]':
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:310:26: warning: control reaches end of non-void function [-Wreturn-type]
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::begin_values() [with T = Fleet]':
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:306:28: warning: control reaches end of non-void function [-Wreturn-type]
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h: In member function 'ObjectMap::value_iterator<T> ObjectMap::end_values() [with T = Fleet]':
/home/andrew/freeorion/FreeOrion/Empire/../universe/ObjectMap.h:310:26: warning: control reaches end of non-void function [-Wreturn-type]
/usr/include/boost-1_49/boost/system/error_code.hpp: At global scope:
/usr/include/boost-1_49/boost/system/error_code.hpp:214:36: warning: 'boost::system::posix_category' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:215:36: warning: 'boost::system::errno_ecat' defined but not used [-Wunused-variable]
/usr/include/boost-1_49/boost/system/error_code.hpp:216:36: warning: 'boost::system::native_ecat' defined but not used [-Wunused-variable]
make[2]: *** [CMakeFiles/core_static.dir/Empire/Empire.cpp.o] Error 1
make[1]: *** [CMakeFiles/core_static.dir/all] Error 2
make: *** [all] Error 2

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

Re: [5799] compiling problem.

#4 Post by Geoff the Medio »

Your new errors are different and unrelated to the previous ones. The new ones appear to be the same as these: viewtopic.php?p=59109#p59109

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: [5799] compiling problem.

#5 Post by AndrewW »

Geoff the Medio wrote:Your new errors are different and unrelated to the previous ones. The new ones appear to be the same as these: viewtopic.php?p=59109#p59109
Saw that thread and was wondering if it was related.

Post Reply