Closed GoogleCodeExporter closed 8 years ago
You should check were OGRE plugins are installed on your system. As it says
there, it cannot load /usr/lib/OGRE/RenderSystem_GL.so, which makes me suspect
that the plugins are hidden in some obscure place, or maybe not installed at
all. The path for the plugins can be set in config/plugins_nix.cfg file if
needed.
Original comment by tapiovie...@gmail.com
on 7 Apr 2011 at 8:06
It is installed in /usr/lib64/OGRE/RenderSystem_GL.so, since this is a 64-bit
system. I wonder why it searches for the library in /usr/lib.
Original comment by neptu...@mail.ru
on 7 Apr 2011 at 8:15
shouldn't /usr/lib be a symlink to /usr/lib64 on 64 bit systems?
Original comment by tapiovie...@gmail.com
on 7 Apr 2011 at 8:19
Of course, not. 32-bit libraries are placed in /usr/lib and 64-bit libraries
are placed in /usr/lib64. This is common at least for openSUSE, Fedora and
Mandriva.
Original comment by neptu...@mail.ru
on 7 Apr 2011 at 8:20
Yes, I googled a bit and found that out about those distros. On
Debian/Ubuntu-based systems the lib dirs are /usr/lib32 and /usr/lib64 and
/usr/lib is symlink to the native libs (on 32 bit systems, there might only be
/usr/lib). Then again I think e.g. Arch uses only /usr/lib no matter the
platform.
What makes this trickier, is that the plugin path is set in a config file and
it doesn't seem to allow for alternatives. So it seems some CMake magic is
needed to generate the plugins file during build process.
Original comment by tapiovie...@gmail.com
on 7 Apr 2011 at 8:43
Hmm, using a cmake config file for generating the plugins file has some
implications for running from source tree. I'm thinking best would be to ditch
the plugins file entirely, allow some cmake path changing and also add a
parameter or env variable for changing it without recompilation.
Original comment by tapiovie...@gmail.com
on 7 Apr 2011 at 8:55
FindOGRE.cmake defines a var OGRE_PLUGIN_DIR_REL for the ogre plugins path. We
should pass this var on to the compiler and then load the plugins.
Another advantage is that if we can load the libs dynamically, we only have to
load the lib for the RenderSystem we are actually using.
Original comment by scrawl...@gmail.com
on 7 Apr 2011 at 4:44
Original comment by scrawl...@gmail.com
on 7 Apr 2011 at 5:14
We decided to implement a method in pathmanager for this, also it will check
for an environment variable, and if it is there, use it instead of the default.
Like this, it will also be possible to change the ogre plugin path without
recompiling sr, using the environment variable.
Original comment by scrawl...@gmail.com
on 7 Apr 2011 at 5:26
Mercurial tip should now be able to handle the situation.
In addition, OGRE_PLUGIN_DIR env variable can be given for really obscure
plugin paths.
Original comment by tapiovie...@gmail.com
on 7 Apr 2011 at 6:21
Original comment by tapiovie...@gmail.com
on 9 Apr 2011 at 11:55
Same issue on debian:
*-*-* Version 1.7.3 (Cthugha)
Loading library /RenderSystem_GL
An exception has occured: OGRE EXCEPTION(7:InternalErrorException): Could not
load dynamic library /RenderSystem_GL. System Error: /RenderSystem_GL.so:
cannot open shared object file: No such file or directory in DynLib::load at
/home/fabrizio/Scrivania/stuntrally/ogre_src_v1-7-3/OgreMain/src/OgreDynLib.cpp
(line 91)
INFO: Exiting
Errore di segmentazione
How to fix?
Original comment by fabrixx2
on 10 Jul 2011 at 8:46
[deleted comment]
[deleted comment]
I don't know much since I'm building on Windows.
But it looks like RenderSystem_GL library wasn't installed or is somewhere else
than we wanted. Try to find if you have this file anywhere on disk and set in
config to point it, like in Comment 1.
Original comment by Cry...@gmail.com
on 10 Jul 2011 at 11:25
Determining by the paths in the error message, you have compiled Ogre yourself,
have you also installed it and if so, where? Latest stuntrally from git can
dynamically find the standard paths (/usr/[local/]lib and friends) as stated in
comment #10. Not sure if this is yet in a released version, what version are
you using? In case of older version, you should either try compiling from git,
or set the correct path in the ogre config file.
Original comment by tapiovie...@gmail.com
on 11 Jul 2011 at 5:35
I'm fairly certain that this is an issue that is already fixed in source (see
my previous comment), so unless anything new arises, I'll close this in a
couple of days.
Original comment by tapiovie...@gmail.com
on 11 Jul 2011 at 5:38
Closing.
Original comment by tapiovie...@gmail.com
on 14 Jul 2011 at 8:29
Original issue reported on code.google.com by
neptu...@mail.ru
on 6 Apr 2011 at 10:41