Re: ogre problem when building
Posted: Thu Feb 12, 2009 8:27 pm
You probably need to copy the Ogre .so's listed in ogre_plugins.cfg from /usr/local/lib/OGRE to your working dir.
Forums for the FreeOrion project
https://www.freeorion.org/forum/
You probably need to read Ogre plugin dir with "pkg-config OGRE --variable=plugindir" when generating ogre_plugins.cfgtzlaine wrote:You probably need to copy the Ogre .so's listed in ogre_plugins.cfg from /usr/local/lib/OGRE to your working dir.
Didn't work.tzlaine wrote:You probably need to copy the Ogre .so's listed in ogre_plugins.cfg from /usr/local/lib/OGRE to your working dir.
I'll give it a try.loonycyborg wrote:I was getting a segfault at startup which was fixed by upgrading to boost 1.38
Code: Select all
$ scons configure with_boost_include=/usr/local/include/boost-1_38/ with_boost_libdir=/usr/local/lib/
scons: Reading SConscript files ...
Checking for pkg-config... (cached) yes
Configuring for POSIX system...
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking Boost version >= 1.36... (cached) yes
Looking for boost lib boost_signals-mt...
Checking for boost::signals::connection() in C++ library boost_signals-mt... no
Checking for boost::signals::connection() in C++ library boost_signals-mt-mt... no
Boost configuration... (cached) no
Can you run the Ogre demo / samples, or another program written using Ogre?francys wrote:I recompiled everything but I'm still getting a segmentation fault!
I'm using the ATI fglrx driver 8.12. Other applications that require the driver and 3D acceleration work fine. I tried to trace the segfault with gdb after compiling FO with the debug option. However, whenever I get the segfault, be it in gdb or outside of it, keyboard and mouse stop working and I have to make use of the magic sysrq keys.OndrejR wrote:I think it is ATI drivers which cause this problems. You may try newer or open source ATI drivers, but segfault can be traced by debugging. Howto is in wiki compile linux howto. You may also try some OGRE examples to test if are working.
Yes I can. Ogre samples work even though some of them look a bit strange.. But I suppose I can say they work. Still better than a segfaultGeoff the Medio wrote:Can you run the Ogre demo / samples, or another program written using Ogre?
Try debug FO in window mode, not in fullscreen. Delete FO config.xml to run FO in window mode. Also compile GG with debug symbols. Maybe also OGRE.francys wrote:I'm using the ATI fglrx driver 8.12. Other applications that require the driver and 3D acceleration work fine. I tried to trace the segfault with gdb after compiling FO with the debug option. However, whenever I get the segfault, be it in gdb or outside of it, keyboard and mouse stop working and I have to make use of the magic sysrq keys.OndrejR wrote:I think it is ATI drivers which cause this problems. You may try newer or open source ATI drivers, but segfault can be traced by debugging. Howto is in wiki compile linux howto. You may also try some OGRE examples to test if are working.
You might need to check that all the dependencies and freeorion itself are all compiled in Release mode. You can have debug symbols included in release mode (at least in MSVC), but I've recently been informed that (again at least with MSVC) the debug and release build configurations have different ABIs, and attempting to use Ogre libs / DLLs built in a different configuration from the main executable will cause segfaults or similar crashes.francys wrote:I tried to trace the segfault with gdb after compiling FO with the debug option.
Is that always the case, or just when the segfault occurs?OndrejR wrote:...mouse and keyboard can't leave FO window and that is the problem