Menu

#2 Libraries are looked for in a fixed location on linux

open-accepted
nobody
None
5
2003-08-13
2003-08-02
No

After installing both the linux and the data files in
the same directory, running ./soccar fails:
blanche /tmp/soccar-0.5.2 ./soccar
[01:17 03/08/03]
Loading library libOgrePlatform.so
ArchiveFactory for archive type Zip registered.
Loading library /usr/local/lib/OGRE/RenderSystem_GL.so
An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: DynLib::load
Description: Could not load dynamic library
/usr/local/lib/OGRE/RenderSystem_GL.so. System Error:
/usr/local/lib/OGRE/RenderSystem_GL.so: cannot open
shared object file: No such file or directory.
File: OgreDynLib.cpp
Line: 77
Stack unwinding: DynLib::load(..) <- <<beginning of stack>>
*-*-* OGRE Shutdown
*** ERROR: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 9
Function: DynLib::load
Description: Could not load dynamic library
/usr/local/lib/OGRE/RenderSystem_GL.so. System Error:
/usr/local/lib/OGRE/RenderSystem_GL.so: cannot open
shared object file: No such file or directory.
File: OgreDynLib.cpp
Line: 77
Stack unwinding: DynLib::load(..) <- <<beginning of stack>>
blanche /tmp/soccar-0.5.2
[01:19 03/08/03]

It seems wrong that the library is looked for in
/usr/local/lib/, which is not where the program is. The
script indeed places ./lib in LD_LIBRARY_PATH, so using
no path should make it work.

After manually fixing this (ln -s /tmp/soccar-0.5.2/lib
/usr/local/lib/OGRE), I still get an error:
blanche /tmp/soccar-0.5.2 ./soccar
[01:19 03/08/03]
Loading library libOgrePlatform.so
ArchiveFactory for archive type Zip registered.
Loading library /usr/local/lib/OGRE/RenderSystem_GL.so
OpenGL Rendering Subsystem created.
Loading library /usr/local/lib/OGRE/Plugin_FileSystem.so
ArchiveFactory for archive type FileSystem registered.
Loading library /usr/local/lib/OGRE/Plugin_ParticleFX.so
Particle Emitter Type 'Point' registered
Particle Emitter Type 'Box' registered
Particle Emitter Type 'Ellipsoid' registered
Particle Emitter Type 'Cylinder' registered
Particle Emitter Type 'Ring' registered
Particle Emitter Type 'HollowEllipsoid' registered
Particle Affector Type 'LinearForce' registered
Particle Affector Type 'ColourFader' registered
Particle Affector Type 'ColourFader2' registered
Particle Affector Type 'Scaler' registered
Loading library
/usr/local/lib/OGRE/Plugin_BSPSceneManager.so
Loading library
/usr/local/lib/OGRE/Plugin_OctreeSceneManager.so
Loading library /usr/local/lib/OGRE/Plugin_GuiElements.so
GuiElementFactory for type Panel registered.
GuiElementFactory for type BorderPanel registered.
GuiElementFactory for type TextArea registered.
GuiElementFactory for type TextBox registered.
GuiElementFactory for type Button registered.
GuiElementFactory for type BorderButton registered.
GuiElementFactory for type List registered.
GuiElementFactory for type ScrollBar registered.
GuiElementFactory for type PopupMenu registered.
GuiElementFactory for type TTY registered.
*-*-* OGRE Initialising
*-*-* Version 0.10.0
FileSystem Archive Codec for ./ created.
FileSystem Archive Codec for ./data/ created.
An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ConfigFile::load
Description: 'ogre.cfg' file not found!.
File: OgreConfigFile.cpp
Line: 48
Stack unwinding: <<beginning of stack>>

(<unknown>:1511): libglade-WARNING **: could not find
glade file '/usr/local/share/OGRE/ogre-config.glade'
*-*-* OGRE Shutdown
./soccar: line 6: 1511 Aborted
./soccar.bin

I gave up at this point.

Discussion

  • Attila Tajti

    Attila Tajti - 2003-08-13

    Logged In: YES
    user_id=224396

    Thanks for reporting the bug.

    The last exception (in ConfigFile::load) is OK, it's should be there only
    at first time. The problem here is that the OGRE can't open it's
    configuration dialog if it can't find the ogre.cfg file because of the
    missing ogre-config.glade file.

    For a quick workaround, try creating an ogre.cfg file with these three
    lines:

    Render System OpenGL Rendering Subsystem
    Full Screen No
    Video Mode 640 x 480

    This way you can bypass the configuration dialog.

    Soccar is looking for the libraries in /usr/local/ because of a bug: you
    can fix this by modifying plugins.cfg accordingly.

    Due to these two problems the only clean way to run soccar at the
    moment is to have Ogre 0.11 installed in /usr/local, but you can get it
    working by editing/fixing the ogre.cfg and plugins.cfg files.

     
  • Attila Tajti

    Attila Tajti - 2003-08-13
    • status: open --> pending-accepted
     
  • Daniel Bonniot

    Daniel Bonniot - 2003-08-13
    • status: pending-accepted --> open-accepted
     
  • Daniel Bonniot

    Daniel Bonniot - 2003-08-13

    Logged In: YES
    user_id=88952

    I created the ogre.cfg in the current directory, and
    modified plugins.cfg with
    PluginFolder=./lib

    After that I get:
    blanche /tmp/soccar-0.5.2 ./soccar
    Loading library libOgrePlatform.so
    ArchiveFactory for archive type Zip registered.
    Loading library ./lib/RenderSystem_GL.so
    OpenGL Rendering Subsystem created.
    Loading library ./lib/Plugin_FileSystem.so
    ArchiveFactory for archive type FileSystem registered.
    Loading library ./lib/Plugin_ParticleFX.so
    Particle Emitter Type 'Point' registered
    Particle Emitter Type 'Box' registered
    Particle Emitter Type 'Ellipsoid' registered
    Particle Emitter Type 'Cylinder' registered
    Particle Emitter Type 'Ring' registered
    Particle Emitter Type 'HollowEllipsoid' registered
    Particle Affector Type 'LinearForce' registered
    Particle Affector Type 'ColourFader' registered
    Particle Affector Type 'ColourFader2' registered
    Particle Affector Type 'Scaler' registered
    Loading library ./lib/Plugin_BSPSceneManager.so
    Loading library ./lib/Plugin_OctreeSceneManager.so
    Loading library ./lib/Plugin_GuiElements.so
    GuiElementFactory for type Panel registered.
    GuiElementFactory for type BorderPanel registered.
    GuiElementFactory for type TextArea registered.
    GuiElementFactory for type TextBox registered.
    GuiElementFactory for type Button registered.
    GuiElementFactory for type BorderButton registered.
    GuiElementFactory for type List registered.
    GuiElementFactory for type ScrollBar registered.
    GuiElementFactory for type PopupMenu registered.
    GuiElementFactory for type TTY registered.
    *-*-* OGRE Initialising
    *-*-* Version 0.10.0
    FileSystem Archive Codec for ./ created.
    FileSystem Archive Codec for ./data/ created.
    *-*-* OGRE Shutdown
    *** ERROR: Unknown

    Ogre is 0.10 and not 0.11 as you mentioned, but this is the
    version that was distributed with soccar, so I suppose it
    should work.

     

Log in to post a comment.

MongoDB Logo MongoDB