I packaged StuntRally 2.3 earlier today, just updating the working package I had for version 2.2.1. With this new version the game segfaults at startup because OGRE can't find its /RenderSystem_GL library (the / is not a typo, and seems to be the "root" of the problem ). Here is the full console output:
- {l Code}: {l Select All Code}
[akien@cauldron ~]$ stuntrally
INFO: --- Directories: ---
Ogre plugin:
Data: /usr/share/games/stuntrally
User cfg,log: /home/akien/.config/stuntrally
User data: /home/akien/.local/share/games/stuntrally
Cache: /home/akien/.cache/stuntrally
Starting VDrift-Ogre: 2010-05-01, O/S: Unix-like
INFO: Sound initialization information:
INFO: Obtained audio device:
Frequency: 44100
Format: 32784
Bits per sample: 16
Channels: 2
Silence: 0
Samples: 1024
Size: 4096
Sound initialization successful
INFO: ::: Time Sounds: 12 ms
Creating resource group General
Creating resource group Internal
Creating resource group Autodetect
SceneManagerFactory for type 'DefaultSceneManager' registered.
Registering ResourceManager for type Material
Registering ResourceManager for type Mesh
Registering ResourceManager for type Skeleton
MovableObjectFactory for type 'ParticleSystem' registered.
ArchiveFactory for archive type FileSystem registered.
ArchiveFactory for archive type Zip registered.
ArchiveFactory for archive type EmbeddedZip registered.
DDS codec registering
FreeImage version: 3.15.3
This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,3fr,arw,bay,bmq,cap,cine,cr2,crw,cs1,dc2,dcr,drf,dsc,dng,erf,fff,ia,iiq,k25,kc2,kdc,mdc,mef,mos,mrw,nef,nrw,orf,pef,ptx,pxn,qtk,raf,raw,rdc,rw2,rwl,rwz,sr2,srf,srw,sti
Registering ResourceManager for type HighLevelGpuProgram
Registering ResourceManager for type Compositor
MovableObjectFactory for type 'Entity' registered.
MovableObjectFactory for type 'Light' registered.
MovableObjectFactory for type 'BillboardSet' registered.
MovableObjectFactory for type 'ManualObject' registered.
MovableObjectFactory for type 'BillboardChain' registered.
MovableObjectFactory for type 'RibbonTrail' registered.
*-*-* OGRE Initialising
*-*-* Version 1.9.0 (Ghadamon)
*** start setup ***
Loading library /RenderSystem_GL
An exception has occured: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library /RenderSystem_GL. System Error: /RenderSystem_GL.so.1.9.0: cannot open shared object file: No such file or directory in DynLib::load at /home/iurt/rpmbuild/BUILD/ogre_src_v1-9-0/OgreMain/src/OgreDynLib.cpp (line 109)
INFO: Exiting
Segmentation fault
Searching for the "/RenderSystem_GL" string in the source code yielded (among others) this line of source/ogre/BaseApp_Create.cpp:
- {l Code}: {l Select All Code}
mRoot->loadPlugin(PATHMANAGER::OgrePluginDir() + "/RenderSystem_GL" + D_SUFFIX);
So it seems this "PATHMANAGER" is supposed to locate the folder of my OGRE plugins (which is /usr/lib64/OGRE) and prepend it to the library name before trying to load it. The output above confirms the issue has to do with locating this plugin dir since the "Ogre plugin:" entry is blank.
OGRE 1.9 is installed on my system, and I did build StuntsRally against OGRE 1.9's development headers and libraries. Any clue on what might have changed between versions 2.2.1 and 2.3 that might be causing this issue?
For the reference, here are the logs of the build on Mageia's buildsystem: 32bits and 64bits.