CMakeFiles/freeorion.dir/__/__/UI/MapWnd.cpp.o: In function `MapWnd::RenderFields()':
MapWnd.cpp:(.text+0xfdd): undefined reference to `FieldIcon::FieldTexture() const'
CMakeFiles/freeorion.dir/__/__/UI/MapWnd.cpp.o: In function `MapWnd::InitTurnRendering()':
MapWnd.cpp:(.text+0x143e1): undefined reference to `FieldIcon::FieldIcon(GG::X, GG::Y, int)'
collect2: error: ld returned 1 exit status
make[2]: *** [freeorion] Fehler 1
make[1]: *** [client/human/CMakeFiles/freeorion.dir/all] Fehler 2
make: *** [all] Fehler 2
Versions:
gcc-c++-4.7-2.1.1.x86_64
cmake-2.8.8-5.1.3.x86_64
make-3.82-151.1.2.x86_64
boost-devel-1.49.0-6.1.2.x86_64
Source version: Revision 5253
Any Ideas what could cause this and how to fix it?
It compiles now, throwing a ton of warnings about uninitialized variables, but fails to start with the following message:
main() caught exception(std::exception): OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library libGiGiOgrePlugin_OIS.so. System Error: libGiGiOgrePlugin_OIS.so: cannot open shared object file: No such file or directory in DynLib::load at /home/abuild/rpmbuild/BUILD/ogre_src_v1-7-4/OgreMain/src/OgreDynLib.cpp (line 91)
AL lib: ReleaseALC: 1 device not closed
OIS is an input plugin that I suspect would need to be built or installed separately from from Ogre. There is code in the FreeOrion SVN repository for building it, though it's not in any CMakeLists.txt as of yet.
after installing GiGi from the opensuse Build service I was able to start freeorion. It works from the folder where i compiled it. when I start it from the installed version (/usr/local/freeorion, created by make install) it complains:
main() caught exception(std::runtime_error): Failed to find an Ogre GL render system.
rkoeppl wrote:main() caught exception(std::runtime_error): Failed to find an Ogre GL render system.
That means it can't find the render system plugin shared object. There's a file called ogre_plugins.cfg that should be (I think) in the binary directory (not sure where it's expected on Linux) that points to where to locate the plugins. You might also use a symlink...
Here is a list with all compile warnings I get. Hope that helps you guys. you are doing a great work.
~/freeorion/trunk/FreeOrion> make -j8|grep -i warning
/home/rkoeppl/freeorion/trunk/FreeOrion/parse/ShipPartStatsParser.cpp: In constructor ‘{anonymous}::part_stats_parser_rules::part_stats_parser_rules()’:
/home/rkoeppl/freeorion/trunk/FreeOrion/parse/ShipPartStatsParser.cpp:21:33: warning: unused variable ‘tok’ [-Wunused-variable]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/CUIWnd.cpp: In member function ‘virtual void CUIWnd::LDrag(const GG::Pt&, const GG::Pt&, GG::Flags<GG::ModKey>)’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/CUIWnd.cpp:257:38: warning: variable ‘lr’ set but not used [-Wunused-but-set-variable]
/home/rkoeppl/freeorion/trunk/FreeOrion/python/PythonUniverseWrapper.cpp:141:74: warning: ‘{anonymous}::ObjectGetMeter’ defined but not used [-Wunused-variable]
In file included from /home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:16:0:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h: In constructor ‘Forests::BatchedGeometry::BatchedGeometry(Ogre::SceneManager*, Ogre::SceneNode*)’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:118:7: warning: ‘Forests::BatchedGeometry::withinFarDistance’ will be initialized after [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:117:13: warning: ‘Ogre::Real Forests::BatchedGeometry::minDistanceSquared’ [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:48:1: warning: when initialized here [-Wreorder]
In file included from /home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:16:0:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:117:13: warning: ‘Forests::BatchedGeometry::minDistanceSquared’ will be initialized after [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:115:19: warning: ‘Ogre::SceneNode* Forests::BatchedGeometry::sceneNode’ [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:48:1: warning: when initialized here [-Wreorder]
In file included from /home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:16:0:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:115:19: warning: ‘Forests::BatchedGeometry::sceneNode’ will be initialized after [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:114:22: warning: ‘Ogre::SceneManager* Forests::BatchedGeometry::sceneMgr’ [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:48:1: warning: when initialized here [-Wreorder]
In file included from /home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:16:0:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:131:7: warning: ‘Forests::BatchedGeometry::built’ will be initialized after [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:129:7: warning: ‘bool Forests::BatchedGeometry::boundsUndefined’ [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:48:1: warning: when initialized here [-Wreorder]
In file included from /home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:16:0:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:129:7: warning: ‘Forests::BatchedGeometry::boundsUndefined’ will be initialized after [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.h:115:31: warning: ‘Ogre::SceneNode* Forests::BatchedGeometry::parentSceneNode’ [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:48:1: warning: when initialized here [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/TechTreeWnd.cpp: In member function ‘virtual void TechTreeWnd::TechTreeControls::LDrag(const GG::Pt&, const GG::Pt&, GG::Flags<GG::ModKey>)’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/TechTreeWnd.cpp:438:38: warning: variable ‘lr’ set but not used [-Wunused-but-set-variable]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp: In member function ‘virtual void Forests::BatchedGeometry::SubBatch::build()’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:483:6: warning: ‘indexBuffer16’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchedGeometry.cpp:483:6: warning: ‘indexBuffer32’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp: In member function ‘virtual void Forests::BatchPage::_updateShaders()’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_COLOUR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_SHORT1’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_SHORT2’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_SHORT3’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_SHORT4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_UBYTE4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_COLOUR_ARGB’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:214:12: warning: enumeration value ‘VET_COLOUR_ABGR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_COLOUR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_SHORT1’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_SHORT2’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_SHORT3’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_SHORT4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_UBYTE4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_COLOUR_ARGB’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:261:14: warning: enumeration value ‘VET_COLOUR_ABGR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/BatchPage.cpp:239:10: warning: unused variable ‘pass’ [-Wunused-variable]
In file included from /home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp:15:0:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.h: In constructor ‘Forests::GeometryPageManager::GeometryPageManager(Forests::PagedGeometry*)’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.h:1539:16: warning: ‘Forests::GeometryPageManager::cacheTimer’ will be initialized after [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.h:1497:17: warning: ‘Forests::GeometryPage** Forests::GeometryPageManager::scrollBuffer’ [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp:405:1: warning: when initialized here [-Wreorder]
In file included from /home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp:15:0:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.h:1497:17: warning: ‘Forests::GeometryPageManager::scrollBuffer’ will be initialized after [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.h:1496:17: warning: ‘Forests::GeometryPage** Forests::GeometryPageManager::geomGrid’ [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp:405:1: warning: when initialized here [-Wreorder]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp: In member function ‘void Forests::GeometryPageManager::reloadGeometryPages(const Ogre::Vector3&, Ogre::Real)’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp:734:7: warning: unused variable ‘radiusSq’ [-Wunused-variable]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp: In constructor ‘Forests::GeometryPage::GeometryPage()’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/PagedGeometry.cpp:1043:79: warning: operation on ‘((Forests::GeometryPage*)this)->Forests::GeometryPage::_pending’ may be undefined [-Wsequence-point]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp: In static member function ‘static void Forests::StaticBillboardSet::updateAll(const Ogre::Vector3&)’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint0.Ogre::Vector3::x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint0.Ogre::Vector3::y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint0.Ogre::Vector3::z’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint1.Ogre::Vector3::x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint1.Ogre::Vector3::y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint1.Ogre::Vector3::z’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint2.Ogre::Vector3::x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint2.Ogre::Vector3::y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint2.Ogre::Vector3::z’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint3.Ogre::Vector3::x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint3.Ogre::Vector3::y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/StaticBillboardSet.cpp:728:4: warning: ‘vPoint3.Ogre::Vector3::z’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp: In member function ‘virtual void Forests::WindBatchPage::_updateShaders()’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_COLOUR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_SHORT1’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_SHORT2’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_SHORT3’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_SHORT4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_UBYTE4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_COLOUR_ARGB’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:103:12: warning: enumeration value ‘VET_COLOUR_ABGR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_COLOUR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_SHORT1’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_SHORT2’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_SHORT3’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_SHORT4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_UBYTE4’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_COLOUR_ARGB’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:179:16: warning: enumeration value ‘VET_COLOUR_ABGR’ not handled in switch [-Wswitch]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchPage.cpp:128:10: warning: unused variable ‘pass’ [-Wunused-variable]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchedGeometry.cpp: In member function ‘virtual void Forests::WindBatchedGeometry::WindSubBatch::build()’:
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchedGeometry.cpp:299:33: warning: ‘vertexPos.Ogre::Vector3::x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchedGeometry.cpp:300:45: warning: ‘vertexPos.Ogre::Vector3::y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchedGeometry.cpp:106:6: warning: ‘indexBuffer16’ may be used uninitialized in this function [-Wmaybe-uninitialized]
/home/rkoeppl/freeorion/trunk/FreeOrion/UI/PagedGeometry/WindBatchedGeometry.cpp:106:6: warning: ‘indexBuffer32’ may be used uninitialized in this function [-Wmaybe-uninitialized]